svn commit: r338332 - in head/games/puckman: . files

Rusmir Dusko nemysis at FreeBSD.org
Tue Dec 31 18:18:07 UTC 2013


Author: nemysis
Date: Tue Dec 31 18:18:06 2013
New Revision: 338332
URL: http://svnweb.freebsd.org/changeset/ports/338332

Log:
  - Change Makefile header
  - Bump PORTREVISION
  - Change master sites, icon, use GitHub=yes
  - Remove leading article from COMMENT
  - USES gmake instead of USE_GMAKE
  - Use pkg-plist instead of PLIST_FILES and PORTDATA
  - Support STAGEDIR
  - Add DOCS Option
  - Add Desktop entry file
  - Use REINPLACE_CMD instead of simple patches
  - Break lines around 80 characters
  - Simplify Makefile
  - Remove obsolete patches
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/puckman/pkg-plist   (contents, props changed)
Deleted:
  head/games/puckman/files/
Modified:
  head/games/puckman/Makefile
  head/games/puckman/distinfo   (contents, props changed)

Modified: head/games/puckman/Makefile
==============================================================================
--- head/games/puckman/Makefile	Tue Dec 31 18:07:06 2013	(r338331)
+++ head/games/puckman/Makefile	Tue Dec 31 18:18:06 2013	(r338332)
@@ -1,49 +1,53 @@
-# Created by: nemysis at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
 # $FreeBSD$
 
 PORTNAME=	puckman
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	https://github.com/downloads/patapizza/puckman/
+MASTER_SITES=	SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	nemysis at FreeBSD.org
-COMMENT=	An unofficial clone of the original Pac-Man game
+COMMENT=	Unofficial clone of the original Pac-Man game
 
 LICENSE=	GPLv3
 
-FETCH_ARGS?=	-Fpr
-USE_GMAKE=	yes
-USE_SDL=	sdl image gfx
+USE_GITHUB=	yes
+GH_ACCOUNT=	patapizza
+GH_PROJECT=	puckman
+GH_TAGNAME=	${GH_COMMIT}
+GH_COMMIT=	f5b809c
 
-PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}.png
+USES=		gmake
+USE_SDL=	sdl image gfx
 
-PORTDATA=	*
 PORTDOCS=	README.md
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
+
+DESKTOP_ENTRIES="Puck-Man" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" ""
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
+		${WRKSRC}/puckman.c
 
 do-build:
 	cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
 		-DDATA_PREFIX=\"${DATADIR}/\" \
-		-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lm puckman.c
+		-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image \
+		-lSDL_gfx -lm puckman.c
 
 do-install:
-# Executable
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${STAGEDIR}${DATADIR})
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
 
