From 0442e45db8fbaff7e8d9fa0daf6d4914d1b872bd Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 26 Aug 2015 12:12:00 +0200 Subject: [PATCH] New package: python-numexpr-2.4.3 --- srcpkgs/python-numexpr/template | 35 +++++++++++++++++++++++++++++++++ srcpkgs/python3.4-numexpr | 1 + 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/python-numexpr/template create mode 120000 srcpkgs/python3.4-numexpr diff --git a/srcpkgs/python-numexpr/template b/srcpkgs/python-numexpr/template new file mode 100644 index 0000000000..583f1830c0 --- /dev/null +++ b/srcpkgs/python-numexpr/template @@ -0,0 +1,35 @@ +# Template file for 'python-numexpr' +pkgname=python-numexpr +version=2.4.3 +revision=1 +wrksrc="numexpr-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel python-numpy-devel python3.4-numpy-devel" +depends="python-numpy" +pycompile_module="numexpr" +short_desc="Fast numerical expression evaluator for NumPy (Python2)" +maintainer="Alessio Sergi " +homepage="https://github.com/pydata/numexpr" +license="MIT" +distfiles="${PYPI_SITE}/n/numexpr/numexpr-${version}.tar.gz" +checksum=3ae7191c89df40db6b0a8637a4dace7c5956bc910793a53225f985f3b443c722 + +pre_build() { + sed -i '/^#!/d' numexpr/cpuinfo.py +} +post_install() { + vlicense LICENSE.txt LICENSE +} + +python3.4-numexpr_package() { + depends="python3.4-numpy" + pycompile_version="3.4" + pycompile_module="numexpr" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE.txt LICENSE + } +} diff --git a/srcpkgs/python3.4-numexpr b/srcpkgs/python3.4-numexpr new file mode 120000 index 0000000000..cab9d2a529 --- /dev/null +++ b/srcpkgs/python3.4-numexpr @@ -0,0 +1 @@ +python-numexpr \ No newline at end of file