Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2009 03:01:19 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/130450: Update port: games/kardsgt to 0.7.1
Message-ID:  <20090113030119.04440b01.tkato432@yahoo.com>
Resent-Message-ID: <200901121840.n0CIe1WV036595@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130450
>Category:       ports
>Synopsis:       Update port: games/kardsgt to 0.7.1
>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:   Mon Jan 12 18:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.1-RELEASE-p1 i386
>Organization:
>Environment:
>Description:
- Update to version 0.7.1

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/kardsgt/Makefile games/kardsgt/Makefile
--- /usr/ports/games/kardsgt/Makefile	2008-09-07 14:56:35.000000000 +0900
+++ games/kardsgt/Makefile	2008-09-09 19:15:31.000000000 +0900
@@ -6,27 +6,46 @@
 #
 
 PORTNAME=	kardsgt
-PORTVERSION=	0.6.4
-PORTREVISION=	1
+PORTVERSION=	0.7.1
 CATEGORIES=	games
-MASTER_SITES=	SAVANNAH CENKES
+MASTER_SITES=	SAVANNAH
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Card game suite
 
-BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
+USE_QT_VER=	4
+QT_COMPONENTS=	assistantclient corelib gui network \
+		moc_build qmake_build rcc_build uic_build
+ALL_TARGET=	qmake release
 
-USE_QT_VER=	3
-MAKE_ENV=	DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} QTDIR="${QT_PREFIX}"
-MAKE_ARGS=	bindir=${PREFIX}/bin mandir=${MANPREFIX}/man\
-		datadir=${PREFIX}/share
-QMAKESPEC=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
-MAN6=	${PORTNAME}.6
+MAN6=		kardsgt.6
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|$${datadir}/kardsgt|$${DATADIR}|;\
-		s|$${docdir}/kardsgt|$${DOCSDIR}|;\
-		s|qmake|${SETENV} ${MAKE_ENV} qmake -spec ${QMAKESPEC}|;\
-		s|--parents|-p|' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e 's|^QT +=|#QT +=|g' \
+		${WRKSRC}/src/src.pro
+	@${REINPLACE_CMD} -e 's|/usr/share/kardsgt/|${DATADIR}/|g' \
+		${WRKSRC}/src/kardsgtinterface.cpp
+
+do-configure:
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
+		-spec ${QMAKESPEC} kardsgt.pro
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/release/kardsgt ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/src/doc/kardsgt.6 ${MAN6PREFIX}/man/man6
+	@${MKDIR} ${PREFIX}/share/icons
+	${INSTALL_DATA} ${WRKSRC}/src/images/kardsgt.png ${PREFIX}/share/icons
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/src/doc/*.dcf ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/src/doc/*.html ${DATADIR}
+	@${MKDIR} ${DATADIR}/images
+	${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.jpg ${DATADIR}/images
+	${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.png ${DATADIR}/images
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for file in CREDITS ChangeLog README
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/kardsgt/distinfo games/kardsgt/distinfo
--- /usr/ports/games/kardsgt/distinfo	2007-12-31 01:50:43.000000000 +0900
+++ games/kardsgt/distinfo	2008-09-09 00:44:57.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (kardsgt-0.6.4.tar.gz) = a954e27206c13ed7634908d89071bba2
-SHA256 (kardsgt-0.6.4.tar.gz) = 10f231b6809eae3652614fba48df6c61948edc490bbb2860c7bbc9b8725594bc
-SIZE (kardsgt-0.6.4.tar.gz) = 2865696
+MD5 (kardsgt-0.7.1.tar.gz) = e2cb00dfea3fc8351ea5d0339514d2cc
+SHA256 (kardsgt-0.7.1.tar.gz) = 8bd93a56aa565df70734fb5e5c2634d7939e17dd7248b55d8af96e8caeefe008
+SIZE (kardsgt-0.7.1.tar.gz) = 2425432
diff -urN /usr/ports/games/kardsgt/pkg-plist games/kardsgt/pkg-plist
--- /usr/ports/games/kardsgt/pkg-plist	2007-08-08 06:59:50.000000000 +0900
+++ games/kardsgt/pkg-plist	2008-09-09 05:37:51.000000000 +0900
@@ -1,17 +1,16 @@
 bin/kardsgt
-%%DOCSDIR%%/COPYING
-%%DOCSDIR%%/CREDITS
-%%DOCSDIR%%/ChangeLog
-%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
 share/icons/kardsgt.png
 %%DATADIR%%/abigail.html
+%%DATADIR%%/crazyeights.html
 %%DATADIR%%/credits.html
 %%DATADIR%%/cribbage.html
 %%DATADIR%%/euchre.html
 %%DATADIR%%/fdl.html
 %%DATADIR%%/games.html
 %%DATADIR%%/hearts.html
-%%DATADIR%%/images/NOTICE
 %%DATADIR%%/images/abigail.png
 %%DATADIR%%/images/cribbageboard.jpg
 %%DATADIR%%/images/jack.png
@@ -29,7 +28,7 @@
 %%DATADIR%%/toc.html
 %%DATADIR%%/wally.html
 %%DATADIR%%/war.html
-@dirrm %%DOCSDIR%%
 @dirrm %%DATADIR%%/images
 @dirrm %%DATADIR%%
 @dirrmtry share/icons
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090113030119.04440b01.tkato432>