| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.9 2007/09/02 17:49:20 jokey Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.10 2007/10/22 22:54:19 jokey Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Tal Peer <coredumb@gentoo.org> |
5 | # Author: Tal Peer <coredumb@gentoo.org> |
| 6 | # Author: Luca Longinotti <chtekk@gentoo.org> |
6 | # Author: Luca Longinotti <chtekk@gentoo.org> |
| 7 | # Author: Jakub Moc <jakub@gentoo.org> |
7 | # Author: Jakub Moc <jakub@gentoo.org> |
| 8 | |
8 | |
| … | |
… | |
| 77 | # Set in ebuild if you wish to install additional, package-specific documentation. |
77 | # Set in ebuild if you wish to install additional, package-specific documentation. |
| 78 | php-ext-pecl-r1_src_install() { |
78 | php-ext-pecl-r1_src_install() { |
| 79 | has_php |
79 | has_php |
| 80 | php-ext-source-r1_src_install |
80 | php-ext-source-r1_src_install |
| 81 | |
81 | |
| 82 | # Those two are always present. |
82 | for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do |
| 83 | dodoc-php "${WORKDIR}/package.xml" CREDITS |
|
|
| 84 | |
|
|
| 85 | for doc in ${DOCS} ; do |
|
|
| 86 | [[ -s ${doc} ]] && dodoc-php ${doc} |
83 | [[ -s ${doc} ]] && dodoc-php ${doc} |
| 87 | done |
84 | done |
| 88 | |
85 | |
| 89 | if has examples ${IUSE} && use examples ; then |
86 | if has examples ${IUSE} && use examples ; then |
| 90 | insinto /usr/share/doc/${CATEGORY}/${PF}/examples |
87 | insinto /usr/share/doc/${CATEGORY}/${PF}/examples |