From ee2a4c36ea671012d7123ec39e6db948e5d206f5 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Thu, 18 Nov 2010 01:53:36 +0000 Subject: python-numpy: initial import for pygtk --- abs/core/python-numpy/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/core/python-numpy/PKGBUILD diff --git a/abs/core/python-numpy/PKGBUILD b/abs/core/python-numpy/PKGBUILD new file mode 100644 index 0000000..3dc66a0 --- /dev/null +++ b/abs/core/python-numpy/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 95257 2010-10-17 20:17:04Z ibiru $ +# Maintainer: Jan de Groot +# Contributor: Douglas Soares de Andrade +# Contributor: Angel 'angvp' Velasquez + +pkgname=python-numpy +pkgver=1.5.0 +pkgrel=2 +pkgdesc="Scientific tools for Python" +arch=('i686' 'x86_64') +license=('custom') +url="http://numpy.scipy.org/" +depends=('lapack' 'python2') +makedepends=('python-nose' 'gcc-fortran') +optdepends=('python-nose: test suite') +source=(http://downloads.sourceforge.net/numpy/numpy-${pkgver}.tar.gz) +md5sums=('3a8bfdc434df782d647161c48943ee09') + +build() { + cd "${srcdir}/numpy-${pkgver}" + + export Atlas=None + export LDFLAGS="$LDFLAGS -shared" + python2 setup.py config_fc --fcompiler=gnu95 build +} + +package() { + cd "${srcdir}/numpy-${pkgver}" + python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root="${pkgdir}" + + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') +} + -- cgit v0.12