From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/python-scipy/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 community/python-scipy/PKGBUILD (limited to 'community/python-scipy/PKGBUILD') 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 +# Maintainer: Douglas Soares de Andrade + +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 +} -- cgit v1.2.3-54-g00ecf