summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/games-ggz.eclass25
1 files changed, 13 insertions, 12 deletions
diff --git a/eclass/games-ggz.eclass b/eclass/games-ggz.eclass
index 972e6b1e9068..9d5603f99252 100644
--- a/eclass/games-ggz.eclass
+++ b/eclass/games-ggz.eclass
@@ -1,29 +1,31 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v 1.3 2008/03/26 14:35:11 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v 1.4 2008/10/11 01:36:47 nyhm Exp $
# For GGZ Gaming Zone packages
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
+case ${EAPI:-0} in
+ 0|1) EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm ;;
+ 2) EXPORT_FUNCTIONS src_configure src_compile src_install pkg_postinst pkg_postrm ;;
+esac
HOMEPAGE="http://www.ggzgamingzone.org/"
SRC_URI="mirror://ggz/${PV}/${P}.tar.gz"
GGZ_MODDIR="/usr/share/ggz/modules"
-# Output the configure option to disable "General Debugging"
-games-ggz_debug() {
- if has debug ${IUSE} && ! use debug ; then
- echo --disable-debug
- fi
-}
-
-games-ggz_src_compile() {
+games-ggz_src_configure() {
econf \
--disable-dependency-tracking \
--enable-noregistry="${GGZ_MODDIR}" \
- $(games-ggz_debug) \
+ $(has debug ${IUSE} && ! use debug && echo --disable-debug) \
"$@" || die
+}
+
+games-ggz_src_compile() {
+ case ${EAPI:-0} in
+ 0|1) games-ggz_src_configure "$@" ;;
+ esac
emake || die "emake failed"
}
@@ -62,7 +64,6 @@ games-ggz_update_modules() {
# Register new modules
games-ggz_pkg_postinst() {
- has games ${INHERITED} && games_pkg_postinst
games-ggz_update_modules
}