diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2006-10-04 17:53:19 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2006-10-04 17:53:19 +0000 |
commit | 58d6427a528f7fa671c6b7fd30408d478c577374 (patch) | |
tree | 9149dc42172bcf849d9ecce0b613e13440996d01 /games-kids/gtans/gtans-1.2.ebuild | |
parent | Remove the die when both postgres and mysql are in USE. (diff) | |
download | gentoo-2-58d6427a528f7fa671c6b7fd30408d478c577374.tar.gz gentoo-2-58d6427a528f7fa671c6b7fd30408d478c577374.tar.bz2 gentoo-2-58d6427a528f7fa671c6b7fd30408d478c577374.zip |
Fix install paths and gtk+-1 dependency
(Portage version: 2.1.2_pre2-r2)
Diffstat (limited to 'games-kids/gtans/gtans-1.2.ebuild')
-rw-r--r-- | games-kids/gtans/gtans-1.2.ebuild | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/games-kids/gtans/gtans-1.2.ebuild b/games-kids/gtans/gtans-1.2.ebuild index 47e65bd6a88c..87be66265ec1 100644 --- a/games-kids/gtans/gtans-1.2.ebuild +++ b/games-kids/gtans/gtans-1.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-kids/gtans/gtans-1.2.ebuild,v 1.8 2006/02/15 22:57:21 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-kids/gtans/gtans-1.2.ebuild,v 1.9 2006/10/04 17:53:19 nyhm Exp $ inherit toolchain-funcs games @@ -13,30 +13,34 @@ SLOT="0" KEYWORDS="amd64 ~ppc x86" IUSE="nls" -RDEPEND=">=x11-libs/gtk+-1.2.1" +RDEPEND="=x11-libs/gtk+-1.2* + nls? ( virtual/libintl )" DEPEND="${RDEPEND} - nls? ( sys-devel/gettext )" + nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} - cd "${S}" + + sed -i \ + -e "/^CC/s:gcc:$(tc-getCC):" \ + -e "/^CFLG/s:-O2:${CFLAGS}:" \ + -e "/^LDFLG/s:$: ${LDFLAGS}:" \ + -e '/$(INSTALL)/s:-s::' \ + -e "/^HOMEDIR/s:=.*:=${GAMES_DATADIR}/${PN}/:" \ + -e "/^EXECDIR/s:=.*:=${GAMES_BINDIR}/:" \ + makefile || die "sed failed" + if ! use nls ; then sed -i \ - -e "/\(TGTXT\| po\)/ s/^/#/" \ - -e "/^CC/ s:=.*:= $(tc-getCC):" \ - -e "/misc/ s/PREFIX.*/install/" \ - -e "/^CFLG[ ]*=/ s:=.*:= ${CFLAGS}:" makefile \ - || die "sed failed" + -e '/DTGTXT/d' \ + -e '/cd po/d' \ + makefile || die "sed failed" fi - sed -i \ - -e "s:/share::" \ - -e "/^PREFIX/ s:usr:usr/share:" misc/Makefile \ - || die "sed failed" } src_install() { - make DESTDIR="${D}" install || die "make install failed" + emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS HISTORY prepgamesdirs } |