/[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.7 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.7 2007/08/31 10:00:56 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
13# @DESCRIPTION: 13# @DESCRIPTION:
14# This eclass should be used by all dev-php[45]/pecl-* ebuilds 14# This eclass should be used by all dev-php[45]/pecl-* ebuilds
15# as a uniform way of installing PECL extensions. 15# as a uniform way of installing PECL extensions.
16# For more information about PECL, see http://pecl.php.net/ 16# For more information about PECL, see http://pecl.php.net/
17 17
18# @VARIABLE: PHP_EXT_PECL_FILENAME 18# @ECLASS-VARIABLE: PHP_EXT_PECL_PKG
19# @DESCRIPTION: 19# @DESCRIPTION:
20# Set in ebuild if the filename differs from the package name so that SRC_URI gets set correctly. 20# Set in ebuild before inheriting this eclass if the tarball name
21# differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE gets set
22# correctly by the eclass.
23#
24# Setting this variable manually also affects PHP_EXT_NAME and ${S}
25# unless you override those in ebuild. Also see PHP_EXT_PECL_FILENAME
26# if this is not desired for whatever reason.
21 27
22# @VARIABLE: DOCS 28# @ECLASS-VARIABLE: PHP_EXT_PECL_FILENAME
23# @DESCRIPTION: 29# @DESCRIPTION:
24# Set in ebuild if you wish to install additional, package-specific documentation. 30# Set in ebuild before inheriting this eclass if the tarball name
31# differs from ${PN/pecl-/} so that SRC_URI gets set correctly by
32# the eclass.
33#
34# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect
35# HOMEPAGE, PHP_EXT_NAME or ${S}.
36
25 37
26[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" 38[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
27 39
28PECL_PKG="${PHP_EXT_PECL_PKG}" 40PECL_PKG="${PHP_EXT_PECL_PKG}"
29MY_PV="${PV/_/}" 41MY_PV="${PV/_/}"
57# @FUNCTION: php-ext-pecl-r1_src_install 69# @FUNCTION: php-ext-pecl-r1_src_install
58# @DESCRIPTION: 70# @DESCRIPTION:
59# Takes care of standard install for PECL packages. 71# Takes care of standard install for PECL packages.
60# You can also simply add examples to IUSE to automagically install 72# You can also simply add examples to IUSE to automagically install
61# 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.
62php-ext-pecl-r1_src_install() { 78php-ext-pecl-r1_src_install() {
63 has_php 79 has_php
64 php-ext-source-r1_src_install 80 php-ext-source-r1_src_install
65 81
66 # Those two are always present. 82 for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do
67 dodoc-php "${WORKDIR}/package.xml" CREDITS
68
69 for doc in ${DOCS} ; do
70 [[ -s ${doc} ]] && dodoc-php ${doc} 83 [[ -s ${doc} ]] && dodoc-php ${doc}
71 done 84 done
72 85
73 if has examples ${IUSE} && use examples ; then 86 if has examples ${IUSE} && use examples ; then
74 insinto /usr/share/doc/${CATEGORY}/${PF}/examples 87 insinto /usr/share/doc/${CATEGORY}/${PF}/examples

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

  ViewVC Help
Powered by ViewVC 1.1.20