From 739e8c2d0b2d59e469d48521931f927af17076bf Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 11 Feb 2015 20:52:52 +0100 Subject: [PATCH] New package: python-scipy-0.15.1 --- srcpkgs/python-scipy/template | 45 +++++++++++++++++++++++++++++++++++ srcpkgs/python-scipy/update | 2 ++ srcpkgs/python3.4-scipy | 1 + 3 files changed, 48 insertions(+) create mode 100644 srcpkgs/python-scipy/template create mode 100644 srcpkgs/python-scipy/update create mode 120000 srcpkgs/python3.4-scipy diff --git a/srcpkgs/python-scipy/template b/srcpkgs/python-scipy/template new file mode 100644 index 00000000000..661837cd6f9 --- /dev/null +++ b/srcpkgs/python-scipy/template @@ -0,0 +1,45 @@ +# Template file for 'python-scipy' +pkgname=python-scipy +version=0.15.1 +revision=1 +wrksrc="scipy-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools gcc-fortran" +makedepends="python-devel python3.4-devel python-numpy-devel + python3.4-numpy-devel blas-devel lapack-devel" +depends="python-numpy" +pycompile_module="scipy" +short_desc="Scientific library for Python2" +maintainer="Alessio Sergi " +homepage="http://www.scipy.org/" +license="3-clause-BSD" +distfiles="${SOURCEFORGE_SITE}/scipy/${version}/scipy-${version}.tar.xz" +checksum=5d8f10d2faf9e7bb5aae568e44b2ee36ccf685e808a0fbe34711cbfd37ce7d37 +nocross=yes + +export ATLAS=None +export FFLAGS="-fPIC" +LDFLAGS="-shared" + +pre_build() { + # no .txt files + sed -i '/config.add_data_files/d' setup.py + + # remove shebangs + find . -type f -name '*.py' -exec sed -i 's,^#!.*python$,,' {} + +} +post_install() { + vlicense LICENSE.txt LICENSE +} + +python3.4-scipy_package() { + pycompile_version="3.4" + pycompile_module="scipy" + depends="python3.4-numpy" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE.txt LICENSE + } +} diff --git a/srcpkgs/python-scipy/update b/srcpkgs/python-scipy/update new file mode 100644 index 00000000000..212c931b007 --- /dev/null +++ b/srcpkgs/python-scipy/update @@ -0,0 +1,2 @@ +pkgname=SciPy +ignore="*b* *rc*" diff --git a/srcpkgs/python3.4-scipy b/srcpkgs/python3.4-scipy new file mode 120000 index 00000000000..5107676dd24 --- /dev/null +++ b/srcpkgs/python3.4-scipy @@ -0,0 +1 @@ +python-scipy \ No newline at end of file