057bdccad3
- 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
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyspacewar
|
|
PORTVERSION= 0.9.8
|
|
CATEGORIES= games python
|
|
DIST_SUBDIR= python
|
|
|
|
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
|
|
|
|
PORTDOCS= *.rst
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
DESKTOP_ENTRIES="PySpaceWar" "" ${PORTNAME} \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
post-install:
|
|
.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}${PYTHON_SITELIBDIR}/${PORTNAME}/icons/${PORTNAME}48.png
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|