/[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.4 Revision 1.5
1# Copyright 1999-2005 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.4 2006/09/05 07:42:00 sebastian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.5 2007/03/05 01:50:47 chtekk 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# Maintained by the PHP Herd <php-bugs@gentoo.org> 7# Maintained by the PHP Team <php-bugs@gentoo.org>
7# 8#
8# This eclass should be used by all dev-php[4,5]/pecl-* ebuilds, as a uniform way of installing PECL extensions. 9# This eclass should be used by all dev-php[4,5]/pecl-* ebuilds, as a uniform way of installing PECL extensions.
9# For more information about PECL, see: http://pecl.php.net 10# For more information about PECL, see http://pecl.php.net/
10 11
11[ -z "${PHP_EXT_PECL_PKG}" ] && PHP_EXT_PECL_PKG=${PN/pecl-/} 12[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
12PECL_PKG=${PHP_EXT_PECL_PKG}
13MY_PV=${PV/_/}
14PECL_PKG_V=${PECL_PKG}-${MY_PV}
15 13
16[ -z "${PHP_EXT_NAME}" ] && PHP_EXT_NAME=${PECL_PKG} 14PECL_PKG="${PHP_EXT_PECL_PKG}"
15MY_PV="${PV/_/}"
16PECL_PKG_V="${PECL_PKG}-${MY_PV}"
17 17
18[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"
19
18inherit php-ext-source-r1 20inherit php-ext-source-r1 depend.php
19 21
20EXPORT_FUNCTIONS src_compile src_install 22EXPORT_FUNCTIONS src_compile src_install
21 23
22# ---begin ebuild configurable settings
23
24# Needs to be set if the filename is other than the package name 24# Needs to be set if the filename differs from the package name
25if [ -n "${PHP_EXT_PECL_FILENAME}" ]; then 25if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then
26 FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" 26 FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz"
27else 27else
28 FILENAME="${PECL_PKG_V}.tgz" 28 FILENAME="${PECL_PKG_V}.tgz"
29fi 29fi
30
31# ---end ebuild configurable settings
32 30
33SRC_URI="http://pecl.php.net/get/${FILENAME}" 31SRC_URI="http://pecl.php.net/get/${FILENAME}"
34HOMEPAGE="http://pecl.php.net/${PECL_PKG}" 32HOMEPAGE="http://pecl.php.net/${PECL_PKG}"
35 33
36S="${WORKDIR}/${PECL_PKG_V}" 34S="${WORKDIR}/${PECL_PKG_V}"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20