diff options
author | xantares | 2015-09-27 09:06:48 +0200 |
---|---|---|
committer | xantares | 2015-09-27 09:06:48 +0200 |
commit | b9a7d401181bf699b33e16d734c2cbb8132d7f3b (patch) | |
tree | e9304f7bacbea877ccec91801748910ade5838b4 | |
download | aur-b9a7d401181bf699b33e16d734c2cbb8132d7f3b.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | fixlib.diff | 13 |
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e8f85995ce2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = python-sciscipy + pkgdesc = A Scilab API for Python + pkgver = 1.0.1 + pkgrel = 1 + url = http://forge.scilab.org/index.php/p/sciscipy/ + arch = any + license = GPL + makedepends = python-setuptools + makedepends = python2-setuptools + source = http://forge.scilab.org/index.php/p/sciscipy/downloads/get/sciscipy-1.0.1.tar.gz + source = fixlib.diff + md5sums = 80fa3e4dbd85445c2535e173c24ffc77 + md5sums = SKIP + +pkgname = python-sciscipy + depends = python-numpy + depends = scilab + conflicts = python2-sciscipy + +pkgname = python2-sciscipy + depends = python2-numpy + depends = scilab + conflicts = python-sciscipy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..745f44664f3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +pkgbase=('python-sciscipy') +pkgname=('python-sciscipy' 'python2-sciscipy') +pkgver=1.0.1 +pkgrel=1 +pkgdesc="A Scilab API for Python" +arch=('any') +url="http://forge.scilab.org/index.php/p/sciscipy/" +license=('GPL') +source=("http://forge.scilab.org/index.php/p/sciscipy/downloads/get/sciscipy-${pkgver}.tar.gz" + "fixlib.diff") +md5sums=('80fa3e4dbd85445c2535e173c24ffc77' + 'SKIP') +makedepends=('python-setuptools' 'python2-setuptools') + +prepare() { + cd "$srcdir/sciscipy-$pkgver" + patch -p1 -i "$srcdir/fixlib.diff" + /usr/lib/python2.7/Tools/scripts/reindent.py setup.py + 2to3 -w setup.py scilab.py + + cp -r "$srcdir/sciscipy-$pkgver" "$srcdir/sciscipy-$pkgver-py2" + + sed -i "s|PyString_|PyBytes_|g" sciconv_write.c + sed -i "s|PyInt_|PyLong_|g" sciconv_write.c +} + +build() { + cd "$srcdir/sciscipy-$pkgver-py2" + python2 setup.py build + cd "$srcdir/sciscipy-$pkgver" + python setup.py build +} + +check () { + cd "$srcdir/sciscipy-$pkgver" +# python2 setup.py test +} + +package_python2-sciscipy() { + depends=('python2-numpy' 'scilab') + conflicts=('python-sciscipy') + + cd "$srcdir/sciscipy-$pkgver-py2" + python2 ./setup.py install --prefix=/usr --root="$pkgdir" +} + +package_python-sciscipy() { + depends=('python-numpy' 'scilab') + conflicts=('python2-sciscipy') + + cd "$srcdir/sciscipy-$pkgver" + python ./setup.py install --prefix=/usr --root="$pkgdir" +} + +# test: +# SCI=/usr/share/scilab LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk/jre/lib/amd64/server/:/usr/lib/scilab/:/usr/lib/jvm/java-7-openjdk/jre/lib/amd64/ python2 src/sciscipy-1.0.1/tests/test_call.py
\ No newline at end of file diff --git a/fixlib.diff b/fixlib.diff new file mode 100644 index 000000000000..cd2bdc016e05 --- /dev/null +++ b/fixlib.diff @@ -0,0 +1,13 @@ +Only in sciscipy-1.0.1.orig: build +diff -ur sciscipy-1.0.1/setup.py sciscipy-1.0.1.orig/setup.py +--- sciscipy-1.0.1/setup.py 2013-09-07 20:47:53.000000000 +0000 ++++ sciscipy-1.0.1.orig/setup.py 2014-02-06 15:10:43.616721604 +0000 +@@ -27,7 +27,7 @@ + ] + sci_lib_dir = [os.path.join("/","usr", "lib", "scilab")] + sci_librairies = [] +- sci_extra_link_args = ['-Wl,--no-as-needed', '-lscilab', '-lsciapi_scilab', '-lscicall_scilab', '-lscioutput_stream', '-lscicore', '-lscilinear_algebra', '-lsciconsole', '-lscilocalization', '-lscipolynomials', '-lsciio', '-lscielementary_functions', '-lscisparse', '-lscihistory_manager', '-lscihistory_browser', '-lscigraphics', '-lscicompletion', '-lscifunctions', '-lsciboolean', '-lsciwindows_tools', '-lscitime', '-lscifftw', '-lsciintersci', '-lscidouble', '-lscicommons'] ++ sci_extra_link_args = ['-Wl,--no-as-needed', '-lscilab'] + else: + raise NotImplementedError, "Only 'nt' and 'posix' are supported" + |