1 |
hoffie 08/05/07 16:07:58 |
2 |
|
3 |
Modified: php-ext-source-r1.eclass |
4 |
Log: |
5 |
php-ext-source-r1.eclass: noop change to allow for graceful phpize migration wrt bug 220519 |
6 |
|
7 |
Revision Changes Path |
8 |
1.17 eclass/php-ext-source-r1.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/php-ext-source-r1.eclass?rev=1.17&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/php-ext-source-r1.eclass?rev=1.17&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/php-ext-source-r1.eclass?r1=1.16&r2=1.17 |
13 |
|
14 |
Index: php-ext-source-r1.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v |
17 |
retrieving revision 1.16 |
18 |
retrieving revision 1.17 |
19 |
diff -u -r1.16 -r1.17 |
20 |
--- php-ext-source-r1.eclass 6 Jan 2008 19:30:24 -0000 1.16 |
21 |
+++ php-ext-source-r1.eclass 7 May 2008 16:07:57 -0000 1.17 |
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-r1.eclass,v 1.16 2008/01/06 19:30:24 swegener Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.17 2008/05/07 16:07:57 hoffie Exp $ |
27 |
# |
28 |
# Author: Tal Peer <coredumb@g.o> |
29 |
# Author: Stuart Herbert <stuart@g.o> |
30 |
@@ -21,7 +21,7 @@ |
31 |
|
32 |
inherit php-ext-base-r1 flag-o-matic autotools depend.php |
33 |
|
34 |
-EXPORT_FUNCTIONS src_compile src_install |
35 |
+EXPORT_FUNCTIONS src_unpack src_compile src_install |
36 |
|
37 |
# @ECLASS-VARIABLE: PHP_EXT_NAME |
38 |
# @DESCRIPTION: |
39 |
@@ -35,6 +35,30 @@ |
40 |
RDEPEND="" |
41 |
|
42 |
|
43 |
+# @FUNCTION: php-ext-source-r1_src_unpack |
44 |
+# @DESCRIPTION: |
45 |
+# Default src_unpack to allow for moving the phpize call to src_unpack |
46 |
+# gracefully (we need to fix all ebuilds to explicitly run src_unpack if |
47 |
+# they have their own) |
48 |
+## Runs phpize and autotools in addition to the standard src_unpack |
49 |
+## |
50 |
+## @VARIABLE: PHP_EXT_SKIP_PHPIZE |
51 |
+## @DESCRIPTION: |
52 |
+## phpize will be run by default for all ebuilds that use php-ext-source-r1_src_compile. |
53 |
+## Set PHP_EXT_SKIP_PHPIZE="yes" in your ebuild if you do not want to run phpize. |
54 |
+php-ext-source-r1_src_unpack() { |
55 |
+ unpack ${A} |
56 |
+ cd "${S}" |
57 |
+# # Create configure out of config.m4 |
58 |
+# if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then |
59 |
+# ${PHPIZE} |
60 |
+# # force run of libtoolize and regeneration of related autotools |
61 |
+# # files (bug 220519) |
62 |
+# rm aclocal.m4 |
63 |
+# eautoreconf |
64 |
+# fi |
65 |
+} |
66 |
+ |
67 |
# @FUNCTION: php-ext-source-r1_src_compile |
68 |
# @DESCRIPTION: |
69 |
# Takes care of standard compile for PHP extensions (modules). |
70 |
|
71 |
|
72 |
|
73 |
-- |
74 |
gentoo-commits@l.g.o mailing list |