diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-09-04 18:43:27 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-09-04 18:43:27 +0000 |
commit | 0b1e6fb604049490275bd3a6626874dc52db716a (patch) | |
tree | 714b0e6cdc31c59ca2ec9f1ad6cf0b004b8afd85 /eclass | |
parent | Version bump since the previous versions are no longer available. (diff) | |
download | gentoo-2-0b1e6fb604049490275bd3a6626874dc52db716a.tar.gz gentoo-2-0b1e6fb604049490275bd3a6626874dc52db716a.tar.bz2 gentoo-2-0b1e6fb604049490275bd3a6626874dc52db716a.zip |
Add support for DOCS variable in src_install
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-ext-source-r1.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/php-ext-source-r1.eclass b/eclass/php-ext-source-r1.eclass index edf133046fb7..4994d02e4b93 100644 --- a/eclass/php-ext-source-r1.eclass +++ b/eclass/php-ext-source-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.14 2007/09/02 17:49:20 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.15 2007/09/04 18:43:27 jokey Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Stuart Herbert <stuart@gentoo.org> @@ -88,6 +88,10 @@ php-ext-source-r1_src_compile() { # @FUNCTION: php-ext-source-r1_src_install # @DESCRIPTION: # Takes care of standard install for PHP extensions (modules). + +# @VARIABLE: DOCS +# @DESCRIPTION: +# Set in ebuild if you wish to install additional, package-specific documentation. php-ext-source-r1_src_install() { # Pull in the PHP settings has_php @@ -103,5 +107,9 @@ php-ext-source-r1_src_install() { newins "${WORKDIR}/${PHP_EXT_NAME}-versioned.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" fi + for doc in ${DOCS} ; do + [[ -s ${doc} ]] && dodoc-php ${doc} + done + php-ext-base-r1_src_install } |