diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2007-01-08 17:55:34 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2007-01-08 17:55:34 +0000 |
commit | fef0aedbb6f8762fd420c6adedfad5ef42fdb4de (patch) | |
tree | 5c32cfbb475a2688ef8ecffb744af092ab6bb29a /games-board/grhino/grhino-0.16.0.ebuild | |
parent | New revision for the amd64 installer and digest fix, bug #160817 (diff) | |
download | gentoo-2-fef0aedbb6f8762fd420c6adedfad5ef42fdb4de.tar.gz gentoo-2-fef0aedbb6f8762fd420c6adedfad5ef42fdb4de.tar.bz2 gentoo-2-fef0aedbb6f8762fd420c6adedfad5ef42fdb4de.zip |
Defaulting to use gtp if neither gnome or gtp are specified
(Portage version: 2.1.1-r2)
Diffstat (limited to 'games-board/grhino/grhino-0.16.0.ebuild')
-rw-r--r-- | games-board/grhino/grhino-0.16.0.ebuild | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/games-board/grhino/grhino-0.16.0.ebuild b/games-board/grhino/grhino-0.16.0.ebuild index 20f16c46999f..e90369bcbcc7 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.2 2007/01/08 07:16:16 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/grhino/grhino-0.16.0.ebuild,v 1.3 2007/01/08 17:55:34 tupone Exp $ inherit eutils games @@ -15,18 +15,15 @@ IUSE="gnome gtp" DEPEND="gnome? ( =gnome-base/libgnomeui-2* )" -pkg_setup() { - if ! ( use gnome || use gtp ); then - die "Aborting build. You you have to specify gnome or gtp use flags" - fi - games_pkg_setup -} - src_compile() { - egamesconf \ - $(use_enable gnome) \ - $(use_enable gtp) \ - || die "egamesconf failed" + if use gnome || use gtp; then + egamesconf \ + $(use_enable gnome) \ + $(use_enable gtp) \ + || die "egamesconf failed" + else + egamesconf --enable-gtp || die "egamesconf failed" + fi emake || die "emake failed" } |