diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-09-02 17:49:20 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-09-02 17:49:20 +0000 |
commit | 2fb53047482ce4f0e86aafec90805d3a0aabaf67 (patch) | |
tree | 481800db99f9bf0de99fab0b8a1d4652836a590c /eclass/php-ext-pecl.eclass | |
parent | Added xulrunner to mplayerplug-in as an alternative to the mozilla apps for b... (diff) | |
download | gentoo-2-2fb53047482ce4f0e86aafec90805d3a0aabaf67.tar.gz gentoo-2-2fb53047482ce4f0e86aafec90805d3a0aabaf67.tar.bz2 gentoo-2-2fb53047482ce4f0e86aafec90805d3a0aabaf67.zip |
Cleanup and more doc'ification of php eclasses
Diffstat (limited to 'eclass/php-ext-pecl.eclass')
-rw-r--r-- | eclass/php-ext-pecl.eclass | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/eclass/php-ext-pecl.eclass b/eclass/php-ext-pecl.eclass index a1a12a32e962..2464f9aa8c4f 100644 --- a/eclass/php-ext-pecl.eclass +++ b/eclass/php-ext-pecl.eclass @@ -1,45 +1,27 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl.eclass,v 1.5 2005/07/06 20:23:20 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl.eclass,v 1.6 2007/09/02 17:49:20 jokey 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 -[ -z "$PHP_EXT_PECL_PKG" ] && PHP_EXT_PECL_PKG=${PN/PECL-/} -PECL_PKG=$PHP_EXT_PECL_PKG -PECL_PKG_V=$PECL_PKG-$PV +# DEPRECATED!!! +# STOP USING THIS ECLASS, use php-ext-pecl-r1.eclass instead! -[ -z "$PHP_EXT_NAME" ] && PHP_EXT_NAME=$PECL_PKG +inherit php-ext-pecl-r1 -inherit php-ext-source - - -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} +deprecation_warning() { + eerror "Please upgrade ${PF} to use php-ext-pecl-r1.eclass!" +} php-ext-pecl_src_compile() { - php-ext-source_src_compile + deprecation_warning + php-ext-pecl-r1_src_compile } php-ext-pecl_src_install() { - php-ext-source_src_install - - # Those two are always present - dodoc $WORKDIR/package.xml CREDITS + deprecation_warning + php-ext-pecl-r1_src_install } |