Date: Tuesday, March 25, 2014 @ 13:50:32 Author: arodseth Revision: 108261
upgpkg: python-gnuplot 1.8-3 Modified: python-gnuplot/trunk/PKGBUILD ----------+ PKGBUILD | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-03-25 12:36:49 UTC (rev 108260) +++ PKGBUILD 2014-03-25 12:50:32 UTC (rev 108261) @@ -1,42 +1,33 @@ # $Id$ # Maintainer: Alexander Rødseth <[email protected]> # Contributor: Michael Krauss <[email protected]> -# Contributor : Baptiste Jonglez <zerstorer at free dot fr> +# Contributor: Baptiste Jonglez <zerstorer at free dot fr> pkgbase=python-gnuplot -pkgname=('python2-gnuplot') +pkgname=('python2-gnuplot' 'python-gnuplot') pkgver=1.8 -pkgrel=2 +pkgrel=3 pkgdesc='Plot graphs with Gnuplot' arch=('any') license=('LGPL') url='http://gnuplot-py.sourceforge.net/' -makedepends=('python2-setuptools' 'python2-numpy') -source=("http://downloads.sourceforge.net/gnuplot-py/gnuplot-py-$pkgver.tar.gz") -sha256sums=('ab339be7847d30a8acfd616f27b5021bfde0999b7bf2d68400fbe62c53106e21') +makedepends=('python-setuptools' 'python2-setuptools' 'python-numpy' 'python2-numpy' 'git') +source=("http://downloads.sourceforge.net/gnuplot-py/gnuplot-py-$pkgver.tar.gz" + "git://github.com/yuyichao/gnuplot-py.git#commit=2c2218dc67") # python 3 port +sha256sums=('ab339be7847d30a8acfd616f27b5021bfde0999b7bf2d68400fbe62c53106e21' + 'SKIP') -build() { - cp -a "gnuplot-py-$pkgver" "gnuplot-py2-$pkgver" -} - package_python2-gnuplot() { - depends=('python2' 'gnuplot' 'python2-numpy') + depends=('python2' 'python2-numpy' 'gnuplot') - cd "gnuplot-py2-$pkgver" + cd "gnuplot-py-$pkgver" python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } -# TODO: See if someone has developed a Gnuplot module for python 3. -# Could not find one and the following lead nowhere: package_python-gnuplot() { - # remember to add python-setuptools to makedepends if this is to be tested - depends=('python' 'gnuplot' 'python-numpy') + depends=('python' 'python-numpy' 'gnuplot') - cd "gnuplot-py-$pkgver" - iconv --from-code=ISO-8859-1 --to-code=UTF-8 gnuplot_Suites.py > tmp - mv tmp gnuplot_Suites.py - for f in *.py; do 2to3 --no-diffs -w -n -j 4 $f || echo "--- $f"; done - for f in *.py; do sed -i 's/from ./from /g' $f; sed -i 's/from import/from . import/g' $f; done + cd "gnuplot-py" python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 }
