summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-03-07 20:13:26 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-03-07 20:13:26 +0000
commit1a0327e9897da0386622b4c4b4a09a96232e8206 (patch)
treef1cecc962225e3fb61e75622d9426de717d1e413 /sci-libs
parentStable for HPPA (bug #355719). (diff)
downloadgentoo-2-1a0327e9897da0386622b4c4b4a09a96232e8206.tar.gz
gentoo-2-1a0327e9897da0386622b4c4b4a09a96232e8206.tar.bz2
gentoo-2-1a0327e9897da0386622b4c4b4a09a96232e8206.zip
Version bump
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/scikits_learn/ChangeLog8
-rw-r--r--sci-libs/scikits_learn/scikits_learn-0.7.ebuild73
2 files changed, 80 insertions, 1 deletions
diff --git a/sci-libs/scikits_learn/ChangeLog b/sci-libs/scikits_learn/ChangeLog
index 104280f21ad4..44803084110a 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-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.1 2011/01/08 19:22:56 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.2 2011/03/07 20:13:26 bicatali Exp $
+
+*scikits_learn-0.7 (05 Mar 2011)
+
+ 05 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_learn-0.7.ebuild:
+ Version bump
*scikits_learn-0.6 (08 Jan 2011)
diff --git a/sci-libs/scikits_learn/scikits_learn-0.7.ebuild b/sci-libs/scikits_learn/scikits_learn-0.7.ebuild
new file mode 100644
index 000000000000..7d9a903f8c9a
--- /dev/null
+++ b/sci-libs/scikits_learn/scikits_learn-0.7.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 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.7.ebuild,v 1.1 2011/03/07 20:13:26 bicatali Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+DISTUTILS_SRC_TEST="setup.py"
+
+inherit distutils
+
+MY_P="${P/scikits_/scikits.}"
+
+DESCRIPTION="A set of python modules for machine learning and data mining"
+HOMEPAGE="http://scikit-learn.sourceforge.net/"
+SRC_URI="mirror://sourceforge/scikit-learn/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+CDEPEND="sci-libs/scipy
+ >=sci-libs/libsvm-2.91"
+RDEPEND="${CDEPEND}
+ sci-libs/scikits
+ dev-python/matplotlib"
+DEPEND="${CDEPEND}
+ dev-python/cython
+ dev-python/setuptools
+ doc? ( dev-python/sphinx dev-python/matplotlib )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # use stock libsvm
+ cat <<-EOF >> site.cfg
+ [libsvm]
+ libraries=svm
+ library_dirs=${EPREFIX}/usr/$(get_libdir)
+ include_dirs=${EPREFIX}/usr/include/
+ EOF
+}
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ cd "${S}/doc"
+ export VARTEXFONTS="${T}"/fonts
+ MPLCONFIGDIR="${S}/build-$(PYTHON -f --ABI)" \
+ PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
+ emake html latex || die
+ fi
+}
+
+src_install() {
+ find "${S}" -name \*LICENSE.txt -delete
+ distutils_src_install
+ remove_scikits() {
+ rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die
+ }
+ python_execute_function -q remove_scikits
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ doins "${DISTDIR}"/scikits.learn.pdf || die
+ doins -r build/sphinx/html || die
+ fi
+ if use examples; then
+ doins -r examples || die
+ fi
+}