Date: Fri, 21 Mar 2014 22:22:34 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348747 - in head/games/chessx: . files Message-ID: <201403212222.s2LMMYC2042535@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Fri Mar 21 22:22:33 2014 New Revision: 348747 URL: http://svnweb.freebsd.org/changeset/ports/348747 QAT: https://qat.redports.org/buildarchive/r348747/ Log: - Update to version 1.1.0 [1] - Port installs desktop file, use USES=desktop-file-utils PR: ports/187811 Submitted by: maintainer Modified: head/games/chessx/Makefile head/games/chessx/distinfo head/games/chessx/files/patch-chessx.pro head/games/chessx/files/patch-src_database_enginelist.cpp head/games/chessx/pkg-plist Modified: head/games/chessx/Makefile ============================================================================== --- head/games/chessx/Makefile Fri Mar 21 21:44:16 2014 (r348746) +++ head/games/chessx/Makefile Fri Mar 21 22:22:33 2014 (r348747) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= chessx -DISTVERSION= 1-0-0 +DISTVERSION= 1-1-0 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} EXTRACT_SUFX= .tgz @@ -11,11 +11,13 @@ COMMENT= Qt 4 chess database application LICENSE= GPLv2 # (or later) -USES= shared-mime-info qmake +USES= desktop-file-utils shared-mime-info qmake USE_QT4= corelib gui svg xml network linguist_build \ moc_build qmake_build rcc_build uic_build QMAKE_ARGS+= QMAKE_LRELEASE=${LRELEASE} +WRKSRC= ${WRKDIR}/${PORTNAME} + OPTIONS_DEFINE= STOCKFISH CRAFTY STOCKFISH_DESC= Install Stockfish Chess Engine Modified: head/games/chessx/distinfo ============================================================================== --- head/games/chessx/distinfo Fri Mar 21 21:44:16 2014 (r348746) +++ head/games/chessx/distinfo Fri Mar 21 22:22:33 2014 (r348747) @@ -1,2 +1,2 @@ -SHA256 (chessx-1-0-0.tgz) = 822512e9142fd2aa7e9034ee84470d99f2c1df86d2b8cd97774e9e7bc97b7d72 -SIZE (chessx-1-0-0.tgz) = 3545265 +SHA256 (chessx-1-1-0.tgz) = 87daa893b0fcc89a78f12521d1a6d098f0d02d236d04fb2110a5726dc2893e8e +SIZE (chessx-1-1-0.tgz) = 3637453 Modified: head/games/chessx/files/patch-chessx.pro ============================================================================== --- head/games/chessx/files/patch-chessx.pro Fri Mar 21 21:44:16 2014 (r348746) +++ head/games/chessx/files/patch-chessx.pro Fri Mar 21 22:22:33 2014 (r348747) @@ -1,27 +1,18 @@ ---- ./chessx.pro.orig 2013-10-30 20:52:41.000000000 +0000 -+++ ./chessx.pro 2013-11-18 16:36:14.764197702 +0000 -@@ -309,17 +309,14 @@ +--- chessx.pro_orig 2014-03-21 10:53:31.321941038 +0100 ++++ chessx.pro 2014-03-21 10:54:00.294938611 +0100 +@@ -323,6 +323,15 @@ + QMAKE_INFO_PLIST = mac_osx/Info.plist } - unix:!macx { -- target.path = /usr/local/bin/chessx -- pixmaps.path = /usr/share/pixmaps ++unix:!macx { + target.path = $$PREFIX/bin + pixmaps.path = $$PREFIX/share/pixmaps - pixmaps.files = data/images/chessx.png -- desktop.path = /usr/share/applications -- desktop.files = chessx.desktop -- desktop.extra += xdg-mime install --mode system chessx-x-chess-pgn.xml && -- desktop.extra += xdg-mime default chessx.desktop application/x-chess-pgn && -- desktop.extra += xdg-icon-resource install --context mimetypes --size 32 ./data/images/chessx-32.png application-x-chess-pgn && -- desktop.extra += xdg-icon-resource install --context mimetypes --size 64 ./data/images/chessx-64.png application-x-chess-pgn && -- desktop.extra += xdg-icon-resource install --context mimetypes --size 128 ./data/images/chessx.png application-x-chess-pgn -- INSTALLS += target desktop pixmaps ++ pixmaps.files = data/images/chessx.png + desktop.path = $$PREFIX/share/applications + desktop.files = unix/chessx.desktop -+ mime.path = $$PREFIX/share/mime/packages -+ mime.files += unix/chessx-x-chess-pgn.xml -+ INSTALLS += target desktop pixmaps mime - } - ++ INSTALLS += target desktop pixmaps ++} ++ RESOURCES = resources.qrc + + TRANSLATIONS = i18n/chessx_de.ts \ Modified: head/games/chessx/files/patch-src_database_enginelist.cpp ============================================================================== --- head/games/chessx/files/patch-src_database_enginelist.cpp Fri Mar 21 21:44:16 2014 (r348746) +++ head/games/chessx/files/patch-src_database_enginelist.cpp Fri Mar 21 22:22:33 2014 (r348747) @@ -1,16 +1,17 @@ ---- 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"; +--- src/database/enginelist.cpp_orig 2014-03-21 10:38:05.774005768 +0100 ++++ src/database/enginelist.cpp 2014-03-21 10:38:46.470001992 +0100 +@@ -52,6 +52,14 @@ + restoreEmptyFromPath(path1, EngineData::UCI); + restoreEmptyFromPath(path2, EngineData::WinBoard); #endif -- -+ ++ +#ifdef Q_OS_FREEBSD ++ QString path(AppSettings->programDataPath()); + QString path1 = path + "/engines-freebsd/uci"; + QString path2 = path + "/engines-freebsd/winboard"; -+#endif -+ - restoreEmptyFromPath(path1, EngineData::UCI); - restoreEmptyFromPath(path2, EngineData::WinBoard); ++ restoreEmptyFromPath(path1, EngineData::UCI); ++ restoreEmptyFromPath(path2, EngineData::WinBoard); ++#endif } + + void EngineList::restore() Modified: head/games/chessx/pkg-plist ============================================================================== --- head/games/chessx/pkg-plist Fri Mar 21 21:44:16 2014 (r348746) +++ head/games/chessx/pkg-plist Fri Mar 21 22:22:33 2014 (r348747) @@ -1,4 +1,3 @@ bin/chessx share/applications/chessx.desktop -share/mime/packages/chessx-x-chess-pgn.xml share/pixmaps/chessx.png
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403212222.s2LMMYC2042535>