diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 10:00:56 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 10:00:56 +0000 |
commit | f3af2e6b85702f7593248e5bb601bd4b5ba63372 (patch) | |
tree | eb7d90999f76a4bc79c7506bcb19b50a064fc299 /eclass | |
parent | Port from project overlay (diff) | |
download | gentoo-2-f3af2e6b85702f7593248e5bb601bd4b5ba63372.tar.gz gentoo-2-f3af2e6b85702f7593248e5bb601bd4b5ba63372.tar.bz2 gentoo-2-f3af2e6b85702f7593248e5bb601bd4b5ba63372.zip |
Make eclass-manpages friendly
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-ext-pecl-r1.eclass | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/eclass/php-ext-pecl-r1.eclass b/eclass/php-ext-pecl-r1.eclass index 46757721e78b..cb4f2b0e6685 100644 --- a/eclass/php-ext-pecl-r1.eclass +++ b/eclass/php-ext-pecl-r1.eclass @@ -1,14 +1,28 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.6 2007/08/31 09:42:34 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.7 2007/08/31 10:00:56 jokey Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Luca Longinotti <chtekk@gentoo.org> -# Maintained by the PHP Team <php-bugs@gentoo.org> -# -# This eclass should be used by all dev-php[4,5]/pecl-* ebuilds, as a uniform way of installing PECL extensions. +# Author: Jakub Moc <jakub@gentoo.org> + +# @ECLASS: php-ext-pecl-r1.eclass +# @MAINTAINER: +# Gentoo PHP team <php-bugs@gentoo.org> +# @BLURB: A uniform way of installing PECL extensions +# @DESCRIPTION: +# This eclass should be used by all dev-php[45]/pecl-* ebuilds +# as a uniform way of installing PECL extensions. # For more information about PECL, see http://pecl.php.net/ +# @VARIABLE: PHP_EXT_PECL_FILENAME +# @DESCRIPTION: +# Set in ebuild if the filename differs from the package name so that SRC_URI gets set correctly. + +# @VARIABLE: DOCS +# @DESCRIPTION: +# Set in ebuild if you wish to install additional, package-specific documentation. + [[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" PECL_PKG="${PHP_EXT_PECL_PKG}" @@ -21,7 +35,6 @@ inherit php-ext-source-r1 depend.php EXPORT_FUNCTIONS src_compile src_install -# Needs to be set if the filename differs from the package name if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" else @@ -33,24 +46,30 @@ HOMEPAGE="http://pecl.php.net/${PECL_PKG}" S="${WORKDIR}/${PECL_PKG_V}" +# @FUNCTION: php-ext-pecl-r1_src_compile +# @DESCRIPTION: +# Takes care of standard compile for PECL packages. php-ext-pecl-r1_src_compile() { has_php php-ext-source-r1_src_compile } +# @FUNCTION: php-ext-pecl-r1_src_install +# @DESCRIPTION: +# Takes care of standard install for PECL packages. +# You can also simply add examples to IUSE to automagically install +# examples supplied with the package. php-ext-pecl-r1_src_install() { has_php php-ext-source-r1_src_install - # Those two are always present + # Those two are always present. dodoc-php "${WORKDIR}/package.xml" CREDITS - - # You can add more docs to be installed by defining DOCS variable in ebuild + for doc in ${DOCS} ; do [[ -s ${doc} ]] && dodoc-php ${doc} done - - # To install examples if the package supplies them, just add examples to IUSE + if has examples ${IUSE} && use examples ; then insinto /usr/share/doc/${CATEGORY}/${PF}/examples doins -r examples/* |