From nobody@FreeBSD.org  Sun Mar 24 12:49:49 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id A93A1DAE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Mar 2013 12:49:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 99C079A1
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Mar 2013 12:49:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2OCnmHq024186
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Mar 2013 12:49:48 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2OCnm5u024185;
	Sun, 24 Mar 2013 12:49:48 GMT
	(envelope-from nobody)
Message-Id: <201303241249.r2OCnm5u024185@red.freebsd.org>
Date: Sun, 24 Mar 2013 12:49:48 GMT
From: Yamagi Burmeister <yamagi@yamagi.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [NEW PORT] games/chessx: A Qt4 chess database application
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177338
>Category:       ports
>Synopsis:       [NEW PORT] games/chessx: A Qt4 chess database application
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jgh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 24 12:50:00 UTC 2013
>Closed-Date:    Fri Mar 29 16:19:07 UTC 2013
>Last-Modified:  Fri Mar 29 16:20:00 UTC 2013
>Originator:     Yamagi Burmeister
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD happy.home.yamagi.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243792M: Sun Dec  2 17:53:10 CET 2012     root@happy.home.yamagi.org:/usr/obj/usr/src/sys/HAPPY  amd64
>Description:
Attached is the shar file for the new port games/chessx:

ChessX is an open source chess database based on Qt4. With ChessX you
can operate on your collection of chess games in many ways: browse,
edit, add, organize, analyze, etc. Additionally ChessX can interface
with chess engines via UCI and Winboard protocol.

- The port builds fine with clang++
- i18n is disabled (as it is upstream) since the translation doesn't match 
  the current source.
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	chessx
#	chessx/Makefile
#	chessx/distinfo
#	chessx/files
#	chessx/files/patch-src_database_enginelist.cpp
#	chessx/pkg-descr
#
echo c - chessx
mkdir -p chessx > /dev/null 2>&1
echo x - chessx/Makefile
sed 's/^X//' >chessx/Makefile << 'a7610cc2aca55cfe7bb0c0bff4fa8f9c'
X# $FreeBSD$
X
XPORTNAME=		chessx
XPORTVERSION=	0.9.6
XCATEGORIES=		games
XMASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
XDISTNAME=		${PORTNAME}-0-9-6
X
XMAINTAINER=	yamagi@yamagi.org
XCOMMENT= 	A Qt4 chess database application
X
XLICENSE=	GPLv2 # (or later)
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_QT4=		corelib gui moc_build qmake_build rcc_build uic_build
XMAKE_JOBS_SAVE=	yes
X
XOPTIONS_DEFINE=	STOCKFISH CRAFTY
XSTOCKFISH_DESC=	Depend on games/stockfish
XCRAFTY_DESC=	Depend on games/crafty
XOPTIONS_DEFAULT=STOCKFISH CRAFTY
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MSTOCKFISH}
XRUN_DEPENDS+=	stockfish:${PORTSDIR}/games/stockfish
X.endif
X
X.if ${PORT_OPTIONS:MCRAFTY}
XRUN_DEPENDS+=	crafty:${PORTSDIR}/games/crafty
X.endif
X
XPLIST_FILES=	bin/${PORTNAME} share/pixmaps/${PORTNAME}.png
X
XDESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
X				"${PORTNAME}" "Game;BoardGame;" true
X
Xdo-configure:
X	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
X
Xdo-install:
X	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin)
X	(cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \
X		${PREFIX}/share/pixmaps/${PORTNAME}.png)
X
X.include <bsd.port.mk>
a7610cc2aca55cfe7bb0c0bff4fa8f9c
echo x - chessx/distinfo
sed 's/^X//' >chessx/distinfo << '29dd5c36072be3bced851b51688a6156'
XSHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601
XSIZE (chessx-0-9-6.tar.gz) = 3213601
29dd5c36072be3bced851b51688a6156
echo c - chessx/files
mkdir -p chessx/files > /dev/null 2>&1
echo x - chessx/files/patch-src_database_enginelist.cpp
sed 's/^X//' >chessx/files/patch-src_database_enginelist.cpp << '551ae7a481aa706dfed8a413f28e27f2'
X--- src/database/enginelist.cpp_orig	2013-03-24 11:48:27.000000000 +0100
X+++ src/database/enginelist.cpp	2013-03-24 11:48:59.000000000 +0100
X@@ -50,7 +50,12 @@
X     QString path1 = path + "/engines-linux/uci";
X     QString path2 = path + "/engines-linux/winboard";
X #endif
X-
X+ 
X+#ifdef Q_OS_FREEBSD
X+    QString path1 = path + "/engines-freebsd/uci";
X+    QString path2 = path + "/engines-freebsd/winboard";
X+#endif
X+ 
X     restoreEmptyFromPath(path1, EngineData::UCI);
X     restoreEmptyFromPath(path2, EngineData::WinBoard);
X }
551ae7a481aa706dfed8a413f28e27f2
echo x - chessx/pkg-descr
sed 's/^X//' >chessx/pkg-descr << '9cf770120207b8f387773bb391b4c65b'
XChessX is an open source chess database based on Qt4. With ChessX you
Xcan operate on your collection of chess games in many ways: browse,
Xedit, add, organize, analyze, etc. Additionally ChessX can interface
Xwith chess engines via UCI and Winboard protocol.
X
Xhttp://chessx.sourceforge.net/
9cf770120207b8f387773bb391b4c65b
exit
 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jgh 
