summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-12-25 18:38:20 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-12-25 18:38:20 +0000
commit27e57a95bdc4c6b84e5fccb4f950594b707d6a27 (patch)
treef4045d2c6a21ab4fdb745bc20d66f7ffdbdfc83b /games
parentConnect cyrus-sasl2-gssapi. (diff)
- Change master sites
- USES dos2unix instead of USE_DOS2UNIX - Fix the usage of 'python' to get rid of the implicit lang/python dependency - Break lines around 80 characters Approved by: pawel / wg (mentors, implicit)
Notes
Notes: svn path=/head/; revision=337438
Diffstat (limited to 'games')
-rw-r--r--games/bombz/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/games/bombz/Makefile b/games/bombz/Makefile
index 726bbee91a3c..d5fbe28d462c 100644
--- a/games/bombz/Makefile
+++ b/games/bombz/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 0.2
PORTREVISION= 1
CATEGORIES= games python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/ \
- SF/nemysisfreebsdp/:icons
+ SF/nemysisfreebsdp/games/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= python
@@ -22,9 +22,10 @@ RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/Bombz
USE_ZIP= yes
+USES= dos2unix
+DOS2UNIX_FILES= *.txt
USE_SDL= sdl image mixer
INSTALLS_ICONS= yes
-USE_DOS2UNIX= *.txt
USE_PYTHON= yes
PORTDOCS= ChangeLog readme.txt
@@ -36,6 +37,8 @@ OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -i '' '/words = name.split()/,/self.name = name/s/^/#/' \
${WRKSRC}/bombz/joy.py
+ @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKSRC}/${PORTNAME}.py
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@@ -51,8 +54,10 @@ do-install:
@(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
.endfor
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}