/[gentoo-x86]/eclass/php-ext-pecl-r1.eclass
Gentoo

Contents of /eclass/php-ext-pecl-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Mar 5 01:50:47 2007 UTC (7 years, 1 month ago) by chtekk
Branch: MAIN
Changes since 1.4: +14 -16 lines
New updated PHP eclasses, fix lots of bugs, introduce PHP 5.2 support.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4 #
5 # Author: Tal Peer <coredumb@gentoo.org>
6 # Author: Luca Longinotti <chtekk@gentoo.org>
7 # Maintained by the PHP Team <php-bugs@gentoo.org>
8 #
9 # This eclass should be used by all dev-php[4,5]/pecl-* ebuilds, as a uniform way of installing PECL extensions.
10 # For more information about PECL, see http://pecl.php.net/
11
12 [[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
13
14 PECL_PKG="${PHP_EXT_PECL_PKG}"
15 MY_PV="${PV/_/}"
16 PECL_PKG_V="${PECL_PKG}-${MY_PV}"
17
18 [[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"
19
20 inherit php-ext-source-r1 depend.php
21
22 EXPORT_FUNCTIONS src_compile src_install
23
24 # Needs to be set if the filename differs from the package name
25 if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then
26 FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz"
27 else
28 FILENAME="${PECL_PKG_V}.tgz"
29 fi
30
31 SRC_URI="http://pecl.php.net/get/${FILENAME}"
32 HOMEPAGE="http://pecl.php.net/${PECL_PKG}"
33
34 S="${WORKDIR}/${PECL_PKG_V}"
35
36 php-ext-pecl-r1_src_compile() {
37 has_php
38 php-ext-source-r1_src_compile
39 }
40
41 php-ext-pecl-r1_src_install() {
42 has_php
43 php-ext-source-r1_src_install
44
45 # Those two are always present
46 dodoc-php "${WORKDIR}/package.xml" CREDITS
47 }

  ViewVC Help
Powered by ViewVC 1.1.20