summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/scikits_learn/ChangeLog35
-rw-r--r--sci-libs/scikits_learn/metadata.xml10
-rw-r--r--sci-libs/scikits_learn/scikits_learn-0.6.ebuild72
3 files changed, 117 insertions, 0 deletions
diff --git a/sci-libs/scikits_learn/ChangeLog b/sci-libs/scikits_learn/ChangeLog
new file mode 100644
index 000000000000..104280f21ad4
--- /dev/null
+++ b/sci-libs/scikits_learn/ChangeLog
@@ -0,0 +1,35 @@
+# 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 $
+
+*scikits_learn-0.6 (08 Jan 2011)
+
+ 08 Jan 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_learn-0.6.ebuild, +metadata.xml:
+ Initial import to the main tree
+
+ 04 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ scikits_learn-0.5.ebuild:
+ Now depend on common scikits
+
+*scikits_learn-0.5 (04 Dec 2010)
+
+ 04 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_learn-0.5.ebuild:
+ Version bump. Now depends on sci-libs/scikits.
+
+*scikits_learn-0.4 (05 Aug 2010)
+
+ 05 Aug 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ -scikits_learn-0.2.ebuild, +scikits_learn-0.4.ebuild:
+ Version bump. Now depend on system libsvm
+
+ 29 Jun 2010; Justin Lecher <jlec@gentoo.org> scikits_learn-0.2.ebuild:
+ Python ABI fixes
+
+*scikits_learn-0.2 (26 Mar 2010)
+
+ 26 Mar 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_learn-0.2.ebuild, +metadata.xml:
+ Initial import
+
diff --git a/sci-libs/scikits_learn/metadata.xml b/sci-libs/scikits_learn/metadata.xml
new file mode 100644
index 000000000000..087bbc4a99a7
--- /dev/null
+++ b/sci-libs/scikits_learn/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ scikits.learn is a python library for machine learning. It aims to
+ implement classic machine learning algorithms while remaining simple
+ and efficient.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-libs/scikits_learn/scikits_learn-0.6.ebuild b/sci-libs/scikits_learn/scikits_learn-0.6.ebuild
new file mode 100644
index 000000000000..ee0e366dd722
--- /dev/null
+++ b/sci-libs/scikits_learn/scikits_learn-0.6.ebuild
@@ -0,0 +1,72 @@
+# 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.6.ebuild,v 1.1 2011/01/08 19:22:56 bicatali Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+MY_P="${P/scikits_/scikits.}"
+
+DESCRIPTION="A set of python modules for machine learning and data mining"
+HOMEPAGE="http://scikits-learn.sourceforge.net/"
+SRC_URI="mirror://sourceforge/scikit-learn/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples test"
+
+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/libsvm-2.0/libsvm
+ 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
+}