Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2013 12:49:48 GMT
From:      Yamagi Burmeister <yamagi@yamagi.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177338: [NEW PORT] games/chessx: A Qt4 chess database application
Message-ID:  <201303241249.r2OCnm5u024185@red.freebsd.org>
Resent-Message-ID: <201303241250.r2OCo0wr039751@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177338
>Category:       ports
>Synopsis:       [NEW PORT] games/chessx: A Qt4 chess database application
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 24 12:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303241249.r2OCnm5u024185>