Date: Sun, 23 Nov 2014 21:29:11 +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: r373175 - head/games/pyspacewar Message-ID: <201411232129.sANLTBpo092856@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nemysis Date: Sun Nov 23 21:29:10 2014 New Revision: 373175 URL: https://svnweb.freebsd.org/changeset/ports/373175 QAT: https://qat.redports.org/buildarchive/r373175/ Log: - Update to 0.9.8 - Remove master sites, use GitHub=yes - Take maintainership - Change comment - Use pkg-plist instead of PLIST_FILES - Change DOCS, changed by Upstream - Simplify ICONS installation handling - Fix symlink for the icon, which is needed that PySpaceWar works - Change pkg-descr Added: head/games/pyspacewar/pkg-plist (contents, props changed) Modified: head/games/pyspacewar/Makefile head/games/pyspacewar/distinfo head/games/pyspacewar/pkg-descr Modified: head/games/pyspacewar/Makefile ============================================================================== --- head/games/pyspacewar/Makefile Sun Nov 23 21:06:07 2014 (r373174) +++ head/games/pyspacewar/Makefile Sun Nov 23 21:29:10 2014 (r373175) @@ -2,53 +2,48 @@ # $FreeBSD$ PORTNAME= pyspacewar -PORTVERSION= 0.9.7 -PORTREVISION= 4 +PORTVERSION= 0.9.8 CATEGORIES= games python -MASTER_SITES= http://mg.pov.lt/${PORTNAME}/\ - LOCAL/beech DIST_SUBDIR= python -MAINTAINER= ports@FreeBSD.org -COMMENT= Two ships duel in a gravity field +MAINTAINER= nemysis@FreeBSD.org +COMMENT= Game loosely based on the original Spacewar! LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/GPL.txt RUN_DEPENDS= ${PYGAME} +USE_GITHUB= yes +GH_ACCOUNT= mgedmin +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 2d058b1 + USES= python USE_PYTHON= distutils autoplist -PLIST_FILES= share/icons/hicolor/16x16/apps/pyspacewar.png \ - share/icons/hicolor/22x22/apps/pyspacewar.png \ - share/icons/hicolor/32x32/apps/pyspacewar.png \ - share/icons/hicolor/48x48/apps/pyspacewar.png \ - share/pixmaps/${PORTNAME}.png - -PORTDOCS= NEWS.txt README.txt performance-notes.txt +PORTDOCS= *.rst OPTIONS_DEFINE= DOCS INSTALLS_ICONS= yes -ICON_SIZES= 16x16 22x22 32x32 48x48 DESKTOP_ENTRIES="PySpaceWar" "" ${PORTNAME} \ "${PORTNAME}" "Game;ArcadeGame;" "" -post-patch: -.for s in 16 22 32 48 - @cd ${WRKSRC}/src/pyspacewar/icons && \ - ${MV} ${PORTNAME}${s}.png ${PORTNAME}_${s}x${s}.png -.endfor - post-install: -.for s in ${ICON_SIZES} - @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps - ${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}_${s}.png \ - ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png +.for i in 16 22 32 48 + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps + ${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}${i}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/${PORTNAME}.png + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps + ${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}${i}.svg \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}${i}.svg .endfor +# Symlink icon which is needed that PySpaceWar works + @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/icons ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/ + ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/icons/${PORTNAME}48.png @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Modified: head/games/pyspacewar/distinfo ============================================================================== --- head/games/pyspacewar/distinfo Sun Nov 23 21:06:07 2014 (r373174) +++ head/games/pyspacewar/distinfo Sun Nov 23 21:29:10 2014 (r373175) @@ -1,2 +1,2 @@ -SHA256 (python/pyspacewar-0.9.7.tar.gz) = 964d59ff8d42a6ba235ea1f616c576757ba3c232e349af78869e024b963c8b15 -SIZE (python/pyspacewar-0.9.7.tar.gz) = 229319 +SHA256 (python/pyspacewar-0.9.8.tar.gz) = 4d95e7101d14d7278183106e64160c2c314cbdb1eb4b86908b7c74dd3b9cc0f8 +SIZE (python/pyspacewar-0.9.8.tar.gz) = 226320 Modified: head/games/pyspacewar/pkg-descr ============================================================================== --- head/games/pyspacewar/pkg-descr Sun Nov 23 21:06:07 2014 (r373174) +++ head/games/pyspacewar/pkg-descr Sun Nov 23 21:29:10 2014 (r373175) @@ -1,11 +1,12 @@ PySpaceWar -Two ships duel in a gravity field. Gravity doesn't affect the ships -themselves (which have spanking new anti-gravity devices), but it affects -missiles launced by the ships. +Two ships duel in a gravity field. Gravity doesn't affect +the ships themselves (which have spanking new anti-gravity +devices), but it affects missiles launced by the ships. -You can play against the computer, or two players can play with one keyboard. -There is also a Gravity Wars mode, where the two ships do not move, and the -players repeatedly specify the direction and velocity of their missiles. +You can play against the computer, or two players can play +with one keyboard. There is also a Gravity Wars mode, where +the two ships do not move, and the players repeatedly +specify the direction and velocity of their missiles. WWW: http://mg.pov.lt/pyspacewar/ Added: head/games/pyspacewar/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/pyspacewar/pkg-plist Sun Nov 23 21:29:10 2014 (r373175) @@ -0,0 +1,9 @@ +%%PYTHON_SITELIBDIR%%/pyspacewar/icons/pyspacewar48.png +share/icons/hicolor/16x16/apps/pyspacewar.png +share/icons/hicolor/22x22/apps/pyspacewar.png +share/icons/hicolor/32x32/apps/pyspacewar.png +share/icons/hicolor/48x48/apps/pyspacewar.png +share/icons/hicolor/scalable/apps/pyspacewar16.svg +share/icons/hicolor/scalable/apps/pyspacewar22.svg +share/icons/hicolor/scalable/apps/pyspacewar32.svg +share/icons/hicolor/scalable/apps/pyspacewar48.svg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411232129.sANLTBpo092856>