aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2010-03-26 05:12:18 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2010-03-26 05:12:18 +0000
commit883cb7e86a5ffa4c3fe88e590f38f17d74c6506a (patch)
tree8e5e1f86d59a611a255682f0eac0991e986dfeed /sci-libs
parentAdded test suite (diff)
downloadsci-883cb7e86a5ffa4c3fe88e590f38f17d74c6506a.tar.gz
sci-883cb7e86a5ffa4c3fe88e590f38f17d74c6506a.tar.bz2
sci-883cb7e86a5ffa4c3fe88e590f38f17d74c6506a.zip
Added scikits_learn
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/scikits_learn/ChangeLog10
-rw-r--r--sci-libs/scikits_learn/Manifest5
-rw-r--r--sci-libs/scikits_learn/metadata.xml10
-rw-r--r--sci-libs/scikits_learn/scikits_learn-0.2.ebuild58
4 files changed, 83 insertions, 0 deletions
diff --git a/sci-libs/scikits_learn/ChangeLog b/sci-libs/scikits_learn/ChangeLog
new file mode 100644
index 000000000..8edc6dad1
--- /dev/null
+++ b/sci-libs/scikits_learn/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/scikits_learn
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*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/Manifest b/sci-libs/scikits_learn/Manifest
new file mode 100644
index 000000000..a6c7a60dc
--- /dev/null
+++ b/sci-libs/scikits_learn/Manifest
@@ -0,0 +1,5 @@
+DIST scikits.learn-0.2.tar.gz 3546152 RMD160 d11a9d8b3a6db41d4e257f5e1feb9a99c4813b0a SHA1 155313abd33cb5c393636e784795e5d1ebb6c37d SHA256 0a2615f19232e631fb115d4a5a77fecf1f6192f950c1483083ab4a4f477170fc
+DIST scikits.learn.pdf 594915 RMD160 5a8e9501a11c90098cc6cb79c3575daf5e4c3100 SHA1 4b352c5bec5bcf1254d6918cb08f29277bc11f02 SHA256 39f97b9f1ef45583227dae266fe770ec6551d6cf8b15a7a72f3949ea36277ae2
+EBUILD scikits_learn-0.2.ebuild 1349 RMD160 9d5ae6d123a00481ae20c8c7197b7069580bfad3 SHA1 adbfaa93a72f0b54ca57a14f4ae2850c31625259 SHA256 11f8d2244ddc954b3efb0991d7af1e9225c9c227799fb5c5048cfe21a1279680
+MISC ChangeLog 274 RMD160 0d95d32c0ef168cf1f92c80473aff6521c2016ba SHA1 9493efdd47fb5b9563674e69c3e1487e1e748000 SHA256 ccd93494fab32cec37c8a9058f574a6059963e72d5e0cf34d8e210fc662e6d8b
+MISC metadata.xml 360 RMD160 b7e8ec0449f59c0dd0a7e3810b7c86b260d51530 SHA1 a54074283be9e7d2a113220e92a622b6fb4bfe45 SHA256 6d8c6ea79bfa70bc97b21c3b11454f4e47e31c20442a9ff96230d535562e945c
diff --git a/sci-libs/scikits_learn/metadata.xml b/sci-libs/scikits_learn/metadata.xml
new file mode 100644
index 000000000..087bbc4a9
--- /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.2.ebuild b/sci-libs/scikits_learn/scikits_learn-0.2.ebuild
new file mode 100644
index 000000000..5db2ffcdb
--- /dev/null
+++ b/sci-libs/scikits_learn/scikits_learn-0.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+MY_P="${P/scikits_/scikits.}"
+
+DESCRIPTION="A set of python modules for machine learning and data mining"
+HOMEPAGE="http://sourceforge.net/apps/trac/scikit-learn"
+SRC_URI="mirror://sourceforge/scikit-learn/${MY_P}.tar.gz
+ doc? ( http://scikit-learn.sourceforge.net/doc/scikits.learn.pdf )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples test"
+
+RDEPEND="dev-python/numpy
+ sci-libs/scikits_optimization"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools
+ doc? ( dev-python/sphinx )
+ test? ( sci-libs/scikits_optimization )"
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
+ fi
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ find "${S}" -name \*LICENSE.txt -delete
+ distutils_src_install
+ 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
+}