Date: Thu, 29 Mar 2007 17:09:54 +0400 (MSD) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/111009: [PATCH] games/cavezofphear: update to 0.5 Message-ID: <20070329130954.719C74054@hades.panopticon> Resent-Message-ID: <200703291320.l2TDK4ih026738@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111009 >Category: ports >Synopsis: [PATCH] games/cavezofphear: update to 0.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Mar 29 13:20:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 6.1-RELEASE-p12 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: * Update to 0.5 * Generally tidy up the port * Mirror the distfile >How-To-Repeat: >Fix: --- cavezofphear-0.5.patch begins here --- diff -ruN cavezofphear.orig/Makefile cavezofphear/Makefile --- cavezofphear.orig/Makefile Thu Mar 29 17:07:22 2007 +++ cavezofphear/Makefile Thu Mar 29 17:07:21 2007 @@ -6,63 +6,37 @@ # PORTNAME= cavezofphear -PORTVERSION= 0.1 +PORTVERSION= 0.5 CATEGORIES= games -MASTER_SITES= http://www.x86.no/cavezofphear/ +MASTER_SITES= http://www.x86.no/cavezofphear/ \ + http://www.amdmi3.ru/distfiles DISTNAME= phear-${PORTVERSION} MAINTAINER= tlp@liquidx.org COMMENT= Boulder Dash / Digger-like game written using ncurses -WRKSRC= ${WRKDIR}/phear-${PORTVERSION}/src USE_BZIP2= yes USE_GMAKE= yes +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" +BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src -PLIST_DIRS= share/${PORTNAME}/levels share/${PORTNAME} +PORTDOCS= ChangeLog README README-EDITOR TODO -PLIST_FILES= bin/phear bin/phear-editor \ - share/${PORTNAME}/gover share/${PORTNAME}/htext \ - share/${PORTNAME}/spgraf share/${PORTNAME}/tdesc \ - share/${PORTNAME}/levels/01 share/${PORTNAME}/levels/02 \ - share/${PORTNAME}/levels/03 share/${PORTNAME}/levels/04 \ - share/${PORTNAME}/levels/05 - -PORTDOCS= AUTHORS ChangeLog README README-EDITOR TODO - -FIXME= chk.c main.c splash.c - -pre-build: -.for i in ${FIXME} - ${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/${i} -.endfor - @${REINPLACE_CMD} -e 's|usage: editor|usage: phear-editor|' \ - ${WRKSRC}/editor.c - @${REINPLACE_CMD} -e 's|./editor|phear-editor|' \ - ${WRKSRC}/../README-EDITOR - @${REINPLACE_CMD} -e 's|./phear|phear|' \ - ${WRKSRC}/../README-EDITOR +post-patch: + @${REINPLACE_CMD} -e 's|\./data|${DATADIR}/data|' ${WRKSRC}/src/chk.c + @${REINPLACE_CMD} -e 's|\./phear|phear|' ${WRKSRC}/README-EDITOR do-install: ${MKDIR} ${DATADIR} - ${MKDIR} ${DATADIR}/levels - ${INSTALL_DATA} ${WRKSRC}/../data/gover ${DATADIR}/gover - ${INSTALL_DATA} ${WRKSRC}/../data/htext ${DATADIR}/htext - ${INSTALL_DATA} ${WRKSRC}/../data/spgraf ${DATADIR}/spgraf - ${INSTALL_DATA} ${WRKSRC}/../data/tdesc ${DATADIR}/tdesc - ${INSTALL_DATA} ${WRKSRC}/../data/levels/01 ${DATADIR}/levels/01 - ${INSTALL_DATA} ${WRKSRC}/../data/levels/02 ${DATADIR}/levels/02 - ${INSTALL_DATA} ${WRKSRC}/../data/levels/03 ${DATADIR}/levels/03 - ${INSTALL_DATA} ${WRKSRC}/../data/levels/04 ${DATADIR}/levels/04 - ${INSTALL_DATA} ${WRKSRC}/../data/levels/05 ${DATADIR}/levels/05 - ${INSTALL_PROGRAM} ${WRKSRC}/../phear ${PREFIX}/bin/phear - ${INSTALL_PROGRAM} ${WRKSRC}/../editor ${PREFIX}/bin/phear-editor + ${INSTALL_PROGRAM} ${WRKSRC}/phear ${PREFIX}/bin + @(cd ${WRKSRC}; ${COPYTREE_SHARE} data ${DATADIR}) + .if !defined(NOPORTDOCS) +post-install: ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../AUTHORS ${DOCSDIR}/AUTHORS - ${INSTALL_DATA} ${WRKSRC}/../ChangeLog ${DOCSDIR}/ChangeLog - ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}/README - ${INSTALL_DATA} ${WRKSRC}/../README-EDITOR ${DOCSDIR}/README-EDITOR - ${INSTALL_DATA} ${WRKSRC}/../TODO ${DOCSDIR}/TODO +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor .endif .include <bsd.port.mk> diff -ruN cavezofphear.orig/distinfo cavezofphear/distinfo --- cavezofphear.orig/distinfo Thu Mar 29 17:07:22 2007 +++ cavezofphear/distinfo Thu Mar 29 17:07:21 2007 @@ -1,3 +1,3 @@ -MD5 (phear-0.1.tar.bz2) = 10875ba2d574e7e3cb293129876ee95d -SHA256 (phear-0.1.tar.bz2) = 6512b894597bfa685b38b5b2cd8023af2441c08c81b38790eadd0148f36d621d -SIZE (phear-0.1.tar.bz2) = 16858 +MD5 (phear-0.5.tar.bz2) = 232f6f34d2a5aede7af70eb6e3d8d49f +SHA256 (phear-0.5.tar.bz2) = 1087c04347ff60d153ffceb91363a31643337ed71b4a40b68160392d32d68bb7 +SIZE (phear-0.5.tar.bz2) = 20502 diff -ruN cavezofphear.orig/files/patch-isready.c cavezofphear/files/patch-isready.c --- cavezofphear.orig/files/patch-isready.c Thu Mar 29 17:07:21 2007 +++ cavezofphear/files/patch-isready.c Thu Jan 1 03:00:00 1970 @@ -1,12 +0,0 @@ ---- isready.c.orig Wed Nov 5 16:00:45 2003 -+++ isready.c Tue Sep 20 23:43:45 2005 -@@ -1,6 +1,9 @@ - #include <stdio.h> -+#include <inttypes.h> -+#include <sys/types.h> - #include <sys/select.h> - #include <sys/time.h> -+#include <string.h> - - int isready(int fd); - diff -ruN cavezofphear.orig/pkg-plist cavezofphear/pkg-plist --- cavezofphear.orig/pkg-plist Thu Jan 1 03:00:00 1970 +++ cavezofphear/pkg-plist Thu Mar 29 17:07:21 2007 @@ -0,0 +1,19 @@ +bin/phear +%%DATADIR%%/data/gover +%%DATADIR%%/data/htext +%%DATADIR%%/data/levels/01 +%%DATADIR%%/data/levels/02 +%%DATADIR%%/data/levels/03 +%%DATADIR%%/data/levels/04 +%%DATADIR%%/data/levels/05 +%%DATADIR%%/data/levels/06 +%%DATADIR%%/data/levels/07 +%%DATADIR%%/data/levels/08 +%%DATADIR%%/data/levels/09 +%%DATADIR%%/data/levels/10 +%%DATADIR%%/data/levels/11 +%%DATADIR%%/data/spgraf +%%DATADIR%%/data/tdesc +@dirrm %%DATADIR%%/data/levels +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%% --- cavezofphear-0.5.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070329130954.719C74054>