[arch-commits] Commit in python-gnuplot/repos/community-any (PKGBUILD)
Alexander Rødseth
arodseth at nymeria.archlinux.org
Tue Mar 25 11:31:27 UTC 2014
Date: Tuesday, March 25, 2014 @ 12:31:26
Author: arodseth
Revision: 108246
archrelease: copy trunk to community-any
Added:
python-gnuplot/repos/community-any/PKGBUILD
(from rev 108245, python-gnuplot/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-gnuplot/repos/community-any/PKGBUILD (from rev 108245, python-gnuplot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-03-25 11:31:26 UTC (rev 108246)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Michael Krauss <hippodriver at gmx.net>
+# Contributor : Baptiste Jonglez <zerstorer at free dot fr>
+
+pkgbase=python-gnuplot
+pkgname=('python2-gnuplot')
+pkgver=1.8
+pkgrel=2
+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')
+
+build() {
+ cp -a "gnuplot-py-$pkgver" "gnuplot-py2-$pkgver"
+}
+
+package_python2-gnuplot() {
+ depends=('python2' 'gnuplot' 'python2-numpy')
+
+ cd "gnuplot-py2-$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')
+
+ 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
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list