diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2013-01-30 17:42:10 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2013-01-30 17:42:10 +0000 |
commit | bf57defb85849beff3fbef7315d20eddfa6e1564 (patch) | |
tree | a61fa05425830115c89a48edfd23258ec0e99917 /sci-libs | |
parent | Version bump to 4.0.0.2 to mitigate issue with the calc errors. Dep strings t... (diff) | |
download | gentoo-2-bf57defb85849beff3fbef7315d20eddfa6e1564.tar.gz gentoo-2-bf57defb85849beff3fbef7315d20eddfa6e1564.tar.bz2 gentoo-2-bf57defb85849beff3fbef7315d20eddfa6e1564.zip |
Version bump
(Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/scikits_learn/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/scikits_learn/scikits_learn-0.13.ebuild | 77 |
2 files changed, 85 insertions, 2 deletions
diff --git a/sci-libs/scikits_learn/ChangeLog b/sci-libs/scikits_learn/ChangeLog index b64850ecd9b3..055d37ee592c 100644 --- a/sci-libs/scikits_learn/ChangeLog +++ b/sci-libs/scikits_learn/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/scikits_learn -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.15 2012/12/10 18:32:50 bicatali Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.16 2013/01/30 17:42:10 bicatali Exp $ + +*scikits_learn-0.13 (30 Jan 2013) + + 30 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> + +scikits_learn-0.13.ebuild: + Version bump 10 Dec 2012; Sébastien Fabbro <bicatali@gentoo.org> -scikits_learn-0.11.ebuild, scikits_learn-0.12.1.ebuild: diff --git a/sci-libs/scikits_learn/scikits_learn-0.13.ebuild b/sci-libs/scikits_learn/scikits_learn-0.13.ebuild new file mode 100644 index 000000000000..672b0e26cfc1 --- /dev/null +++ b/sci-libs/scikits_learn/scikits_learn-0.13.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.13.ebuild,v 1.1 2013/01/30 17:42:10 bicatali Exp $ + +EAPI=4 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-*" + +inherit distutils multilib flag-o-matic + +MYPN="${PN/scikits_/scikit-}" + +DESCRIPTION="Python modules for machine learning and data mining" +HOMEPAGE="http://scikit-learn.org" +SRC_URI="mirror://sourceforge/${MYPN}/${MYPN}-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND=" + sci-libs/scikits + sci-libs/scipy + dev-python/matplotlib" +DEPEND=" + dev-python/cython + dev-python/setuptools + sci-libs/scipy + doc? ( dev-python/sphinx dev-python/matplotlib )" + +S="${WORKDIR}/${MYPN}-${PV}" + +src_prepare() { + # bug #397605 + [[ ${CHOST} == *-darwin* ]] \ + && append-ldflags -bundle "-undefined dynamic_lookup" \ + || append-ldflags -shared + + # scikits-learn now uses the horrible numpy.distutils automagic + export SCIPY_FCONFIG="config_fc --noopt --noarch" +} + +src_compile() { + distutils_src_compile ${SCIPY_FCONFIG} + if use doc; then + cd "${S}/doc" + local d=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) + ln -s "${S}"/sklearn/datasets/{data,descr,images} \ + "${d}"/sklearn/datasets + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${S}/build-$(PYTHON -f --ABI)" \ + PYTHONPATH="${d}" \ + emake html + rm -r "${d}"/sklearn/datasets/{data,desr,images} + fi +} + +src_test() { + # doc builds and runs tests + use doc && return + testing() { + "$(PYTHON)" setup.py build_ext --inplace ${SCIPY_FCONFIG} || die + PYTHONPATH=. nosetests sklearn --exe || die + } + python_execute_function testing +} + +src_install() { + find "${S}" -name \*LICENSE.txt -delete + distutils_src_install ${SCIPY_FCONFIG} + insinto /usr/share/doc/${PF} + use doc && dohtml -r doc/_build/html + use examples && doins -r examples +} |