diff options
author | Sebastian Bergmann <sebastian@gentoo.org> | 2006-09-05 07:42:00 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@gentoo.org> | 2006-09-05 07:42:00 +0000 |
commit | 76dd3fe26c6cb739b5de0e6dafe6f2a765ff6332 (patch) | |
tree | cb77fbe38812f67b7c896391d09344c2f3a370b2 /eclass/php-ext-pecl-r1.eclass | |
parent | old (diff) | |
download | historical-76dd3fe26c6cb739b5de0e6dafe6f2a765ff6332.tar.gz historical-76dd3fe26c6cb739b5de0e6dafe6f2a765ff6332.tar.bz2 historical-76dd3fe26c6cb739b5de0e6dafe6f2a765ff6332.zip |
Handle patch-level releases (pecl-name-x.y.z_pN) properly.
Diffstat (limited to 'eclass/php-ext-pecl-r1.eclass')
-rw-r--r-- | eclass/php-ext-pecl-r1.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/php-ext-pecl-r1.eclass b/eclass/php-ext-pecl-r1.eclass index d3183c794153..075c2e909736 100644 --- a/eclass/php-ext-pecl-r1.eclass +++ b/eclass/php-ext-pecl-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 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.3 2005/11/20 01:35:05 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.4 2006/09/05 07:42:00 sebastian Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Maintained by the PHP Herd <php-bugs@gentoo.org> @@ -10,7 +10,8 @@ [ -z "${PHP_EXT_PECL_PKG}" ] && PHP_EXT_PECL_PKG=${PN/pecl-/} PECL_PKG=${PHP_EXT_PECL_PKG} -PECL_PKG_V=${PECL_PKG}-${PV} +MY_PV=${PV/_/} +PECL_PKG_V=${PECL_PKG}-${MY_PV} [ -z "${PHP_EXT_NAME}" ] && PHP_EXT_NAME=${PECL_PKG} @@ -22,7 +23,7 @@ EXPORT_FUNCTIONS src_compile src_install # Needs to be set if the filename is other than the package name if [ -n "${PHP_EXT_PECL_FILENAME}" ]; then - FILENAME="${PHP_EXT_PECL_FILENAME}-${PV}.tgz" + FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" else FILENAME="${PECL_PKG_V}.tgz" fi |