diff options
Diffstat (limited to 'games-board/ccgo/ccgo-0.3.6.4.ebuild')
-rw-r--r-- | games-board/ccgo/ccgo-0.3.6.4.ebuild | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/games-board/ccgo/ccgo-0.3.6.4.ebuild b/games-board/ccgo/ccgo-0.3.6.4.ebuild index 3e4700a1d4f5..7ac0825263b3 100644 --- a/games-board/ccgo/ccgo-0.3.6.4.ebuild +++ b/games-board/ccgo/ccgo-0.3.6.4.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/ccgo/ccgo-0.3.6.4.ebuild,v 1.1 2010/01/15 16:15:12 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/ccgo/ccgo-0.3.6.4.ebuild,v 1.2 2010/01/15 20:04:50 mr_bones_ Exp $ EAPI=2 -inherit games +inherit autotools games DESCRIPTION="An IGS client written in C++" HOMEPAGE="http://ccdw.org/~cjj/prog/ccgo/" @@ -21,13 +21,29 @@ DEPEND="${RDEPEND} dev-util/pkgconfig nls? ( sys-devel/gettext )" +src_prepare() { + sed -i \ + -e '/^Encoding/d' \ + -e '/^Categories/s/Application;//' \ + ccgo.desktop.in \ + || die 'sed failed' + sed -i \ + -e '/^localedir/s/=.*/=@localedir@/' \ + -e '/^appicondir/s:=.*:=/usr/share/pixmaps:' \ + -e '/^desktopdir/s:=.*:=/usr/share/applications:' \ + Makefile.am \ + || die 'sed failed' + eautoreconf +} + src_configure() { egamesconf \ - --datadir="${GAMES_DATADIR_BASE}" \ + --disable-dependency-tracking \ + --localedir=/usr/share/locale \ $(use_enable nls) } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake DESTDIR="${D}" install || die 'emake install failed' prepgamesdirs } |