From a21a9e1dc7641bc62cc13679cca3a8dfe0c1d6f5 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Sat, 12 Feb 2011 19:34:11 +0000 Subject: Version bump, python-3 now supported Package-Manager: portage-2.2.0_alpha23/cvs/Linux i686 --- dev-python/mpmath/ChangeLog | 10 ++++- dev-python/mpmath/Manifest | 5 ++- dev-python/mpmath/files/mpmath.patch | 9 +++++ dev-python/mpmath/mpmath-0.17.ebuild | 78 ++++++++++++++++++++++++++++++++++++ 4 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 dev-python/mpmath/files/mpmath.patch create mode 100644 dev-python/mpmath/mpmath-0.17.ebuild (limited to 'dev-python/mpmath') diff --git a/dev-python/mpmath/ChangeLog b/dev-python/mpmath/ChangeLog index 601cc7e81e9e..4f6a84f1b864 100644 --- a/dev-python/mpmath/ChangeLog +++ b/dev-python/mpmath/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/mpmath -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/mpmath/ChangeLog,v 1.17 2010/12/13 16:22:53 arfrever Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mpmath/ChangeLog,v 1.18 2011/02/12 19:34:11 grozin Exp $ + +*mpmath-0.17 (12 Feb 2011) + + 12 Feb 2011; Andrey Grozin +mpmath-0.17.ebuild, + +files/mpmath.patch: + Version bump, python-3 now supported 13 Dec 2010; Arfrever Frehtes Taifersar Arahesis -mpmath-0.15.ebuild: diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest index d2a9be50d083..62710019d70b 100644 --- a/dev-python/mpmath/Manifest +++ b/dev-python/mpmath/Manifest @@ -1,5 +1,8 @@ +AUX mpmath.patch 434 RMD160 98f7cae5be7ce35de368c75b07f5887825f42add SHA1 e31d384f41d5e6050c18f3134a965892e1d64180 SHA256 e15c6536596321479b5378d5919c9a310d1037c13de8c13c8f0421f95319dd19 DIST mpmath-0.16.tar.gz 455158 RMD160 3156f0f284f7a03b70bfdbc73083ec5d26483dfe SHA1 95de722d97903911ec1f9cf9592e9e007b3348e4 SHA256 2087f65d99f015a25210a8898d69d0dd433cb6ec1dbd86c32be17c7bad76d590 +DIST mpmath-all-0.17.tar.gz 2085528 RMD160 0a78f7e084c6a6194c567858e1ee620c2b1c0830 SHA1 3b9383498186d657a8cfc636610e5b0ff3f511a3 SHA256 cc33bcfe579139b0c07f3eb3841f1409f36896fe64e9f932f5f9e4915fdeeb88 DIST mpmath-docsrc-0.16.tar.gz 1627460 RMD160 e7a04a11982db4d15487444b751b55ac0fd8bbf7 SHA1 eea0fbaacf42e62bdc8589c3fd8eb14d03ecdb4d SHA256 87bb3169f65f567cb4229223ecf43cf6a5f7b3fcf6b3c8c83a550ea8a2b3bf8b EBUILD mpmath-0.16.ebuild 1593 RMD160 45b30b0b60b5871268858757845fc27e88bd0f73 SHA1 d1b36950bb54f4fd27c2042ad30e0f9df6d57390 SHA256 31c446b20294f8009e55ab0b2543250d009c2f5e7c5b5ac1e228004c8cb00942 -MISC ChangeLog 2593 RMD160 78111e36dd38fe584333cb812293e43f50561777 SHA1 5aeb455935300a7159ebf5ea8a0be706ad686dcd SHA256 c01e0eb4f54e78c6ecabccc03cc71e747f2f35672bb1ad78e8bab16e00f86723 +EBUILD mpmath-0.17.ebuild 1888 RMD160 9f06f22c2efa18f64f5695b633a81e94ad7b331b SHA1 4ce3fb7425d35b73f3338adc8b55bfdcf3b9d94c SHA256 641d434b2b7b6f3f8652fe6a662bd05d3147222ddf321f3ea3be56f8ba7db8f4 +MISC ChangeLog 2752 RMD160 e90f454cca8d39e5a695be905f56df889c8ff35d SHA1 688f20540bfb81b9c386b4ed4e5d074a07f70ef6 SHA256 1949dcad02d5c7d72d597a1620bb974aff83a78f363dc97a57dfa5790a3783c1 MISC metadata.xml 470 RMD160 b74b5ca58180fd6b6be33b851cd615e07cafbc67 SHA1 a7aa276fb3dbabc6d9fcf40d467a28a121d9fdae SHA256 c466e19e546fb12668ef035ddd0c2f779df1adb6705403631cdad4a63749d192 diff --git a/dev-python/mpmath/files/mpmath.patch b/dev-python/mpmath/files/mpmath.patch new file mode 100644 index 000000000000..3040216e56cc --- /dev/null +++ b/dev-python/mpmath/files/mpmath.patch @@ -0,0 +1,9 @@ +diff -r -U1 mpmath-all-0.17.orig/setup.py mpmath-all-0.17/setup.py +--- mpmath-all-0.17.orig/setup.py 2011-02-02 03:17:50.000000000 +0600 ++++ mpmath-all-0.17/setup.py 2011-02-13 01:18:00.000000000 +0600 +@@ -15,4 +15,3 @@ + 'mpmath/functions', +- 'mpmath/matrices', +- 'mpmath/tests'], ++ 'mpmath/matrices'], + classifiers=['Topic :: Scientific/Engineering :: Mathematics'] diff --git a/dev-python/mpmath/mpmath-0.17.ebuild b/dev-python/mpmath/mpmath-0.17.ebuild new file mode 100644 index 000000000000..65aa02b466e0 --- /dev/null +++ b/dev-python/mpmath/mpmath-0.17.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mpmath/mpmath-0.17.ebuild,v 1.1 2011/02/12 19:34:11 grozin Exp $ + +EAPI="3" +PYTHON_DEPEND="*:2.5" +SUPPORT_PYTHON_ABIS="1" +DISTUTILS_SRC_TEST="py.test" + +inherit distutils eutils + +MY_PN=${PN}-all +MY_P=${MY_PN}-${PV} +DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" +HOMEPAGE="http://code.google.com/p/mpmath/ http://pypi.python.org/pypi/mpmath" +SRC_URI="http://mpmath.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-linux ~ppc-macos" +IUSE="doc examples gmp matplotlib" + +RDEPEND="gmp? ( dev-python/gmpy ) + matplotlib? ( dev-python/matplotlib )" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" + +DOCS="CHANGES" +S="${WORKDIR}/${MY_P}" + +src_prepare() { + distutils_src_prepare + + # don't install tests + epatch "${FILESDIR}/${PN}.patch" + + # this fails with the current version of dev-python/py + rm -f ${PN}/conftest.py + + # this test requires X + rm -f ${PN}/tests/test_visualization.py +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + pushd doc > /dev/null + PYTHONPATH="${S}/build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" build.py || die "Generation of documentation failed" + popd > /dev/null + fi +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r doc/build/* || die "Installation of documentation failed" + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins demo/* || die "Installation of examples failed" + fi + + rm_unneeded() { + local path="${D}$(python_get_sitedir)/${PN}/libmp/" + if [[ "${PYTHON_ABI}" == 2.* ]]; then + rm -f "${path}exec_py3.py" + else if [[ "${PYTHON_ABI}" == 3.* ]]; then + rm -f "${path}exec_py2.py" + fi + fi + } + + python_execute_function rm_unneeded +} -- cgit v1.2.3-65-gdbad