From b2609179de117ed4ec960b9dbc4e6ff7d1754ea3 Mon Sep 17 00:00:00 2001 From: kwm Date: Fri, 30 May 2014 15:51:00 +0000 Subject: Stagify. Use @sample for score files. Convert pkg-install to plist @owner/@group/@mode Convert gnomehack to pathfix. --- games/gweled/Makefile | 10 +++++++--- games/gweled/pkg-install | 13 ------------- games/gweled/pkg-plist | 10 ++++++++-- 3 files changed, 15 insertions(+), 18 deletions(-) delete mode 100644 games/gweled/pkg-install (limited to 'games') diff --git a/games/gweled/Makefile b/games/gweled/Makefile index c5348d222f5..e409fdd9f0f 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 diff --git a/games/gweled/pkg-install b/games/gweled/pkg-install deleted file mode 100644 index 8c40e3417f5..00000000000 --- 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 8497eb25cd8..2a3a4fb5a76 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 -- cgit