aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-02 19:18:34 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-02 19:18:34 +0800
commit7068c584758c57413cc8fbcb6809f3def3ccee66 (patch)
treeadb2caf3881ac8300797379eb5e68c8cc16d0a98
parent116c6befb9472562c7942542efc37ed09dfa5700 (diff)
downloadfreebsd-ports-gnome-7068c584758c57413cc8fbcb6809f3def3ccee66.tar.gz
freebsd-ports-gnome-7068c584758c57413cc8fbcb6809f3def3ccee66.tar.zst
freebsd-ports-gnome-7068c584758c57413cc8fbcb6809f3def3ccee66.zip
- Fix installation and stripping as non-root
- Drop @dirrm* from plist
-rw-r--r--games/bubbros/Makefile4
-rw-r--r--games/bubbros/pkg-plist24
2 files changed, 3 insertions, 25 deletions
diff --git a/games/bubbros/Makefile b/games/bubbros/Makefile
index b30bed9aa948..610ca1267302 100644
--- a/games/bubbros/Makefile
+++ b/games/bubbros/Makefile
@@ -16,7 +16,7 @@ LICENSE= MIT
RUN_DEPENDS= ${PYGAME}
BUILD_DEPENDS:= ${RUN_DEPENDS}
-USE_PYTHON= yes
+USES= python
PORTDOCS= *.html
OPTIONS_DEFINE= DOCS
@@ -51,11 +51,13 @@ do-install:
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/BubBob.py ${STAGEDIR}${DATADIR}
# build different colors
+ @${FIND} ${STAGEDIR}${DATADIR} -name "*.ppm" -exec chmod u+w {} \;
@${PYTHON_CMD} ${STAGEDIR}${DATADIR}/bubbob/images/buildcolors.py
${LN} -sf ${DATADIR}/http2/data/bob.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.for l in bubbob/statesaver.so display/xshm.so
+ ${CHMOD} u+w ${STAGEDIR}${DATADIR}/${l}
${STRIP_CMD} ${STAGEDIR}${DATADIR}/${l}
.endfor
diff --git a/games/bubbros/pkg-plist b/games/bubbros/pkg-plist
index e37b87d6d665..7cbf1f32ce4d 100644
--- a/games/bubbros/pkg-plist
+++ b/games/bubbros/pkg-plist
@@ -450,27 +450,3 @@ man/man1/bb.py.1.gz
%%DATADIR%%/metaserver/pipelayer.py
%%DATADIR%%/metaserver/socketoverudp.py
share/pixmaps/bubbros.png
-@dirrm %%DATADIR%%/bubbob/doc/images
-@dirrm %%DATADIR%%/bubbob/doc
-@dirrm %%DATADIR%%/bubbob/ext1
-@dirrm %%DATADIR%%/bubbob/ext2
-@dirrm %%DATADIR%%/bubbob/ext3
-@dirrm %%DATADIR%%/bubbob/ext4
-@dirrm %%DATADIR%%/bubbob/ext5
-@dirrm %%DATADIR%%/bubbob/ext6
-@dirrm %%DATADIR%%/bubbob/ext7
-@dirrm %%DATADIR%%/bubbob/images
-@dirrm %%DATADIR%%/bubbob/levels
-@dirrm %%DATADIR%%/bubbob/music
-@dirrm %%DATADIR%%/bubbob/sounds
-@dirrm %%DATADIR%%/bubbob/tmp
-@dirrm %%DATADIR%%/bubbob
-@dirrm %%DATADIR%%/common
-@dirrm %%DATADIR%%/display/windows
-@dirrm %%DATADIR%%/display
-@dirrm %%DATADIR%%/http2/data
-@dirrm %%DATADIR%%/http2/sf
-@dirrm %%DATADIR%%/http2
-@dirrm %%DATADIR%%/java
-@dirrm %%DATADIR%%/metaserver
-@dirrm %%DATADIR%%