diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python-scipy/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python-scipy/PKGBUILD')
-rwxr-xr-x | community/python-scipy/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/python-scipy/PKGBUILD b/community/python-scipy/PKGBUILD new file mode 100755 index 000000000..d0acce568 --- /dev/null +++ b/community/python-scipy/PKGBUILD @@ -0,0 +1,40 @@ +#$Id: PKGBUILD 27301 2010-09-19 16:29:18Z schuay $ +# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org> + +pkgname=python-scipy +pkgver=0.8.0 +pkgrel=4 +pkgdesc="SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering." +arch=('i686' 'x86_64') +url="http://www.scipy.org" +license=('BSD') +depends=('lapack' 'blas' 'python2' 'python-numpy') +makedepends=('gcc' 'gcc-fortran') +conflicts=('scipy' 'scipy_core') +source=("http://downloads.sourceforge.net/scipy/scipy-${pkgver}.tar.gz" + '0001-FIX-define-macro-to-access-C99-extensions-from-C.patch') +md5sums=('f0bfc6141b90e6a31555b31486602251' + '609759549d0571fc04d52c89b16258ed') + +build() { + unset LDFLAGS + unset FFLAGS + + cd ${srcdir}/scipy-${pkgver} + #Changing the arithmetic parameter (Thanks to Fabrizio Castellano) + sed -i "s/\#define\ UNK\ 1/\#define\ IBMPC\ 1/" $srcdir/scipy-$pkgver/scipy/special/cephes/mconf.h + + # fix build with python 2.7 (see http://projects.scipy.org/scipy/ticket/1180) + patch -p1 < ${srcdir}/0001-FIX-define-macro-to-access-C99-extensions-from-C.patch + + # python2 fix + for file in $(find . -name '*.py' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + python2 setup.py config_fc --fcompiler=gnu95 build + python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root=${pkgdir} + install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt +} |