1 |
nyhm 08/10/11 01:36:47 |
2 |
|
3 |
Modified: games-ggz.eclass |
4 |
Log: |
5 |
EAPI 2 support |
6 |
|
7 |
Revision Changes Path |
8 |
1.4 eclass/games-ggz.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games-ggz.eclass?rev=1.4&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games-ggz.eclass?rev=1.4&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games-ggz.eclass?r1=1.3&r2=1.4 |
13 |
|
14 |
Index: games-ggz.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v |
17 |
retrieving revision 1.3 |
18 |
retrieving revision 1.4 |
19 |
diff -u -r1.3 -r1.4 |
20 |
--- games-ggz.eclass 26 Mar 2008 14:35:11 -0000 1.3 |
21 |
+++ games-ggz.eclass 11 Oct 2008 01:36:47 -0000 1.4 |
22 |
@@ -1,29 +1,31 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v 1.3 2008/03/26 14:35:11 nyhm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v 1.4 2008/10/11 01:36:47 nyhm Exp $ |
27 |
|
28 |
# For GGZ Gaming Zone packages |
29 |
|
30 |
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm |
31 |
+case ${EAPI:-0} in |
32 |
+ 0|1) EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm ;; |
33 |
+ 2) EXPORT_FUNCTIONS src_configure src_compile src_install pkg_postinst pkg_postrm ;; |
34 |
+esac |
35 |
|
36 |
HOMEPAGE="http://www.ggzgamingzone.org/" |
37 |
SRC_URI="mirror://ggz/${PV}/${P}.tar.gz" |
38 |
|
39 |
GGZ_MODDIR="/usr/share/ggz/modules" |
40 |
|
41 |
-# Output the configure option to disable "General Debugging" |
42 |
-games-ggz_debug() { |
43 |
- if has debug ${IUSE} && ! use debug ; then |
44 |
- echo --disable-debug |
45 |
- fi |
46 |
-} |
47 |
- |
48 |
-games-ggz_src_compile() { |
49 |
+games-ggz_src_configure() { |
50 |
econf \ |
51 |
--disable-dependency-tracking \ |
52 |
--enable-noregistry="${GGZ_MODDIR}" \ |
53 |
- $(games-ggz_debug) \ |
54 |
+ $(has debug ${IUSE} && ! use debug && echo --disable-debug) \ |
55 |
"$@" || die |
56 |
+} |
57 |
+ |
58 |
+games-ggz_src_compile() { |
59 |
+ case ${EAPI:-0} in |
60 |
+ 0|1) games-ggz_src_configure "$@" ;; |
61 |
+ esac |
62 |
emake || die "emake failed" |
63 |
} |
64 |
|
65 |
@@ -62,7 +64,6 @@ |
66 |
|
67 |
# Register new modules |
68 |
games-ggz_pkg_postinst() { |
69 |
- has games ${INHERITED} && games_pkg_postinst |
70 |
games-ggz_update_modules |
71 |
} |