diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-06-11 13:51:25 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-06-11 13:51:25 +0000 |
commit | 505defe5746f6990ed79d904b5fcd2fb197eb4fe (patch) | |
tree | 0cd94eec31fd9d03a8fc1a4172fe4d4255b55e6e /games-board/grhino | |
parent | Remove jdbc-mssqlserver from package.mask (diff) | |
download | gentoo-2-505defe5746f6990ed79d904b5fcd2fb197eb4fe.tar.gz gentoo-2-505defe5746f6990ed79d904b5fcd2fb197eb4fe.tar.bz2 gentoo-2-505defe5746f6990ed79d904b5fcd2fb197eb4fe.zip |
Add nls USE flag
(Portage version: 2.1.2.9)
Diffstat (limited to 'games-board/grhino')
-rw-r--r-- | games-board/grhino/ChangeLog | 5 | ||||
-rw-r--r-- | games-board/grhino/grhino-0.16.0.ebuild | 37 |
2 files changed, 31 insertions, 11 deletions
diff --git a/games-board/grhino/ChangeLog b/games-board/grhino/ChangeLog index d98d43e24008..139fbfb4a513 100644 --- a/games-board/grhino/ChangeLog +++ b/games-board/grhino/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-board/grhino # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/grhino/ChangeLog,v 1.4 2007/01/09 23:57:00 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/grhino/ChangeLog,v 1.5 2007/06/11 13:51:25 nyhm Exp $ + + 11 Jun 2007; Tristan Heaven <nyhm@gentoo.org> grhino-0.16.0.ebuild: + Add nls USE flag 09 Jan 2007; <tupone@gentoo.org> grhino-0.16.0.ebuild: Install menu entry only if gnome use flag has been specified diff --git a/games-board/grhino/grhino-0.16.0.ebuild b/games-board/grhino/grhino-0.16.0.ebuild index 8320856afc88..4fef6b652c1f 100644 --- a/games-board/grhino/grhino-0.16.0.ebuild +++ b/games-board/grhino/grhino-0.16.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/grhino/grhino-0.16.0.ebuild,v 1.4 2007/01/09 23:57:00 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/grhino/grhino-0.16.0.ebuild,v 1.5 2007/06/11 13:51:25 nyhm Exp $ inherit eutils games @@ -11,30 +11,47 @@ SRC_URI="mirror://sourceforge/rhino/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" -IUSE="gnome gtp" - -DEPEND="gnome? ( =gnome-base/libgnomeui-2* )" +IUSE="gnome gtp nls" + +RDEPEND="gnome? ( =gnome-base/libgnomeui-2* ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i '/^(\|locale\|help\|omf\|icon\|)/s:@datadir@:/usr/share:' \ + Makefile.in \ + || die "sed failed" +} src_compile() { if use gnome || use gtp; then egamesconf \ + --localedir=/usr/share/locale \ $(use_enable gnome) \ $(use_enable gtp) \ - || die "egamesconf failed" + $(use_enable nls) \ + || die else - egamesconf --enable-gtp || die "egamesconf failed" + egamesconf \ + --enable-gtp \ + --disable-gnome \ + --localedir=/usr/share/locale \ + $(use_enable nls) \ + || die fi emake || die "emake failed" } src_install() { - make install DESTDIR=${D} || die "make install failed" + emake DESTDIR="${D}" install || die "emake install failed" - dodoc ChangeLog NEWS README TODO || die "installing docs failed" + dodoc ChangeLog NEWS README TODO if use gnome; then - doicon ${PN}.png - make_desktop_entry ${PN} "GRhino" ${PN}.png + make_desktop_entry ${PN} GRhino fi prepgamesdirs |