diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2011-11-27 12:13:16 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2011-11-27 12:13:16 +0000 |
commit | 82cd34cf5ed84803b222eb7044007c9159c9fdc0 (patch) | |
tree | 77c9a56c30081a700788c3b6d08b4d25063ecb9c /dev-python | |
parent | Fix dependency, as reported in bug #391255 (diff) | |
download | gentoo-2-82cd34cf5ed84803b222eb7044007c9159c9fdc0.tar.gz gentoo-2-82cd34cf5ed84803b222eb7044007c9159c9fdc0.tar.bz2 gentoo-2-82cd34cf5ed84803b222eb7044007c9159c9fdc0.zip |
Version bump
(Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/numexpr/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/numexpr/numexpr-2.0.ebuild | 49 |
2 files changed, 55 insertions, 1 deletions
diff --git a/dev-python/numexpr/ChangeLog b/dev-python/numexpr/ChangeLog index b1041f3cf1cb..a442395259aa 100644 --- a/dev-python/numexpr/ChangeLog +++ b/dev-python/numexpr/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/numexpr # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/ChangeLog,v 1.6 2011/11/25 09:31:42 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/ChangeLog,v 1.7 2011/11/27 12:13:16 xarthisius Exp $ + +*numexpr-2.0 (27 Nov 2011) + + 27 Nov 2011; Kacper Kowalik <xarthisius@gentoo.org> +numexpr-2.0.ebuild: + Version bump 25 Nov 2011; Kacper Kowalik <xarthisius@gentoo.org> numexpr-1.4.2.ebuild: Add prefix love diff --git a/dev-python/numexpr/numexpr-2.0.ebuild b/dev-python/numexpr/numexpr-2.0.ebuild new file mode 100644 index 000000000000..e2f5f5649e48 --- /dev/null +++ b/dev-python/numexpr/numexpr-2.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/numexpr-2.0.ebuild,v 1.1 2011/11/27 12:13:16 xarthisius Exp $ + +EAPI=3 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy." +HOMEPAGE="http://code.google.com/p/numexpr/ http://pypi.python.org/pypi/numexpr" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="mkl" + +RDEPEND="dev-python/numpy + mkl? ( sci-libs/mkl )" +DEPEND="${RDEPEND} + dev-python/setuptools" + +src_prepare() { + # TODO: mkl can be used but it fails for me + # only works with mkl in tree. newer mkl will use pkgconfig + if use mkl; then + local ext + use amd64 && ext=_lp64 + cat <<- EOF > "${S}"/site.cfg + [mkl] + library_dirs = ${MKLROOT}/lib/em64t + include_dirs = ${MKLROOT}/include + mkl_libs = mkl_solver${ext}, mkl_intel${ext}, \ + mkl_intel_thread, mkl_core, iomp5 + EOF + fi +} + +src_test() { + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" \ + "$(PYTHON)" ${PN}/tests/test_${PN}.py + } + python_execute_function testing +} |