| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.10 2007/10/22 22:54:19 jokey Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.11 2008/01/06 19:30:24 swegener Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Tal Peer <coredumb@gentoo.org> |
5 | # Author: Tal Peer <coredumb@gentoo.org> |
| 6 | # Author: Luca Longinotti <chtekk@gentoo.org> |
6 | # Author: Luca Longinotti <chtekk@gentoo.org> |
| 7 | # Author: Jakub Moc <jakub@gentoo.org> |
7 | # Author: Jakub Moc <jakub@gentoo.org> |
| 8 | |
8 | |
| … | |
… | |
| 16 | # For more information about PECL, see http://pecl.php.net/ |
16 | # For more information about PECL, see http://pecl.php.net/ |
| 17 | |
17 | |
| 18 | # @ECLASS-VARIABLE: PHP_EXT_PECL_PKG |
18 | # @ECLASS-VARIABLE: PHP_EXT_PECL_PKG |
| 19 | # @DESCRIPTION: |
19 | # @DESCRIPTION: |
| 20 | # Set in ebuild before inheriting this eclass if the tarball name |
20 | # Set in ebuild before inheriting this eclass if the tarball name |
| 21 | # differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE gets set |
21 | # differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE gets set |
| 22 | # correctly by the eclass. |
22 | # correctly by the eclass. |
| 23 | # |
23 | # |
| 24 | # Setting this variable manually also affects PHP_EXT_NAME and ${S} |
24 | # Setting this variable manually also affects PHP_EXT_NAME and ${S} |
| 25 | # unless you override those in ebuild. Also see PHP_EXT_PECL_FILENAME |
25 | # unless you override those in ebuild. Also see PHP_EXT_PECL_FILENAME |
| 26 | # if this is not desired for whatever reason. |
26 | # if this is not desired for whatever reason. |
| … | |
… | |
| 30 | # Set in ebuild before inheriting this eclass if the tarball name |
30 | # Set in ebuild before inheriting this eclass if the tarball name |
| 31 | # differs from ${PN/pecl-/} so that SRC_URI gets set correctly by |
31 | # differs from ${PN/pecl-/} so that SRC_URI gets set correctly by |
| 32 | # the eclass. |
32 | # the eclass. |
| 33 | # |
33 | # |
| 34 | # Unlike PHP_EXT_PECL_PKG, setting this variable does not affect |
34 | # Unlike PHP_EXT_PECL_PKG, setting this variable does not affect |
| 35 | # HOMEPAGE, PHP_EXT_NAME or ${S}. |
35 | # HOMEPAGE, PHP_EXT_NAME or ${S}. |
| 36 | |
36 | |
| 37 | |
37 | |
| 38 | [[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" |
38 | [[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" |
| 39 | |
39 | |
| 40 | PECL_PKG="${PHP_EXT_PECL_PKG}" |
40 | PECL_PKG="${PHP_EXT_PECL_PKG}" |
| … | |
… | |
| 67 | } |
67 | } |
| 68 | |
68 | |
| 69 | # @FUNCTION: php-ext-pecl-r1_src_install |
69 | # @FUNCTION: php-ext-pecl-r1_src_install |
| 70 | # @DESCRIPTION: |
70 | # @DESCRIPTION: |
| 71 | # Takes care of standard install for PECL packages. |
71 | # Takes care of standard install for PECL packages. |
| 72 | # You can also simply add examples to IUSE to automagically install |
72 | # You can also simply add examples to IUSE to automagically install |
| 73 | # examples supplied with the package. |
73 | # examples supplied with the package. |
| 74 | |
74 | |
| 75 | # @VARIABLE: DOCS |
75 | # @VARIABLE: DOCS |
| 76 | # @DESCRIPTION: |
76 | # @DESCRIPTION: |
| 77 | # Set in ebuild if you wish to install additional, package-specific documentation. |
77 | # Set in ebuild if you wish to install additional, package-specific documentation. |