Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=238de09b9f657f194a909b5e1a38d4ee08f8fa5f

commit 238de09b9f657f194a909b5e1a38d4ee08f8fa5f
Author: James Buren <r...@frugalware.org>
Date:   Sun Feb 13 17:39:38 2011 -0600

pypi.sh
* add pypi name option

diff --git a/source/include/pypi.sh b/source/include/pypi.sh
index fbdd472..6792475 100644
--- a/source/include/pypi.sh
+++ b/source/include/pypi.sh
@@ -25,8 +25,10 @@
# --------------------------------------------------
#
# == OPTIONS
+# * _F_pypi_name (defaults to $pkgname): set to name used in pypi
# * _F_pypi_ext (defaults to .tar.gz): set to file extension used by the package
###
+[ -z "$_F_pypi_name" ] && _F_pypi_name="$pkgname"
[ -z "$_F_pypi_ext" ] && _F_pypi_ext='.tar.gz'

###
@@ -35,6 +37,6 @@
# * up2date
# * source()
###
-url="http://pypi.python.org/pypi/$pkgname";
-up2date="Flastarchive 
http://pypi.python.org/packages/source/${pkgname:0:1}/$pkgname $_F_pypi_ext"
-source=(http://pypi.python.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver$_F_pypi_ext)
+url="http://pypi.python.org/pypi/$_F_pypi_name";
+up2date="Flastarchive 
http://pypi.python.org/packages/source/${_F_pypi_name:0:1}/$_F_pypi_name 
$_F_pypi_ext"
+source=(http://pypi.python.org/packages/source/${_F_pypi_name:0:1}/$_F_pypi_name/$_F_pypi_name-$pkgver$_F_pypi_ext)
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to