1 |
olemarkus 10/11/02 21:46:05 |
2 |
|
3 |
Modified: php-ext-source-r2.eclass |
4 |
Log: |
5 |
Added an src_prepare that fits better with EAPI=2 |
6 |
|
7 |
Revision Changes Path |
8 |
1.4 eclass/php-ext-source-r2.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?rev=1.4&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?rev=1.4&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?r1=1.3&r2=1.4 |
13 |
|
14 |
Index: php-ext-source-r2.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v |
17 |
retrieving revision 1.3 |
18 |
retrieving revision 1.4 |
19 |
diff -u -r1.3 -r1.4 |
20 |
--- php-ext-source-r2.eclass 2 Nov 2010 17:09:56 -0000 1.3 |
21 |
+++ php-ext-source-r2.eclass 2 Nov 2010 21:46:05 -0000 1.4 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.3 2010/11/02 17:09:56 olemarkus Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.4 2010/11/02 21:46:05 olemarkus Exp $ |
27 |
# |
28 |
# Author: Tal Peer <coredumb@g.o> |
29 |
# Author: Stuart Herbert <stuart@g.o> |
30 |
@@ -18,7 +18,7 @@ |
31 |
|
32 |
inherit flag-o-matic autotools depend.php |
33 |
|
34 |
-EXPORT_FUNCTIONS src_unpack src_configure src_compile src_install |
35 |
+EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install |
36 |
|
37 |
# @ECLASS-VARIABLE: PHP_EXT_NAME |
38 |
# @DESCRIPTION: |
39 |
@@ -92,10 +92,14 @@ |
40 |
local slot orig_s="$S" |
41 |
for slot in $(php_get_slots); do |
42 |
cp -r "${orig_s}" "${WORKDIR}/${slot}" |
43 |
+ done |
44 |
+} |
45 |
+ |
46 |
+php-ext-source-r2_src_prepare() { |
47 |
+ local slot orig_s="$S" |
48 |
+ for slot in $(php_get_slots); do |
49 |
php_init_slot_env ${slot} |
50 |
- if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then |
51 |
- php-ext-source-r2_phpize |
52 |
- fi |
53 |
+ php-ext-source-r2_phpize |
54 |
done |
55 |
} |
56 |
|
57 |
@@ -103,14 +107,16 @@ |
58 |
# @DESCRIPTION: |
59 |
# Runs phpize and autotools in addition to the standard src_unpack |
60 |
php-ext-source-r2_phpize() { |
61 |
- # Create configure out of config.m4 |
62 |
- # I wish I could run this to solve #329071, but I cannot |
63 |
- #autotools_run_tool ${PHPIZE} |
64 |
- ${PHPIZE} |
65 |
- # force run of libtoolize and regeneration of related autotools |
66 |
- # files (bug 220519) |
67 |
- rm aclocal.m4 |
68 |
- eautoreconf |
69 |
+ if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then |
70 |
+ # Create configure out of config.m4 |
71 |
+ # I wish I could run this to solve #329071, but I cannot |
72 |
+ #autotools_run_tool ${PHPIZE} |
73 |
+ ${PHPIZE} |
74 |
+ # force run of libtoolize and regeneration of related autotools |
75 |
+ # files (bug 220519) |
76 |
+ rm aclocal.m4 |
77 |
+ eautoreconf |
78 |
+ fi |
79 |
} |
80 |
|
81 |
# @FUNCTION: php-ext-source-r2_src_configure |