summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2006-01-02 20:20:41 +0000
committerMamoru Komachi <usata@gentoo.org>2006-01-02 20:20:41 +0000
commit9f747938b28224d177e17a113d2c02b28c36ddaf (patch)
treef9f7a3c403839876c108fdbbddc888adadcf988d /sci-libs/libsvm
parentUpdated for modular X; bug #115992. (diff)
downloadhistorical-9f747938b28224d177e17a113d2c02b28c36ddaf.tar.gz
historical-9f747938b28224d177e17a113d2c02b28c36ddaf.tar.bz2
historical-9f747938b28224d177e17a113d2c02b28c36ddaf.zip
Initial import. This closes bug #111898.
Package-Manager: portage-2.0.53
Diffstat (limited to 'sci-libs/libsvm')
-rw-r--r--sci-libs/libsvm/ChangeLog10
-rw-r--r--sci-libs/libsvm/Manifest4
-rw-r--r--sci-libs/libsvm/files/digest-libsvm-2.811
-rw-r--r--sci-libs/libsvm/libsvm-2.81.ebuild67
-rw-r--r--sci-libs/libsvm/metadata.xml8
5 files changed, 90 insertions, 0 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
new file mode 100644
index 000000000000..4817ad920588
--- /dev/null
+++ b/sci-libs/libsvm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/libsvm
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.1 2006/01/02 20:20:41 usata Exp $
+
+*libsvm-2.81 (02 Jan 2006)
+
+ 02 Jan 2006; Mamoru KOMACHI <usata@gentoo.org> +metadata.xml,
+ +libsvm-2.81.ebuild:
+ Initial import. This closes bug #111898.
+
diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest
new file mode 100644
index 000000000000..7d211808f087
--- /dev/null
+++ b/sci-libs/libsvm/Manifest
@@ -0,0 +1,4 @@
+MD5 483654753d4170f704ead0eabb95fe40 ChangeLog 361
+MD5 32ef048ec73fd14fce95db57e4afa7b1 files/digest-libsvm-2.81 63
+MD5 e9ae6dc1c7f138fb86feed3fd4c49dfc libsvm-2.81.ebuild 1353
+MD5 3ff31b5479b2a0244f5711fff3155aed metadata.xml 221
diff --git a/sci-libs/libsvm/files/digest-libsvm-2.81 b/sci-libs/libsvm/files/digest-libsvm-2.81
new file mode 100644
index 000000000000..714df10228ec
--- /dev/null
+++ b/sci-libs/libsvm/files/digest-libsvm-2.81
@@ -0,0 +1 @@
+MD5 2346a02e2e2c8db29696f6695b35a547 libsvm-2.81.tar.gz 447834
diff --git a/sci-libs/libsvm/libsvm-2.81.ebuild b/sci-libs/libsvm/libsvm-2.81.ebuild
new file mode 100644
index 000000000000..04875822b0c7
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-2.81.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-2.81.ebuild,v 1.1 2006/01/02 20:20:41 usata Exp $
+
+inherit toolchain-funcs python
+
+DESCRIPTION="Library for Support Vector Machines"
+HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
+SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="python java"
+
+DEPEND="java? ( virtual/jdk )"
+#RDEPEND=""
+
+src_compile() {
+ emake CXXC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" || die
+
+ sed -i -e 's@\.\./@/usr/bin/@g' tools/*.py || die
+
+ if use python ; then
+ cd python
+ python_version || die
+ emake CC="$(tc-getCXX)" \
+ CFLAGS="${CXXFLAGS} -I/usr/include/python${PYVER} -I.." all || die
+ cd -
+ fi
+
+ if use java ; then
+ cd java
+ emake || die
+ cd -
+ fi
+}
+
+src_install() {
+ dobin svm-train svm-predict svm-scale || die
+ dohtml FAQ.html
+ dodoc README
+
+ cd tools
+ insinto /usr/share/doc/${PF}/tools
+ doins easy.py grid.py subset.py
+ docinto tools
+ dodoc README
+ cd -
+
+ if use python ; then
+ cd python
+ python_version || die
+ insinto /usr/lib/python${PYVER}/site-packages
+ doins svmc.so svm.py || die
+ docinto python
+ dodoc README
+ cd -
+ fi
+
+ if use java ; then
+ cd java
+ dojar libsvm.jar
+ dohtml test_applet.html
+ cd -
+ fi
+}
diff --git a/sci-libs/libsvm/metadata.xml b/sci-libs/libsvm/metadata.xml
new file mode 100644
index 000000000000..0d93ebc2d237
--- /dev/null
+++ b/sci-libs/libsvm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>usata@gentoo.org</email>
+</maintainer>
+</pkgmetadata>