ports/187811: [UPDATE] Update games/chessx to 1.1.0

Yamagi Burmeister yamagi at yamagi.org
Fri Mar 21 10:10:01 UTC 2014


>Number:         187811
>Category:       ports
>Synopsis:       [UPDATE] Update games/chessx to 1.1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 21 10:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Yamagi Burmeister
>Release:        FreeBSD 10.0
>Organization:
>Environment:
FreeBSD happy.home.yamagi.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r262076M: Mon Feb 17 17:16:33 CET 2014     root at happy.home.yamagi.org:/usr/obj/usr/src/sys/HAPPY  amd64
>Description:
Update chessx to version 1.1.0:
- Installation of a mime type definition for the pgn file type was dropped upstream. 
- The "Unix" target was removed from the qt project definition file, add a patch to reinsert it.
- In their endless wisdom the upstream maintainers decided to extract the source code into a directory chessx/ without any version number. Work around it by setting WRKSRC.
>How-To-Repeat:
-
>Fix:
Index: Makefile
===================================================================
--- Makefile	(Revision 348734)
+++ Makefile	(Arbeitskopie)
@@ -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,6 +11,8 @@
 
 LICENSE=	GPLv2 # (or later)
 
+WRKSRC= ${WRKDIR}/chessx
+
 USES=		shared-mime-info qmake
 USE_QT4=	corelib gui svg xml network linguist_build \
 		moc_build qmake_build rcc_build uic_build
Index: distinfo
===================================================================
--- distinfo	(Revision 348734)
+++ distinfo	(Arbeitskopie)
@@ -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
Index: files/patch-chessx.pro
===================================================================
--- files/patch-chessx.pro	(Revision 348734)
+++ files/patch-chessx.pro	(Arbeitskopie)
@@ -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
  
- RESOURCES = resources.qrc
+ TRANSLATIONS = i18n/chessx_de.ts \
Index: files/patch-src_database_enginelist.cpp
===================================================================
--- files/patch-src_database_enginelist.cpp	(Revision 348734)
+++ files/patch-src_database_enginelist.cpp	(Arbeitskopie)
@@ -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()
Index: pkg-plist
===================================================================
--- pkg-plist	(Revision 348734)
+++ pkg-plist	(Arbeitskopie)
@@ -1,4 +1,3 @@
 bin/chessx
 share/applications/chessx.desktop
-share/mime/packages/chessx-x-chess-pgn.xml
 share/pixmaps/chessx.png

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list