diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-12-26 02:38:20 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-12-26 02:38:20 +0800 |
commit | 8adb4b1569932aff7dadf517fcb3ab9f5d8ac446 (patch) | |
tree | f4045d2c6a21ab4fdb745bc20d66f7ffdbdfc83b /games | |
parent | e05e14b8b70a1bae837e5c76609ad5694c50eb9e (diff) | |
download | freebsd-ports-gnome-8adb4b1569932aff7dadf517fcb3ab9f5d8ac446.tar.gz freebsd-ports-gnome-8adb4b1569932aff7dadf517fcb3ab9f5d8ac446.tar.zst freebsd-ports-gnome-8adb4b1569932aff7dadf517fcb3ab9f5d8ac446.zip |
- 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)
Diffstat (limited to 'games')
-rw-r--r-- | games/bombz/Makefile | 13 |
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} |