/[gentoo-x86]/eclass/php-ext-pecl-r1.eclass
Gentoo

Diff of /eclass/php-ext-pecl-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.10
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.8 2007/09/01 15:58:17 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
32# the eclass. 32# the eclass.
33# 33#
34# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect 34# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect
35# HOMEPAGE, PHP_EXT_NAME or ${S}. 35# HOMEPAGE, PHP_EXT_NAME or ${S}.
36 36
37# @VARIABLE: DOCS
38# @DESCRIPTION:
39# Set in ebuild if you wish to install additional, package-specific documentation.
40 37
41[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" 38[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
42 39
43PECL_PKG="${PHP_EXT_PECL_PKG}" 40PECL_PKG="${PHP_EXT_PECL_PKG}"
44MY_PV="${PV/_/}" 41MY_PV="${PV/_/}"
72# @FUNCTION: php-ext-pecl-r1_src_install 69# @FUNCTION: php-ext-pecl-r1_src_install
73# @DESCRIPTION: 70# @DESCRIPTION:
74# Takes care of standard install for PECL packages. 71# Takes care of standard install for PECL packages.
75# You can also simply add examples to IUSE to automagically install 72# You can also simply add examples to IUSE to automagically install
76# examples supplied with the package. 73# examples supplied with the package.
74
75# @VARIABLE: DOCS
76# @DESCRIPTION:
77# Set in ebuild if you wish to install additional, package-specific documentation.
77php-ext-pecl-r1_src_install() { 78php-ext-pecl-r1_src_install() {
78 has_php 79 has_php
79 php-ext-source-r1_src_install 80 php-ext-source-r1_src_install
80 81
81 # Those two are always present. 82 for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do
82 dodoc-php "${WORKDIR}/package.xml" CREDITS
83
84 for doc in ${DOCS} ; do
85 [[ -s ${doc} ]] && dodoc-php ${doc} 83 [[ -s ${doc} ]] && dodoc-php ${doc}
86 done 84 done
87 85
88 if has examples ${IUSE} && use examples ; then 86 if has examples ${IUSE} && use examples ; then
89 insinto /usr/share/doc/${CATEGORY}/${PF}/examples 87 insinto /usr/share/doc/${CATEGORY}/${PF}/examples

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20