/[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.4 - (hide annotations) (download)
Tue Sep 5 07:42:00 2006 UTC (7 years, 10 months ago) by sebastian
Branch: MAIN
Changes since 1.3: +4 -3 lines
Handle patch-level releases (pecl-name-x.y.z_pN) properly.

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

  ViewVC Help
Powered by ViewVC 1.1.20