ports/184034: [PATCH] Update games/chessx to 1.0.0 and add stagedir support

Yamagi Burmeister yamagi at yamagi.org
Sun Nov 17 14:00:16 UTC 2013


>Number:         184034
>Category:       ports
>Synopsis:       [PATCH] Update games/chessx to 1.0.0 and add stagedir support
>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:   Sun Nov 17 14:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Yamagi Burmeister
>Release:        
>Organization:
>Environment:
>Description:
The attached patch updates games/chessx to version 1.0.0. Changes to the port are:
 - files/patch-chessx.pro -> Patch chessx.pro to use lrelease-qt4 instead of lrelease
 - Stagedir support was added
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
--- Makefile	(Revision 334082)
+++ Makefile	(Arbeitskopie)
@@ -1,10 +1,11 @@
 # $FreeBSD$
 
 PORTNAME=	chessx
-PORTVERSION=	0.9.6
+PORTVERSION=	1.0.0
 CATEGORIES=	games
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+MASTER_SITES=	SF/chessx/chessx/${PORTVERSION}
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/./-/g}
+EXTRACT_SUFX=  .tgz
 
 MAINTAINER=	yamagi at yamagi.org
 COMMENT=	Qt4 chess database application
@@ -11,7 +12,7 @@
 
 LICENSE=	GPLv2 # (or later)
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./-/g}
 
 USE_QT4=	corelib gui svg xml network moc_build qmake_build rcc_build uic_build
 MAKE_JOBS_SAVE=	yes
@@ -21,7 +22,6 @@
 CRAFTY_DESC=	Build with Crafty Chess Application
 OPTIONS_DEFAULT=STOCKFISH CRAFTY
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MSTOCKFISH}
@@ -35,7 +35,7 @@
 PLIST_FILES=	bin/${PORTNAME} \
 		share/pixmaps/${PORTNAME}.png
 
-DESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+DESKTOP_ENTRIES="ChessX" "" "${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png" \
 				"${PORTNAME}" "Game;BoardGame;" true
 
 do-configure:
@@ -42,8 +42,8 @@
 	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${STAGEDIR}${PREFIX}/bin)
 	(cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \
-		${PREFIX}/share/pixmaps/${PORTNAME}.png)
+		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png)
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(Revision 334082)
+++ distinfo	(Arbeitskopie)
@@ -1,2 +1,2 @@
-SHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601
-SIZE (chessx-0-9-6.tar.gz) = 3213601
+SHA256 (chessx-1-0-0.tgz) = 822512e9142fd2aa7e9034ee84470d99f2c1df86d2b8cd97774e9e7bc97b7d72
+SIZE (chessx-1-0-0.tgz) = 3545265
Index: files/patch-chessx.pro
===================================================================
--- files/patch-chessx.pro	(Revision 0)
+++ files/patch-chessx.pro	(Arbeitskopie)
@@ -0,0 +1,16 @@
+--- chessx.pro_orig	2013-11-16 09:55:22.927196241 +0100
++++ chessx.pro	2013-11-16 09:55:41.556196226 +0100
+@@ -334,11 +334,11 @@
+ 
+ isEmpty(QMAKE_LRELEASE) {
+      win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
+-     else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
++     else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
+ }
+ 
+ isEmpty(TS_DIR):TS_DIR = i18n
+-TSQM.name = lrelease ${QMAKE_FILE_IN}
++TSQM.name = lrelease-qt4 ${QMAKE_FILE_IN}
+ TSQM.input = TRANSLATIONS
+ TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
+ TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm

Eigenschaftsänderungen: files/patch-chessx.pro
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property

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


More information about the freebsd-ports-bugs mailing list