From 8b0b4c8aca8a11fb6e2bfb005327475b20a8756e Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 4 Sep 2015 22:02:00 +0200 Subject: [PATCH] New package: python-mpmath-0.19 --- srcpkgs/python-mpmath/INSTALL.msg | 4 +++ .../python3.4-mpmath.INSTALL.msg | 4 +++ srcpkgs/python-mpmath/template | 36 +++++++++++++++++++ srcpkgs/python3.4-mpmath | 1 + 4 files changed, 45 insertions(+) create mode 100644 srcpkgs/python-mpmath/INSTALL.msg create mode 100644 srcpkgs/python-mpmath/python3.4-mpmath.INSTALL.msg create mode 100644 srcpkgs/python-mpmath/template create mode 120000 srcpkgs/python3.4-mpmath diff --git a/srcpkgs/python-mpmath/INSTALL.msg b/srcpkgs/python-mpmath/INSTALL.msg new file mode 100644 index 00000000000..9816e54b630 --- /dev/null +++ b/srcpkgs/python-mpmath/INSTALL.msg @@ -0,0 +1,4 @@ +If you require plotting capabilities, install python-matplotlib. + +mpmath internally uses Python's builtin long integers by default. +For much faster high-precision arithmetic, install python-gmpy2. diff --git a/srcpkgs/python-mpmath/python3.4-mpmath.INSTALL.msg b/srcpkgs/python-mpmath/python3.4-mpmath.INSTALL.msg new file mode 100644 index 00000000000..cf7fc7982b8 --- /dev/null +++ b/srcpkgs/python-mpmath/python3.4-mpmath.INSTALL.msg @@ -0,0 +1,4 @@ +If you require plotting capabilities, install python3.4-matplotlib. + +mpmath internally uses Python's builtin long integers by default. +For much faster high-precision arithmetic, install python3.4-gmpy2. diff --git a/srcpkgs/python-mpmath/template b/srcpkgs/python-mpmath/template new file mode 100644 index 00000000000..5c4a5e6426b --- /dev/null +++ b/srcpkgs/python-mpmath/template @@ -0,0 +1,36 @@ +# Template file for 'python-mpmath' +pkgname=python-mpmath +version=0.19 +revision=1 +noarch=yes +wrksrc="mpmath-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python" +pycompile_module="mpmath" +short_desc="Python2 library for arbitrary-precision floating-point arithmetic" +maintainer="Alessio Sergi " +homepage="http://mpmath.org/" +license="3-clause-BSD" +distfiles="${PYPI_SITE}/m/mpmath/mpmath-${version}.tar.gz" +checksum=68ddf6426dcda445323467d89892d2cffbbd1ae0b31ac1241b1b671749d63222 + +pre_build() { + sed -i '/^#!/d' mpmath/{matrices,tests}/*.py +} +post_install() { + vlicense LICENSE +} + +python3.4-mpmath_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="mpmath" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-mpmath b/srcpkgs/python3.4-mpmath new file mode 120000 index 00000000000..51402099f05 --- /dev/null +++ b/srcpkgs/python3.4-mpmath @@ -0,0 +1 @@ +python-mpmath \ No newline at end of file