summaryrefslogtreecommitdiff
path: root/community-staging/python-numarray
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
committerroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
commit99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (patch)
tree8b24758dfa8c691cda33acaa931699ce81dc1c15 /community-staging/python-numarray
parente9dd04abd0ede1143ea4af10059e37c2f599e1fd (diff)
Tue Oct 16 00:33:08 PDT 2012
Diffstat (limited to 'community-staging/python-numarray')
-rw-r--r--community-staging/python-numarray/LICENSE9
-rw-r--r--community-staging/python-numarray/PKGBUILD33
2 files changed, 42 insertions, 0 deletions
diff --git a/community-staging/python-numarray/LICENSE b/community-staging/python-numarray/LICENSE
new file mode 100644
index 000000000..30ff57fc4
--- /dev/null
+++ b/community-staging/python-numarray/LICENSE
@@ -0,0 +1,9 @@
+Copyright (C) 2005 Association of Universities for Research in Astronomy (AURA)
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+3. The name of AURA and its representatives may not be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY AURA ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AURA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/community-staging/python-numarray/PKGBUILD b/community-staging/python-numarray/PKGBUILD
new file mode 100644
index 000000000..813d2a700
--- /dev/null
+++ b/community-staging/python-numarray/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 77974 2012-10-16 01:49:29Z allan $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+
+pkgbase=python-numarray
+pkgname=python2-numarray
+pkgver=1.5.2
+pkgrel=6
+pkgdesc='Provides array manipulation and computational capabilities.'
+arch=('i686' 'x86_64')
+url='http://numpy.scipy.org/'
+license=('BSD')
+depends=('python2')
+conflicts=('python2-numarray<=1.5.2-6')
+replaces=('python2-numarray<=1.5.2-6')
+source=("http://downloads.sourceforge.net/sourceforge/numpy/numarray-${pkgver}.tar.gz"
+ 'LICENSE')
+md5sums=('d2ecfc60fe4869c328b872540d04e0f7'
+ 'e32b4466453e530d7fb0dbeee0ca1044')
+
+build() {
+ cd "${srcdir}/numarray-${pkgver}"
+
+ # python2 fix
+ sed -i 's_#! /usr/bin/env python_#! /usr/bin/env python2_' Examples/convolve/benchmark.py
+}
+
+package_python2-numarray() {
+ cd "${srcdir}/numarray-${pkgver}"
+
+ python2 setup.py install --root="${pkgdir}"
+ install -D ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}