Added support for MY_PV for pecl ebuilds
authorOle Markus With <olemarkus@gentoo.org>
Fri, 19 Aug 2011 09:14:06 +0000 (09:14 +0000)
committerOle Markus With <olemarkus@gentoo.org>
Fri, 19 Aug 2011 09:14:06 +0000 (09:14 +0000)
eclass/php-ext-pecl-r2.eclass

index d899fb64f4063ddd3adfe39015cc04e0f64539d4..14aae037ac635ef5c1f26060c1e9e70ca12abb77 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.4 2011/01/28 13:33:53 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.5 2011/08/19 09:14:06 olemarkus Exp $
 #
 # Author: Tal Peer <coredumb@gentoo.org>
 # Author: Luca Longinotti <chtekk@gentoo.org>
 
 [[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
 
+
+[[ -z ${MY_PV} ]] && MY_PV=${PV}
+
 PECL_PKG="${PHP_EXT_PECL_PKG}"
-MY_PV="${PV/_/}"
+MY_PV="${MY_PV/_/}"
 PECL_PKG_V="${PECL_PKG}-${MY_PV}"
 
 [[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"