1 |
nyhm 08/09/28 23:40:24 |
2 |
|
3 |
Modified: games.eclass |
4 |
Log: |
5 |
EAPI 2 support |
6 |
|
7 |
Revision Changes Path |
8 |
1.128 eclass/games.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.128&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.128&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.127&r2=1.128 |
13 |
|
14 |
Index: games.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v |
17 |
retrieving revision 1.127 |
18 |
retrieving revision 1.128 |
19 |
diff -u -r1.127 -r1.128 |
20 |
--- games.eclass 11 Sep 2008 16:57:14 -0000 1.127 |
21 |
+++ games.eclass 28 Sep 2008 23:40:23 -0000 1.128 |
22 |
@@ -1,6 +1,6 @@ |
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.eclass,v 1.127 2008/09/11 16:57:14 nyhm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.128 2008/09/28 23:40:23 nyhm Exp $ |
27 |
|
28 |
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@g.o |
29 |
# |
30 |
@@ -10,7 +10,10 @@ |
31 |
|
32 |
inherit multilib eutils |
33 |
|
34 |
-EXPORT_FUNCTIONS pkg_preinst pkg_postinst src_compile pkg_setup |
35 |
+case ${EAPI:-0} in |
36 |
+ 0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;; |
37 |
+ 2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;; |
38 |
+esac |
39 |
|
40 |
[[ -z ${GAME} ]] && GAME=${PN%%-*} |
41 |
|
42 |
@@ -135,8 +138,14 @@ |
43 |
&& usermod -s /bin/bash "${GAMES_USER_DED}" |
44 |
} |
45 |
|
46 |
-games_src_compile() { |
47 |
+games_src_configure() { |
48 |
[[ -x ./configure ]] && { egamesconf || die "egamesconf failed"; } |
49 |
+} |
50 |
+ |
51 |
+games_src_compile() { |
52 |
+ case ${EAPI:-0} in |
53 |
+ 0|1) games_src_configure ;; |
54 |
+ esac |
55 |
[ -e [Mm]akefile ] && { emake || die "emake failed"; } |
56 |
} |