summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-01-08 14:58:13 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-01-08 14:58:13 +0000
commita6431ebf6c72a3cb1cbe8196be0543e1216405fc (patch)
tree5b58de5520fce5a6f00c5e5a4f0dcc1f261d404c /sci-libs
parentsparc stable wrt #202662 (diff)
downloadgentoo-2-a6431ebf6c72a3cb1cbe8196be0543e1216405fc.tar.gz
gentoo-2-a6431ebf6c72a3cb1cbe8196be0543e1216405fc.tar.bz2
gentoo-2-a6431ebf6c72a3cb1cbe8196be0543e1216405fc.zip
Version bump. sci team taking over maintainship. Closes bug #203081.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libsvm/ChangeLog10
-rw-r--r--sci-libs/libsvm/files/digest-libsvm-2.853
-rw-r--r--sci-libs/libsvm/libsvm-2.85.ebuild80
-rw-r--r--sci-libs/libsvm/metadata.xml12
4 files changed, 99 insertions, 6 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
index 890b19a77614..26c799b24745 100644
--- a/sci-libs/libsvm/ChangeLog
+++ b/sci-libs/libsvm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/libsvm
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.8 2007/12/25 17:14:02 phreak Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.9 2008/01/08 14:58:12 bicatali Exp $
+
+*libsvm-2.85 (08 Jan 2008)
+
+ 08 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml,
+ +libsvm-2.85.ebuild:
+ Version bump. sci team taking over maintainship. Closes bug #203081.
25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing usata from metadata.xml as per #22931. Assigning to maintainer-needed.
diff --git a/sci-libs/libsvm/files/digest-libsvm-2.85 b/sci-libs/libsvm/files/digest-libsvm-2.85
new file mode 100644
index 000000000000..143d033971f2
--- /dev/null
+++ b/sci-libs/libsvm/files/digest-libsvm-2.85
@@ -0,0 +1,3 @@
+MD5 c839d919cc6fa7b5ad86ea37b7cebcc3 libsvm-2.85.tar.gz 537547
+RMD160 7e6dc8059280ced1bc2c436f81c4805ed15d53ad libsvm-2.85.tar.gz 537547
+SHA256 12fe632f749f647ea8069797f2f0c2db93fd70e7da4bd21d364fd8fff872eda2 libsvm-2.85.tar.gz 537547
diff --git a/sci-libs/libsvm/libsvm-2.85.ebuild b/sci-libs/libsvm/libsvm-2.85.ebuild
new file mode 100644
index 000000000000..870a5ab64ccc
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-2.85.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-2.85.ebuild,v 1.1 2008/01/08 14:58:12 bicatali Exp $
+
+inherit java-pkg-opt-2 python toolchain-funcs multilib
+
+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="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="java python tools"
+
+DEPEND="java? ( >=virtual/jdk-1.4 )"
+RDEPEND="${DEPEND}
+ tools? ( sci-visualization/gnuplot )"
+
+src_compile() {
+ emake \
+ CXXC="$(tc-getCXX)" \
+ CFLAGS="${CXXFLAGS}" \
+ || die "emake failed"
+
+ sed -i -e 's@\.\./@/usr/bin/@g' tools/*.py || die
+
+ if use python ; then
+ pushd python
+ python_version || die
+ emake \
+ CC="$(tc-getCXX)" \
+ CFLAGS="${CXXFLAGS} -I/usr/include/python${PYVER} -I.." \
+ all || die "emake for python modules failed"
+ popd
+ fi
+
+ if use java ; then
+ pushd java
+ local JAVAC_FLAGS="$(java-pkg_javac-args)"
+ sed -i \
+ -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
+ Makefile || die
+ emake || die "emake for java modules failed"
+ popd
+ fi
+}
+
+src_install() {
+ dobin svm-train svm-predict svm-scale || die
+ dohtml FAQ.html
+ dodoc README
+
+ if use tools; then
+ pushd tools
+ insinto /usr/share/doc/${PF}/tools
+ doins easy.py grid.py subset.py
+ docinto tools
+ dodoc README
+ popd
+ fi
+
+ if use python ; then
+ pushd python
+ python_version || die
+ insinto /usr/$(get_libdir)/python${PYVER}/site-packages
+ doins svmc.so svm.py || die
+ docinto python
+ dodoc README
+ popd
+ fi
+
+ if use java; then
+ pushd java
+ java-pkg_dojar libsvm.jar
+ docinto java
+ dohtml test_applet.html
+ popd
+ fi
+}
diff --git a/sci-libs/libsvm/metadata.xml b/sci-libs/libsvm/metadata.xml
index 9f3fdee2246b..eeee7d0b8992 100644
--- a/sci-libs/libsvm/metadata.xml
+++ b/sci-libs/libsvm/metadata.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>no-herd</herd>
- <maintainer>
- <email>maintainer-needed@gentoo.org</email>
- </maintainer>
+<herd>sci</herd>
+<longdescription lang="en">
+ The LIBSVM library is used to calculate Support Vector Machine
+ optimizations with a great variety of options. It includes
+ one-class, two-class, multiclass, regression-mode, and probablistic
+ output functionality. It is primarily of interest to machine-learning
+ researchers and artificial intelligence application developers.
+</longdescription>
</pkgmetadata>