aboutsummaryrefslogtreecommitdiff
path: root/games/chessx
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-03-21 22:22:33 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-03-21 22:22:33 +0000
commit79444e4b4c1876c3e7aa40071b385f4e4570327e (patch)
tree38344b771f5e819d1b298bf75c9533bfeb9b2436 /games/chessx
parent8dc9c5cff3e419aaacea04b628428a6a1b73520a (diff)
downloadports-79444e4b4c1876c3e7aa40071b385f4e4570327e.tar.gz
ports-79444e4b4c1876c3e7aa40071b385f4e4570327e.zip
Notes
Diffstat (limited to 'games/chessx')
-rw-r--r--games/chessx/Makefile6
-rw-r--r--games/chessx/distinfo4
-rw-r--r--games/chessx/files/patch-chessx.pro31
-rw-r--r--games/chessx/files/patch-src_database_enginelist.cpp23
-rw-r--r--games/chessx/pkg-plist1
5 files changed, 29 insertions, 36 deletions
diff --git a/games/chessx/Makefile b/games/chessx/Makefile
index 60fa1036b2dd..3ae8192ccd11 100644
--- a/games/chessx/Makefile
+++ b/games/chessx/Makefile
@@ -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
diff --git a/games/chessx/distinfo b/games/chessx/distinfo
index fc10210c6e69..8b8d470aa27b 100644
--- a/games/chessx/distinfo
+++ b/games/chessx/distinfo
@@ -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
diff --git a/games/chessx/files/patch-chessx.pro b/games/chessx/files/patch-chessx.pro
index 24214621a768..70362b9dcb5b 100644
--- a/games/chessx/files/patch-chessx.pro
+++ b/games/chessx/files/patch-chessx.pro
@@ -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 \
diff --git a/games/chessx/files/patch-src_database_enginelist.cpp b/games/chessx/files/patch-src_database_enginelist.cpp
index abf37a0ff688..aa59958ce92b 100644
--- a/games/chessx/files/patch-src_database_enginelist.cpp
+++ b/games/chessx/files/patch-src_database_enginelist.cpp
@@ -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()
diff --git a/games/chessx/pkg-plist b/games/chessx/pkg-plist
index f69abad7c7e3..8fe4d6ea7906 100644
--- a/games/chessx/pkg-plist
+++ b/games/chessx/pkg-plist
@@ -1,4 +1,3 @@
bin/chessx
share/applications/chessx.desktop
-share/mime/packages/chessx-x-chess-pgn.xml
share/pixmaps/chessx.png