Bug 177338 - [NEW PORT] games/chessx: A Qt4 chess database application
Summary: [NEW PORT] games/chessx: A Qt4 chess database application
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-24 12:50 UTC by yamagi
Modified: 2013-03-29 16:20 UTC (History)
0 users

See Also:


Attachments
file.shar (3.21 KB, text/plain)
2013-03-24 12:50 UTC, yamagi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yamagi 2013-03-24 12:50:00 UTC
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.
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2013-03-27 07:20:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-29 16:16:31 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"
Comment 3 Jason Helfman freebsd_committer freebsd_triage 2013-03-29 16:19:06 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!