ports/119829: [games/pokerth]: update to version 0.6

Matthias Sund m.sund at arcor.de
Sun Jan 20 17:00:06 UTC 2008


>Number:         119829
>Category:       ports
>Synopsis:       [games/pokerth]: update to version 0.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 17:00:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Sund
>Release:        FreeBSD 7
>Organization:
>Environment:
FreeBSD travelmate 7.0-BETA4 FreeBSD 7.0-BETA4 #6: Mon Dec 17 13:19:45 CET 2007     masu at travelmate:/usr/obj/usr/src/sys/TRAVELMATE  i386
>Description:
- update to version 0.6 (GUI changes and better networking support)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN pokerth.orig/Makefile pokerth/Makefile
--- pokerth.orig/Makefile	2008-01-20 16:16:49.000000000 +0100
+++ pokerth/Makefile	2008-01-20 16:12:49.000000000 +0100
@@ -6,12 +6,12 @@
 #
 
 PORTNAME=	pokerth
-PORTVERSION=	0.5
-PORTREVISION=	1
+PORTVERSION=	0.6
+#PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
-DISTNAME=	PokerTH-${PORTVERSION}-src
+DISTNAME=	PokerTH-${PORTVERSION}-1.src
 
 MAINTAINER=	relaxbsd at gmail.com
 COMMENT=	A poker game written in C++/QT4
@@ -21,6 +21,7 @@
 
 MANUAL_PACKAGE_BUILD=	requires large memory to build
 
+USE_ICONV=	yes
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_QT_VER=	4
@@ -29,10 +30,14 @@
 
 WRKSRC=		${WRKDIR}/PokerTH-${PORTVERSION}
 
-PLIST_FILES=	bin/pokerth share/pixmaps/pokerth.png
+PLIST_FILES=	bin/pokerth %%DATADIR%%/pokerth share/pixmaps/pokerth.png
 
 PORTDOCS=	COPYING ChangeLog INSTALL TODO
 
+PORTDATA=	data
+
+MAN1=		pokerth.1
+
 DESKTOP_ENTRIES=	"PokerTH" \
 			"A poker game written in C++/Qt 4" \
 			"pokerth.png" \
@@ -43,16 +48,23 @@
 MAKE_ENV+=	QTDIR="${QT_PREFIX}"
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}|g' \
-		-e 's|boost_thread-mt|boost_thread|g' \
-		${WRKSRC}/pokerth.pro
+	@${REINPLACE_CMD} -E \
+		-e 's|/usr/([a-z|/]+)|${LOCALBASE}/\1|g' \
+		-e 's|(-lcrypto)|\1 -liconv|g' \
+		-e 's:boost_([a-z]+)-[-|a-z|0-9|_]*:boost_\1:g' \
+		${WRKSRC}/*.pro
 
 do-configure:
 	@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -unix pokerth.pro
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/bin/pokerth ${PREFIX}/bin/pokerth
+	@${MKDIR} ${DATADIR}
+	@${INSTALL_PROGRAM} ${WRKSRC}/pokerth ${DATADIR}/pokerth
+	@${CP} -R ${WRKSRC}/${PORTDATA} ${DATADIR}
+	@${ECHO_CMD} "exec ${DATADIR}/pokerth" > ${WRKSRC}/pokerth.sh
+	@${INSTALL_SCRIPT} ${WRKSRC}/pokerth.sh ${PREFIX}/bin/pokerth
 	@${INSTALL_DATA} ${WRKSRC}/pokerth.png ${PREFIX}/share/pixmaps/pokerth.png
+	@${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MANPREFIX}/man/man1/
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for doc in ${PORTDOCS}
diff -ruN pokerth.orig/distinfo pokerth/distinfo
--- pokerth.orig/distinfo	2008-01-20 16:16:49.000000000 +0100
+++ pokerth/distinfo	2008-01-19 20:55:30.000000000 +0100
@@ -1,3 +1,3 @@
-MD5 (PokerTH-0.5-src.tar.bz2) = 1009e927b5d26b4eeb89d00cd4b624f7
-SHA256 (PokerTH-0.5-src.tar.bz2) = a521aa9f4e47741c132ce5023b07e594ee267d1b3d99fa9b5e0d78b39502239d
-SIZE (PokerTH-0.5-src.tar.bz2) = 4123606
+MD5 (PokerTH-0.6-1.src.tar.bz2) = a30a19487319a61e033dd7be94b29e7d
+SHA256 (PokerTH-0.6-1.src.tar.bz2) = e2f8f84887d59de507425ad9e98c43d9e3f0f60c255e111b35cdeb9845a39086
+SIZE (PokerTH-0.6-1.src.tar.bz2) = 4276017
diff -ruN pokerth.orig/files/patch-src-core-linux-convhelper.cpp pokerth/files/patch-src-core-linux-convhelper.cpp
--- pokerth.orig/files/patch-src-core-linux-convhelper.cpp	1970-01-01 01:00:00.000000000 +0100
+++ pokerth/files/patch-src-core-linux-convhelper.cpp	2008-01-20 13:34:46.000000000 +0100
@@ -0,0 +1,20 @@
+--- src/core/linux/convhelper.cpp.orig	2008-01-20 13:32:07.000000000 +0100
++++ src/core/linux/convhelper.cpp	2008-01-20 12:56:03.000000000 +0100
+@@ -39,7 +39,7 @@
+ #ifdef __APPLE__
+ 	const char *inbuf = inStr.data();
+ #else
+-	char *inbuf = const_cast<char *>(inStr.data());
++	const char *inbuf = const_cast<char *>(inStr.data());
+ #endif
+ 
+ 	const size_t c_outsize = insize * 6; // max size of utf-8 char is 6 per input char
+@@ -74,7 +74,7 @@
+ #ifdef __APPLE__
+ 	const char *inbuf = inStr.data();
+ #else
+-	char *inbuf = const_cast<char *>(inStr.data());
++	const char *inbuf = const_cast<char *>(inStr.data());
+ #endif
+ 
+ 	const size_t c_outsize = insize;


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



More information about the freebsd-ports-bugs mailing list