From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-mathematics/pymc/pymc-2.3.6.ebuild | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 sci-mathematics/pymc/pymc-2.3.6.ebuild (limited to 'sci-mathematics/pymc/pymc-2.3.6.ebuild') diff --git a/sci-mathematics/pymc/pymc-2.3.6.ebuild b/sci-mathematics/pymc/pymc-2.3.6.ebuild new file mode 100644 index 000000000000..dc48d2559a46 --- /dev/null +++ b/sci-mathematics/pymc/pymc-2.3.6.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Markov Chain Monte Carlo sampling toolkit" +HOMEPAGE="https://github.com/${PN}-devs/${PN} https://pypi.python.org/pypi/${PN}" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +SLOT=0 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE=AFL-3.0 +IUSE="test" + +RDEPEND=">=dev-python/numpy-1.6[${PYTHON_USEDEP},lapack] + >=dev-python/matplotlib-1.0[${PYTHON_USEDEP}]" +DEPEND=" + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + )" + +PATCHES=( "${FILESDIR}/${PN}-2.3.6-remove-hardcoded-blas.patch" ) + +# tests freeze at some point +#RESTRICT="test" + +python_prepare_all() { + # forcibly remove bundled libs, just to be sure... + rm -r blas || die + + distutils-r1_python_prepare_all +} + +python_configure_all() { + append-fflags -fPIC + append-ldflags -shared + + [[ $(tc-getFC) == *gfortran* ]] && mydistutilsargs=( config_fc --fcompiler=gnu95 ) +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + # Use agg backend instead of gtk + echo 'backend : agg' > matplotlibrc || die + + ${EPYTHON} -c "import pymc; pymc.test()" || die "Tests failed on ${EPYTHON}" +} -- cgit v1.2.3