Responsible-Changed-By: jgh 
Responsible-Changed-When: Wed Mar 27 07:20:03 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177338 
State-Changed-From-To: open->closed 
State-Changed-By: jgh 
State-Changed-When: Fri Mar 29 16:19:06 UTC 2013 
State-Changed-Why:  
New port added, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177338 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/177338: commit references a PR
Date: Fri, 29 Mar 2013 16:16:31 +0000 (UTC)

 Author: jgh
 Date: Fri Mar 29 16:16:18 2013
 New Revision: 315544
 URL: http://svnweb.freebsd.org/changeset/ports/315544
 
 Log:
   add new port: games/chessx
   
   ChessX is an open source chess database based on Qt4. With ChessX you
   can operate on your collection of chess games in many ways: browse,
   edit, add, organize, analyze, etc. Additionally ChessX can interface
   with chess engines via UCI and Winboard protocol.
   
   WWW: http://chessx.sourceforge.net/
   
   PR:		177338
   Submitted by:	yamagi@yamagi.org
 
 Added:
   head/games/chessx/
   head/games/chessx/Makefile   (contents, props changed)
   head/games/chessx/distinfo   (contents, props changed)
   head/games/chessx/files/
   head/games/chessx/files/patch-src_database_enginelist.cpp   (contents, props changed)
   head/games/chessx/pkg-descr   (contents, props changed)
 Modified:
   head/games/Makefile
 
 Modified: head/games/Makefile
 ==============================================================================
 --- head/games/Makefile	Fri Mar 29 16:09:23 2013	(r315543)
 +++ head/games/Makefile	Fri Mar 29 16:16:18 2013	(r315544)
 @@ -129,6 +129,7 @@
      SUBDIR += cgoban
      SUBDIR += chanta
      SUBDIR += chapping
 +    SUBDIR += chessx
      SUBDIR += chocolate-doom
      SUBDIR += cheech
      SUBDIR += childsplay
 
 Added: head/games/chessx/Makefile
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/games/chessx/Makefile	Fri Mar 29 16:16:18 2013	(r315544)
 @@ -0,0 +1,48 @@
 +# $FreeBSD$
 +
 +PORTNAME=	chessx
 +PORTVERSION=	0.9.6
 +CATEGORIES=	games
 +MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 +DISTNAME=	${PORTNAME}-${PORTVERSION:S/./-/g}
 +
 +MAINTAINER=	yamagi@yamagi.org
 +COMMENT=	Qt4 chess database application
 +
 +LICENSE=	GPLv2 # (or later)
 +
 +WRKSRC=		${WRKDIR}/${PORTNAME}
 +
 +USE_QT4=	corelib gui svg xml network moc_build qmake_build rcc_build uic_build
 +MAKE_JOBS_SAVE=	yes
 +
 +OPTIONS_DEFINE=	STOCKFISH CRAFTY
 +STOCKFISH_DESC=	Build with Stockfish Chess Engine
 +CRAFTY_DESC=	Build with Crafty Chess Application
 +OPTIONS_DEFAULT=STOCKFISH CRAFTY
 +
 +.include <bsd.port.options.mk>
 +
 +.if ${PORT_OPTIONS:MSTOCKFISH}
 +RUN_DEPENDS+=	stockfish:${PORTSDIR}/games/stockfish
 +.endif
 +
 +.if ${PORT_OPTIONS:MCRAFTY}
 +RUN_DEPENDS+=	crafty:${PORTSDIR}/games/crafty
 +.endif
 +
 +PLIST_FILES=	bin/${PORTNAME} \
 +		share/pixmaps/${PORTNAME}.png
 +
 +DESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
 +				"${PORTNAME}" "Game;BoardGame;" true
 +
 +do-configure:
 +	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
 +
 +do-install:
 +	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin)
 +	(cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \
 +		${PREFIX}/share/pixmaps/${PORTNAME}.png)
 +
 +.include <bsd.port.mk>
 
 Added: head/games/chessx/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/games/chessx/distinfo	Fri Mar 29 16:16:18 2013	(r315544)
 @@ -0,0 +1,2 @@
 +SHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601
 +SIZE (chessx-0-9-6.tar.gz) = 3213601
 
 Added: head/games/chessx/files/patch-src_database_enginelist.cpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/games/chessx/files/patch-src_database_enginelist.cpp	Fri Mar 29 16:16:18 2013	(r315544)
 @@ -0,0 +1,16 @@
 +--- src/database/enginelist.cpp_orig	2013-03-24 11:48:27.000000000 +0100
 ++++ src/database/enginelist.cpp	2013-03-24 11:48:59.000000000 +0100
 +@@ -50,7 +50,12 @@
 +     QString path1 = path + "/engines-linux/uci";
 +     QString path2 = path + "/engines-linux/winboard";
 + #endif
 +-
 ++ 
 ++#ifdef Q_OS_FREEBSD
 ++    QString path1 = path + "/engines-freebsd/uci";
 ++    QString path2 = path + "/engines-freebsd/winboard";
 ++#endif
 ++ 
 +     restoreEmptyFromPath(path1, EngineData::UCI);
 +     restoreEmptyFromPath(path2, EngineData::WinBoard);
 + }
 
 Added: head/games/chessx/pkg-descr
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/games/chessx/pkg-descr	Fri Mar 29 16:16:18 2013	(r315544)
 @@ -0,0 +1,6 @@
 +ChessX is an open source chess database based on Qt4. With ChessX you
 +can operate on your collection of chess games in many ways: browse,
 +edit, add, organize, analyze, etc. Additionally ChessX can interface
 +with chess engines via UCI and Winboard protocol.
 +
 +WWW: http://chessx.sourceforge.net/
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