-# Data
-	${MKDIR} ${DATADIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
-
-# Pixmaps
-	${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
-
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/puckman/distinfo
==============================================================================
--- head/games/puckman/distinfo	Tue Dec 31 18:07:06 2013	(r338331)
+++ head/games/puckman/distinfo	Tue Dec 31 18:18:06 2013	(r338332)
@@ -1,2 +1,4 @@
-SHA256 (puckman-1.0.tar.gz) = 842919da45c77de4c77f66f11dde9f189b1d0d764f2ba76f5b93ee3288e967b2
-SIZE (puckman-1.0.tar.gz) = 210385
+SHA256 (puckman-1.0.tar.gz) = 995e90845993600ed6693f4a857cf6b0d6e9dc431ccea35c6b9243830f73e86a
+SIZE (puckman-1.0.tar.gz) = 191432
+SHA256 (puckman.png) = d00633d0b1e426d79fde35bed4aa67f7540b0e46cd5641287537d89464903d3f
+SIZE (puckman.png) = 695

Added: head/games/puckman/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/puckman/pkg-plist	Tue Dec 31 18:18:06 2013	(r338332)
@@ -0,0 +1,194 @@
+bin/puckman
+share/pixmaps/puckman.png
+%%DATADIR%%/images/0.png
+%%DATADIR%%/images/1.png
+%%DATADIR%%/images/100.png
+%%DATADIR%%/images/1600.png
+%%DATADIR%%/images/2.png
+%%DATADIR%%/images/200.png
+%%DATADIR%%/images/3.png
+%%DATADIR%%/images/300.png
+%%DATADIR%%/images/4.png
+%%DATADIR%%/images/400.png
+%%DATADIR%%/images/5.png
+%%DATADIR%%/images/500.png
+%%DATADIR%%/images/6.png
+%%DATADIR%%/images/7.png
+%%DATADIR%%/images/700.png
+%%DATADIR%%/images/8.png
+%%DATADIR%%/images/800.png
+%%DATADIR%%/images/9.png
+%%DATADIR%%/images/anim.gif
+%%DATADIR%%/images/anim0.gif
+%%DATADIR%%/images/anim1.gif
+%%DATADIR%%/images/anim10.gif
+%%DATADIR%%/images/anim11.gif
+%%DATADIR%%/images/anim12.gif
+%%DATADIR%%/images/anim13.gif
+%%DATADIR%%/images/anim14.gif
+%%DATADIR%%/images/anim15.gif
+%%DATADIR%%/images/anim16.gif
+%%DATADIR%%/images/anim17.gif
+%%DATADIR%%/images/anim18.gif
+%%DATADIR%%/images/anim19.gif
+%%DATADIR%%/images/anim2.gif
+%%DATADIR%%/images/anim20.gif
+%%DATADIR%%/images/anim21.gif
+%%DATADIR%%/images/anim22.gif
+%%DATADIR%%/images/anim23.gif
+%%DATADIR%%/images/anim24.gif
+%%DATADIR%%/images/anim25.gif
+%%DATADIR%%/images/anim26.gif
+%%DATADIR%%/images/anim27.gif
+%%DATADIR%%/images/anim28.gif
+%%DATADIR%%/images/anim29.gif
+%%DATADIR%%/images/anim3.gif
+%%DATADIR%%/images/anim30.gif
+%%DATADIR%%/images/anim31.gif
+%%DATADIR%%/images/anim32.gif
+%%DATADIR%%/images/anim33.gif
+%%DATADIR%%/images/anim34.gif
+%%DATADIR%%/images/anim35.gif
+%%DATADIR%%/images/anim36.gif
+%%DATADIR%%/images/anim37.gif
+%%DATADIR%%/images/anim38.gif
+%%DATADIR%%/images/anim4.gif
+%%DATADIR%%/images/anim5.gif
+%%DATADIR%%/images/anim6.gif
+%%DATADIR%%/images/anim7.gif
+%%DATADIR%%/images/anim8.gif
+%%DATADIR%%/images/anim9.gif
+%%DATADIR%%/images/back.png
+%%DATADIR%%/images/candy0.gif
+%%DATADIR%%/images/candy1.gif
+%%DATADIR%%/images/candy2.gif
+%%DATADIR%%/images/candy3.gif
+%%DATADIR%%/images/candy4.gif
+%%DATADIR%%/images/candy5.gif
+%%DATADIR%%/images/dead0.gif
+%%DATADIR%%/images/dead1.gif
+%%DATADIR%%/images/dead10.gif
+%%DATADIR%%/images/dead11.gif
+%%DATADIR%%/images/dead2.gif
+%%DATADIR%%/images/dead3.gif
+%%DATADIR%%/images/dead4.gif
+%%DATADIR%%/images/dead5.gif
+%%DATADIR%%/images/dead6.gif
+%%DATADIR%%/images/dead7.gif
+%%DATADIR%%/images/dead8.gif
+%%DATADIR%%/images/dead9.gif
+%%DATADIR%%/images/dot.png
+%%DATADIR%%/images/enter.png
+%%DATADIR%%/images/eyes0.png
+%%DATADIR%%/images/eyes1.png
+%%DATADIR%%/images/eyes2.png
+%%DATADIR%%/images/eyes3.png
+%%DATADIR%%/images/fruit0.png
+%%DATADIR%%/images/fruit1.png
+%%DATADIR%%/images/fruit2.png
+%%DATADIR%%/images/fruit3.png
+%%DATADIR%%/images/gameover.png
+%%DATADIR%%/images/getready.png
+%%DATADIR%%/images/ghost000.gif
+%%DATADIR%%/images/ghost001.gif
+%%DATADIR%%/images/ghost010.gif
+%%DATADIR%%/images/ghost011.gif
+%%DATADIR%%/images/ghost020.gif
+%%DATADIR%%/images/ghost021.gif
+%%DATADIR%%/images/ghost030.gif
+%%DATADIR%%/images/ghost031.gif
+%%DATADIR%%/images/ghost100.gif
+%%DATADIR%%/images/ghost101.gif
+%%DATADIR%%/images/ghost110.gif
+%%DATADIR%%/images/ghost111.gif
+%%DATADIR%%/images/ghost120.gif
+%%DATADIR%%/images/ghost121.gif
+%%DATADIR%%/images/ghost130.gif
+%%DATADIR%%/images/ghost131.gif
+%%DATADIR%%/images/ghost200.gif
+%%DATADIR%%/images/ghost201.gif
+%%DATADIR%%/images/ghost210.gif
+%%DATADIR%%/images/ghost211.gif
+%%DATADIR%%/images/ghost220.gif
+%%DATADIR%%/images/ghost221.gif
+%%DATADIR%%/images/ghost230.gif
+%%DATADIR%%/images/ghost231.gif
+%%DATADIR%%/images/ghost300.gif
+%%DATADIR%%/images/ghost301.gif
+%%DATADIR%%/images/ghost310.gif
+%%DATADIR%%/images/ghost311.gif
+%%DATADIR%%/images/ghost320.gif
+%%DATADIR%%/images/ghost321.gif
+%%DATADIR%%/images/ghost330.gif
+%%DATADIR%%/images/ghost331.gif
+%%DATADIR%%/images/highscores0.png
+%%DATADIR%%/images/highscores1.png
+%%DATADIR%%/images/legal.png
+%%DATADIR%%/images/letter65.png
+%%DATADIR%%/images/letter66.png
+%%DATADIR%%/images/letter67.png
+%%DATADIR%%/images/letter68.png
+%%DATADIR%%/images/letter69.png
+%%DATADIR%%/images/letter70.png
+%%DATADIR%%/images/letter71.png
+%%DATADIR%%/images/letter72.png
+%%DATADIR%%/images/letter73.png
+%%DATADIR%%/images/letter74.png
+%%DATADIR%%/images/letter75.png
+%%DATADIR%%/images/letter76.png
+%%DATADIR%%/images/letter77.png
+%%DATADIR%%/images/letter78.png
+%%DATADIR%%/images/letter79.png
+%%DATADIR%%/images/letter80.png
+%%DATADIR%%/images/letter81.png
+%%DATADIR%%/images/letter82.png
+%%DATADIR%%/images/letter83.png
+%%DATADIR%%/images/letter84.png
+%%DATADIR%%/images/letter85.png
+%%DATADIR%%/images/letter86.png
+%%DATADIR%%/images/letter87.png
+%%DATADIR%%/images/letter88.png
+%%DATADIR%%/images/letter89.png
+%%DATADIR%%/images/letter90.png
+%%DATADIR%%/images/level.png
+%%DATADIR%%/images/lives.png
+%%DATADIR%%/images/logo.png
+%%DATADIR%%/images/notice.png
+%%DATADIR%%/images/pacman00.gif
+%%DATADIR%%/images/pacman01.gif
+%%DATADIR%%/images/pacman02.gif
+%%DATADIR%%/images/pacman03.gif
+%%DATADIR%%/images/pacman10.gif
+%%DATADIR%%/images/pacman11.gif
+%%DATADIR%%/images/pacman12.gif
+%%DATADIR%%/images/pacman13.gif
+%%DATADIR%%/images/pacman20.gif
+%%DATADIR%%/images/pacman21.gif
+%%DATADIR%%/images/pacman22.gif
+%%DATADIR%%/images/pacman23.gif
+%%DATADIR%%/images/pacman30.gif
+%%DATADIR%%/images/pacman31.gif
+%%DATADIR%%/images/pacman32.gif
+%%DATADIR%%/images/pacman33.gif
+%%DATADIR%%/images/paused.png
+%%DATADIR%%/images/playgame0.png
+%%DATADIR%%/images/playgame1.png
+%%DATADIR%%/images/puckman.png
+%%DATADIR%%/images/quitgame0.png
+%%DATADIR%%/images/quitgame1.png
+%%DATADIR%%/images/rules.png
+%%DATADIR%%/images/rules0.png
+%%DATADIR%%/images/rules1.png
+%%DATADIR%%/images/scared00.gif
+%%DATADIR%%/images/scared01.gif
+%%DATADIR%%/images/scared10.gif
+%%DATADIR%%/images/scared11.gif
+%%DATADIR%%/images/scared12.gif
+%%DATADIR%%/images/scared13.gif
+%%DATADIR%%/images/scared14.gif
+%%DATADIR%%/images/scared15.gif
+%%DATADIR%%/images/scared16.gif
+%%DATADIR%%/images/scared17.gif
+%%DATADIR%%/images/score.png
+ at dirrm %%DATADIR%%/images
+ at dirrm %%DATADIR%%


More information about the svn-ports-head mailing list