diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 09:42:34 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 09:42:34 +0000 |
commit | 4d71cdbbd7164880dda819fa6dbc505b81236ab7 (patch) | |
tree | 0abe990bdfc497be45474d81d1c0dd8e4dc41070 /eclass | |
parent | set EZC_PV in ebuilds if the PV mangling of beta/rc versions breaks SRC_URI (diff) | |
download | gentoo-2-4d71cdbbd7164880dda819fa6dbc505b81236ab7.tar.gz gentoo-2-4d71cdbbd7164880dda819fa6dbc505b81236ab7.tar.bz2 gentoo-2-4d71cdbbd7164880dda819fa6dbc505b81236ab7.zip |
Support doc and example useflag
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-ext-pecl-r1.eclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/php-ext-pecl-r1.eclass b/eclass/php-ext-pecl-r1.eclass index 58c652c71381..46757721e78b 100644 --- a/eclass/php-ext-pecl-r1.eclass +++ b/eclass/php-ext-pecl-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-pecl-r1.eclass,v 1.5 2007/03/05 01:50:47 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.6 2007/08/31 09:42:34 jokey Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Luca Longinotti <chtekk@gentoo.org> @@ -44,4 +44,15 @@ php-ext-pecl-r1_src_install() { # 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/* + fi } |