summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2006-10-16 18:59:19 +0000
committerTristan Heaven <nyhm@gentoo.org>2006-10-16 18:59:19 +0000
commit81c71f8785012e461135c0a509d77ccf22777b09 (patch)
tree3dceede76657b838385f8238ea6c2307f5c703b8 /games-board/ggz-gtk-games
parentDon't clobber ggz.modules when installing (diff)
downloadgentoo-2-81c71f8785012e461135c0a509d77ccf22777b09.tar.gz
gentoo-2-81c71f8785012e461135c0a509d77ccf22777b09.tar.bz2
gentoo-2-81c71f8785012e461135c0a509d77ccf22777b09.zip
Don't clobber ggz.modules when installing
(Portage version: 2.1.2_pre3-r2)
Diffstat (limited to 'games-board/ggz-gtk-games')
-rw-r--r--games-board/ggz-gtk-games/ChangeLog5
-rw-r--r--games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild37
2 files changed, 32 insertions, 10 deletions
diff --git a/games-board/ggz-gtk-games/ChangeLog b/games-board/ggz-gtk-games/ChangeLog
index d6283930e0d3..91e93ecc4133 100644
--- a/games-board/ggz-gtk-games/ChangeLog
+++ b/games-board/ggz-gtk-games/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-board/ggz-gtk-games
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-gtk-games/ChangeLog,v 1.14 2006/07/18 21:51:04 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-gtk-games/ChangeLog,v 1.15 2006/10/16 18:59:19 nyhm Exp $
+
+ 16 Oct 2006; Tristan Heaven <nyhm@gentoo.org> ggz-gtk-games-0.0.13.ebuild:
+ Don't clobber ggz.modules when installing
18 Jul 2006; Michael Hanselmann <hansmi@gentoo.org>
ggz-gtk-games-0.0.13.ebuild:
diff --git a/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild b/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild
index 8e4fffe7f6a9..de66c35d15e0 100644
--- a/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild
+++ b/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild,v 1.3 2006/07/18 21:51:04 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-gtk-games/ggz-gtk-games-0.0.13.ebuild,v 1.4 2006/10/16 18:59:19 nyhm Exp $
inherit games
-DESCRIPTION="These are the gtk versions of the games made by GGZ Gaming Zone"
+DESCRIPTION="These are the GTK+ versions of the games made by GGZ Gaming Zone"
HOMEPAGE="http://www.ggzgamingzone.org/"
SRC_URI="http://ftp.belnet.be/packages/ggzgamingzone/ggz/${PV}/${P}.tar.gz
http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/${PV}/${P}.tar.gz"
@@ -12,20 +12,39 @@ SRC_URI="http://ftp.belnet.be/packages/ggzgamingzone/ggz/${PV}/${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-amd64 ppc x86"
-IUSE=""
+IUSE="nls"
+RESTRICT="userpriv"
-DEPEND="~games-board/ggz-gtk-client-0.0.13
- =x11-libs/gtk+-2*"
+RDEPEND="~games-board/ggz-gtk-client-${PV}
+ =x11-libs/gtk+-2*
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i 's:$[{(]prefix[)}]/share/locale:/usr/share/locale:' \
+ $(find po -name 'Makefile.in*') \
+ configure \
+ || die "sed failed"
+}
src_compile() {
egamesconf \
- --enable-gtk2 \
- --enable-noregistry=${GAMES_DATADIR}/ggz/ggz-gtk || die
- emake || die
+ --disable-debug \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ || die
+ emake || die "emake failed"
}
src_install() {
- make DESTDIR=${D} install || die
+ if [[ -f "${ROOT}/${GAMES_SYSCONFDIR}"/ggz/ggz.modules ]] ; then
+ dodir "${GAMES_SYSCONFDIR}"/ggz
+ cp {"${ROOT}","${D}"}/"${GAMES_SYSCONFDIR}"/ggz/ggz.modules
+ fi
+ emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS QuickStart.GGZ README* TODO
prepgamesdirs
}