/[gentoo-alt]/trunk/prefix/eclass/php-ext-pecl.eclass
Gentoo

Contents of /trunk/prefix/eclass/php-ext-pecl.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1231 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl.eclass,v 1.5 2005/07/06 20:23:20 agriffis Exp $
4 #
5 # Author: Tal Peer <coredumb@gentoo.org>
6 #
7 # This eclass should be used by all dev-php/PECL-* ebuilds, as a uniform way of installing PECL extensions.
8 # For more information about PECL, see: http://pecl.php.net
9
10 [ -z "$PHP_EXT_PECL_PKG" ] && PHP_EXT_PECL_PKG=${PN/PECL-/}
11 PECL_PKG=$PHP_EXT_PECL_PKG
12 PECL_PKG_V=$PECL_PKG-$PV
13
14 [ -z "$PHP_EXT_NAME" ] && PHP_EXT_NAME=$PECL_PKG
15
16 inherit php-ext-source
17
18
19 EXPORT_FUNCTIONS src_compile src_install
20
21 # ---begin ebuild configurable settings
22
23 # Needs to be set if the filename is other than the package name
24 if [ -n "$PHP_EXT_PECL_FILENAME" ]; then
25 FILENAME="${PHP_EXT_PECL_FILENAME}-${PV}.tgz"
26 else
27 FILENAME="${PECL_PKG_V}.tgz"
28 fi
29
30 # ---end ebuild configurable settings
31
32 SRC_URI="http://pecl.php.net/get/${FILENAME}"
33 HOMEPAGE="http://pecl.php.net/${PECL_PKG}"
34 S=${WORKDIR}/${PECL_PKG_V}
35
36 php-ext-pecl_src_compile() {
37 php-ext-source_src_compile
38 }
39
40 php-ext-pecl_src_install() {
41 php-ext-source_src_install
42
43 # Those two are always present
44 dodoc $WORKDIR/package.xml CREDITS
45 }

  ViewVC Help
Powered by ViewVC 1.1.20