Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2013 19:30:03 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335338 - in head/games/zephulor: . files
Message-ID:  <201311301930.rAUJU3oM078875@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Sat Nov 30 19:30:02 2013
New Revision: 335338
URL: http://svnweb.freebsd.org/changeset/ports/335338

Log:
  - Change master sites, add icon
  - Change maintainer email to @FreeBSD.org
  - Remove dependency for graphics/netpbm
  - Change USE_PYTHON=yes to USE_PYTHON=2.7
  - Use pkg-plist instead of PLIST_FILES, PLIST_DIRS and PORTDATA
  - Support STAGEDIR
  - Add DOCS Option
  - Change files/tuxfighter.in
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/zephulor/pkg-plist   (contents, props changed)
Modified:
  head/games/zephulor/Makefile
  head/games/zephulor/distinfo   (contents, props changed)
  head/games/zephulor/files/zephulor.in

Modified: head/games/zephulor/Makefile
==============================================================================
--- head/games/zephulor/Makefile	Sat Nov 30 19:09:40 2013	(r335337)
+++ head/games/zephulor/Makefile	Sat Nov 30 19:30:02 2013	(r335338)
@@ -5,25 +5,25 @@ PORTNAME=	zephulor
 PORTVERSION=	1
 PORTREVISION=	6
 CATEGORIES=	games
