From 4d71cdbbd7164880dda819fa6dbc505b81236ab7 Mon Sep 17 00:00:00 2001 From: Markus Ullmann Date: Fri, 31 Aug 2007 09:42:34 +0000 Subject: Support doc and example useflag --- eclass/php-ext-pecl-r1.eclass | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'eclass') 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 # Author: Luca Longinotti @@ -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 } -- cgit v1.2.3-65-gdbad