aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2008-01-18 20:42:11 +0800
committersat <sat@FreeBSD.org>2008-01-18 20:42:11 +0800
commit292332e2afc4c451de3590439c414fa788a7a699 (patch)
treed22e60c36948fdfe705f052e6b4911eeccc0287e /games
parente264e4a0faff7d31b075658336079b7fb597cb5b (diff)
downloadfreebsd-ports-gnome-292332e2afc4c451de3590439c414fa788a7a699.tar.gz
freebsd-ports-gnome-292332e2afc4c451de3590439c414fa788a7a699.tar.zst
freebsd-ports-gnome-292332e2afc4c451de3590439c414fa788a7a699.zip
- Fix ggz.modules registrations
Reported by: pointyhat via erwin, pav Approved by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> (maintainer timeout, 27 days)
Diffstat (limited to 'games')
-rw-r--r--games/ggz-client-libs/Makefile4
-rw-r--r--games/ggz-client-libs/pkg-plist2
2 files changed, 6 insertions, 0 deletions
diff --git a/games/ggz-client-libs/Makefile b/games/ggz-client-libs/Makefile
index 53f284be4968..d50faf51e79f 100644
--- a/games/ggz-client-libs/Makefile
+++ b/games/ggz-client-libs/Makefile
@@ -8,6 +8,7 @@
PORTNAME= ggz-client-libs
PORTVERSION= ${GGZ_VERSION}
+PORTREVISION= 1
CATEGORIES= games
MAINTAINER= yinjieh@csie.nctu.edu.tw
@@ -45,6 +46,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|libggz.la|libggz.so|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/ggz-wrapper/ggz
+post-install:
+ @${TOUCH} ${PREFIX}/etc/ggz.modules
+
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/games/libggz/bsd.ggz.mk"
.include <bsd.port.post.mk>
diff --git a/games/ggz-client-libs/pkg-plist b/games/ggz-client-libs/pkg-plist
index e85e5d81b2c9..12926aaf01ca 100644
--- a/games/ggz-client-libs/pkg-plist
+++ b/games/ggz-client-libs/pkg-plist
@@ -23,3 +23,5 @@ share/desktop-directories/ggz.directory
@dirrmtry etc/xdg/menus/applications-merged
@dirrmtry etc/xdg/menus
@dirrmtry etc/xdg
+@exec touch %D/etc/ggz.modules
+@unexec [ "`wc -l<%D/etc/ggz.modules`" -gt 1 ]||rm -f %D/etc/ggz.modules