-MASTER_SITES=	SF/apz/apz/stable/
-DISTNAME=	${PORTNAME}-source
+MASTER_SITES=	SF/apz/apz/stable/ \
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES=	${PORTNAME}-source${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-source${EXTRACT_SUFX}
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Side scrolling arcade game
 
 LICENSE=	LGPL20
 
-EXTRACT_DEPENDS=pngtopnm:${PORTSDIR}/graphics/netpbm
 RUN_DEPENDS=	${PYGAME} \
 		${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
 
-USE_PYTHON=	yes
-NO_BUILD=	yes
+WRKSRC=		${WRKDIR}/zephulor-source
 
-PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}.png
+USE_PYTHON=	2.7
+NO_BUILD=	yes
 
-PORTDATA=	*
 PORTDOCS=	*
 
 DOCSRCDIR1=	${WRKSRC}
@@ -34,38 +34,33 @@ DOCSDIR2=	${DOCSDIR}/maptool
 DOC_FILES2=	manual.txt
 
 DESKTOP_ENTRIES="Adventures on Planet Zephulor" "${COMMENT}" "${PORTNAME}" \
-		"${PORTNAME}" "Game;ArcadeGame;" "false"
+		"${PORTNAME}" "Game;ArcadeGame;" false
 
 SUB_FILES=	${PORTNAME}
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|#!.*python|#!${PYTHON_CMD}|' \
 		${WRKSRC}/*.py ${WRKSRC}/maptool/*.py
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
 
-post-extract:
-	@(cd ${WRKSRC}/data && ${LOCALBASE}/bin/pngtopnm zephulor.png | \
-		${LOCALBASE}/bin/pamscale .1 | ${LOCALBASE}/bin/pnmtopng > zephulor1.png)
-
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-	${MKDIR} ${DATADIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
-	${MKDIR} ${DATADIR}/maptool
-	${INSTALL_SCRIPT} ${WRKSRC}/maptool/*.py ${DATADIR}/maptool
+	@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+		${WRKDIR}/${PORTNAME}
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@${MKDIR} ${STAGEDIR}${DATADIR}/maptool/
+	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
+	${INSTALL_SCRIPT} ${WRKSRC}/maptool/*.py ${STAGEDIR}${DATADIR}/maptool/
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/data/zephulor1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
 
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
-	${MKDIR} ${DOCSDIR2}
-	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
 
 .include <bsd.port.mk>

Modified: head/games/zephulor/distinfo
==============================================================================
--- head/games/zephulor/distinfo	Sat Nov 30 19:09:40 2013	(r335337)
+++ head/games/zephulor/distinfo	Sat Nov 30 19:30:02 2013	(r335338)
@@ -1,2 +1,4 @@
 SHA256 (zephulor-source.tar.gz) = db65c8e1ac17274e553f1bf319b3d8a5462c028b4b32fee1088fc0efd3239fda
 SIZE (zephulor-source.tar.gz) = 3274306
+SHA256 (zephulor.png) = f4540fd360cf020fd8f4c76c2fbce8c62ef768ee43b77dc4ce800fdac2a26997
+SIZE (zephulor.png) = 1986

Modified: head/games/zephulor/files/zephulor.in
==============================================================================
--- head/games/zephulor/files/zephulor.in	Sat Nov 30 19:09:40 2013	(r335337)
+++ head/games/zephulor/files/zephulor.in	Sat Nov 30 19:30:02 2013	(r335338)
@@ -4,4 +4,4 @@
 #
 
 cd "%%DATADIR%%"
-exec /usr/bin/env python ./zephulor.py
+exec %%PYTHON_CMD%% ./zephulor.py

Added: head/games/zephulor/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/zephulor/pkg-plist	Sat Nov 30 19:30:02 2013	(r335338)
@@ -0,0 +1,126 @@
+bin/zephulor
+share/pixmaps/zephulor.png
+%%DATADIR%%/chared.py
+%%DATADIR%%/data/angry_eye-die.wav
+%%DATADIR%%/data/angry_eye-dmg.wav
+%%DATADIR%%/data/angry_eye-shoot.wav
+%%DATADIR%%/data/angry_eye.data
+%%DATADIR%%/data/angry_eye.png
+%%DATADIR%%/data/blob-die.wav
+%%DATADIR%%/data/blob-grubub.wav
+%%DATADIR%%/data/blob.bmp
+%%DATADIR%%/data/bullet1.bmp
+%%DATADIR%%/data/bullet2.bmp
+%%DATADIR%%/data/buzzbuzz-die.wav
+%%DATADIR%%/data/buzzbuzz-dmg.wav
+%%DATADIR%%/data/buzzbuzz.data
+%%DATADIR%%/data/buzzbuzz.png
+%%DATADIR%%/data/char-bang.wav
+%%DATADIR%%/data/char-die.wav
+%%DATADIR%%/data/char-ow.wav
+%%DATADIR%%/data/char1.data
+%%DATADIR%%/data/char2.data
+%%DATADIR%%/data/credits.scn
+%%DATADIR%%/data/default.charlist
+%%DATADIR%%/data/eheart.bmp
+%%DATADIR%%/data/end.scn
+%%DATADIR%%/data/entsndlist.data
+%%DATADIR%%/data/fire-powerup.bmp
+%%DATADIR%%/data/fire-powerup.data
+%%DATADIR%%/data/firstmap.data
+%%DATADIR%%/data/heart-powerup.bmp
+%%DATADIR%%/data/heart-powerup.data
+%%DATADIR%%/data/heart.bmp
+%%DATADIR%%/data/highlight.bmp
+%%DATADIR%%/data/hollowlogo-credits.png
+%%DATADIR%%/data/hollowlogo-save.png
+%%DATADIR%%/data/hollowlogo.png
+%%DATADIR%%/data/hud.bmp
+%%DATADIR%%/data/intro.scn
+%%DATADIR%%/data/invuln-powerup.bmp
+%%DATADIR%%/data/invuln-powerup.data
+%%DATADIR%%/data/jump-powerup.bmp
+%%DATADIR%%/data/jump-powerup.data
+%%DATADIR%%/data/load.scn
+%%DATADIR%%/data/logo.scn
+%%DATADIR%%/data/mushlump_lowlands-01.data
+%%DATADIR%%/data/mushlump_lowlands-02.data
+%%DATADIR%%/data/mushlump_lowlands-03.data
+%%DATADIR%%/data/mushlump_lowlands-04.data
+%%DATADIR%%/data/mushlump_lowlands-05.data
+%%DATADIR%%/data/mushlump_lowlands-06.data
+%%DATADIR%%/data/mushlump_lowlands-07.data
+%%DATADIR%%/data/mushlump_lowlands-bkg0.bmp
+%%DATADIR%%/data/mushlump_lowlands-bkg1.bmp
+%%DATADIR%%/data/mushlump_lowlands-bkg2.bmp
+%%DATADIR%%/data/mushlump_lowlands-tileset.bmp
+%%DATADIR%%/data/mushlump_lowlands.mp3
+%%DATADIR%%/data/mychar.bmp
+%%DATADIR%%/data/pause.bmp
+%%DATADIR%%/data/paxapart_flats-01.data
+%%DATADIR%%/data/paxapart_flats-02.data
+%%DATADIR%%/data/paxapart_flats-03.data
+%%DATADIR%%/data/paxapart_flats-04.data
+%%DATADIR%%/data/paxapart_flats-05.data
+%%DATADIR%%/data/paxapart_flats-06.data
+%%DATADIR%%/data/paxapart_flats-07.data
+%%DATADIR%%/data/paxapart_flats-08.data
+%%DATADIR%%/data/paxapart_flats-bkg0.bmp
+%%DATADIR%%/data/paxapart_flats-bkg1.bmp
+%%DATADIR%%/data/paxapart_flats-bkg2.bmp
+%%DATADIR%%/data/paxapart_flats-tileset.bmp
+%%DATADIR%%/data/paxapart_flats.mp3
+%%DATADIR%%/data/powerup.wav
+%%DATADIR%%/data/rock-die.wav
+%%DATADIR%%/data/rock-ow.wav
+%%DATADIR%%/data/rock_bang.wav
+%%DATADIR%%/data/rock_ow.wav
+%%DATADIR%%/data/rockmonster.bmp
+%%DATADIR%%/data/rockmonster.data
+%%DATADIR%%/data/save.scn
+%%DATADIR%%/data/scn_load.png
+%%DATADIR%%/data/scn_save.png
+%%DATADIR%%/data/sludge-stalker-die.wav
+%%DATADIR%%/data/sludge-stalker-dmg.wav
+%%DATADIR%%/data/sludge-stalker-shoot.wav
+%%DATADIR%%/data/sludge-stalker.bmp
+%%DATADIR%%/data/sludge-stalker.data
+%%DATADIR%%/data/spaceship.png
+%%DATADIR%%/data/startup.scn
+%%DATADIR%%/data/water-deep-left.bmp
+%%DATADIR%%/data/water-deep-left.data
+%%DATADIR%%/data/water-deep-right.bmp
+%%DATADIR%%/data/water-deep-right.data
+%%DATADIR%%/data/water-deep.bmp
+%%DATADIR%%/data/water-deep.data
+%%DATADIR%%/data/water.bmp
+%%DATADIR%%/data/water.data
+%%DATADIR%%/data/zephulor-any.png
+%%DATADIR%%/data/zephulor-credits.png
+%%DATADIR%%/data/zephulor-loading.png
+%%DATADIR%%/data/zephulor.png
+%%DATADIR%%/game_config.py
+%%DATADIR%%/game_entities.py
+%%DATADIR%%/game_hud.py
+%%DATADIR%%/game_map.py
+%%DATADIR%%/game_menu.py
+%%DATADIR%%/game_projectiles.py
+%%DATADIR%%/game_sound.py
+%%DATADIR%%/maploadtool.py
+%%DATADIR%%/maptool/chared.py
+%%DATADIR%%/maptool/charmenu.py
+%%DATADIR%%/maptool/domenu.py
+%%DATADIR%%/maptool/game_entities.py
+%%DATADIR%%/maptool/game_map.py
+%%DATADIR%%/maptool/hud.py
+%%DATADIR%%/maptool/interface.py
+%%DATADIR%%/maptool/keymap.py
+%%DATADIR%%/maptool/main.py
+%%DATADIR%%/maptool/myimg.py
+%%DATADIR%%/maptool/tilemenu.py
+%%DATADIR%%/myimg.py
+%%DATADIR%%/scnloadtool.py
+%%DATADIR%%/zephulor.py
+@dirrm %%DATADIR%%/maptool
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%



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