diff options
author | kwm <kwm@FreeBSD.org> | 2014-05-30 15:51:00 +0000 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2014-05-30 15:51:00 +0000 |
commit | b2609179de117ed4ec960b9dbc4e6ff7d1754ea3 (patch) | |
tree | e1990c45f3eb208cd7333b23f2a265f4ab849e0c | |
parent | fd6312bf8cbcf3501543a42aa5214ac96228bf33 (diff) | |
download | FreeBSD-ports-b2609179de117ed4ec960b9dbc4e6ff7d1754ea3.zip FreeBSD-ports-b2609179de117ed4ec960b9dbc4e6ff7d1754ea3.tar.gz |
Stagify.
Use @sample for score files.
Convert pkg-install to plist @owner/@group/@mode
Convert gnomehack to pathfix.
-rw-r--r-- | games/gweled/Makefile | 10 | ||||
-rw-r--r-- | games/gweled/pkg-install | 13 | ||||
-rw-r--r-- | games/gweled/pkg-plist | 10 |
3 files changed, 15 insertions, 18 deletions
diff --git a/games/gweled/Makefile b/games/gweled/Makefile index c5348d2..e409fdd 100644 --- a/games/gweled/Makefile +++ b/games/gweled/Makefile @@ -12,15 +12,19 @@ COMMENT= GNOME version of the game called "Bejeweled" or "Diamond Mine" LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod -USES= gmake pkgconfig -USE_GNOME= gnomeprefix gnomehack gnomehier libgnomeui librsvg2 +USES= gmake pathfix pkgconfig +USE_GNOME= gnomeprefix gnomehier libgnomeui librsvg2 GNU_CONFIGURE= yes -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|/var/games|${PREFIX}/share/games|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|$${MKDIRPROG-mkdir}|mkdir -p|' \ ${WRKSRC}/install-sh +post-install: + ${RM} ${STAGEDIR}${PREFIX}/share/games/gweled.easy.scores + ${TOUCH} ${STAGEDIR}${PREFIX}/share/games/gweled.easy.scores.sample + ${TOUCH} ${STAGEDIR}${PREFIX}/share/games/gweled.timed.scores.sample + .include <bsd.port.mk> diff --git a/games/gweled/pkg-install b/games/gweled/pkg-install deleted file mode 100644 index 8c40e34..0000000 --- a/games/gweled/pkg-install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -if [ "$2" = "POST-INSTALL" ]; then - mkdir -p ${PKG_PREFIX}/share/games - SCORES="gweled.easy.scores gweled.timed.scores" - for i in ${SCORES}; do - if [ ! -f ${PKG_PREFIX}/share/games/${i} ]; then - touch -f ${PKG_PREFIX}/share/games/${i} - chown games:games ${PKG_PREFIX}/share/games/${i} - chmod 0664 ${PKG_PREFIX}/share/games/${i} - fi - done -fi diff --git a/games/gweled/pkg-plist b/games/gweled/pkg-plist index 8497eb2..2a3a4fb 100644 --- a/games/gweled/pkg-plist +++ b/games/gweled/pkg-plist @@ -1,7 +1,13 @@ bin/gweled share/applications/gweled.desktop -@unexec [ -s %D/share/games/gweled.easy.scores ] || rm -f %D/share/games/gweled.easy.scores -@unexec [ -s %D/share/games/gweled.timed.scores ] || rm -f %D/share/games/gweled.timed.scores +@owner games +@group games +@mode 0644 +@sample share/games/gweled.easy.scores.sample +@sample share/games/gweled.timed.scores.sample +@owner +@group +@mode share/gweled/gweled.glade share/gweled/gweled_icon.png share/gweled/gweled_logo.png |