diff options
author | Tal Peer <coredumb@gentoo.org> | 2003-10-13 19:59:20 +0000 |
---|---|---|
committer | Tal Peer <coredumb@gentoo.org> | 2003-10-13 19:59:20 +0000 |
commit | 7409ebd4a62c7863d471c2d05d5f46561aaa7ca5 (patch) | |
tree | cabb6425352b5f0add1af7edecd718071374e8a0 /eclass/php-ext-pecl.eclass | |
parent | Version bumped. Closes #30068 (diff) | |
download | historical-7409ebd4a62c7863d471c2d05d5f46561aaa7ca5.tar.gz historical-7409ebd4a62c7863d471c2d05d5f46561aaa7ca5.tar.bz2 historical-7409ebd4a62c7863d471c2d05d5f46561aaa7ca5.zip |
Initial commit, still quite experimental
Diffstat (limited to 'eclass/php-ext-pecl.eclass')
-rw-r--r-- | eclass/php-ext-pecl.eclass | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/eclass/php-ext-pecl.eclass b/eclass/php-ext-pecl.eclass new file mode 100644 index 000000000000..5a210381feb2 --- /dev/null +++ b/eclass/php-ext-pecl.eclass @@ -0,0 +1,46 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl.eclass,v 1.1 2003/10/13 19:59:20 coredumb Exp $ +# +# Author: Tal Peer <coredumb@gentoo.org> +# +# This eclass should be used by all dev-php/PECL-* ebuilds, as a uniform way of installing PECL extensions. +# For more information about PECL, see: http://pecl.php.net + +PECL_PKG=${PN/PECL-/} +PECL_PKG_V=$PECL_PKG-$PV + +[ -z "$PHP_EXT_NAME" ] && PHP_EXT_NAME=$PECL_PKG + +inherit php-ext-source + +ECLASS=php-ext-pecl +INHERITED="$INHERITED $ECLASS" + +EXPORT_FUNCTIONS src_compile src_install + +# ---begin ebuild configurable settings + +# Needs to be set if the filename is other than the package name +if [ -n "$PHP_EXT_PECL_FILENAME" ]; then + FILENAME="${PHP_EXT_PECL_FILENAME}-${PV}.tgz" +else + FILENAME="${PECL_PKG_V}.tgz" +fi + +# ---end ebuild configurable settings + +SRC_URI="http://pecl.php.net/get/${FILENAME}" +HOMEPAGE="http://pecl.php.net/${PECL_PKG}" +S=${WORKDIR}/${PECL_PKG_V} + +php-ext-pecl_src_compile() { + php-ext-source_src_compile +} + +php-ext-pecl_src_install() { + php-ext-source_src_install + + # Those two are always present + dodoc $WORKDIR/package.xml CREDITS +} |