summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-05-12 00:44:00 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-05-12 00:44:00 +0000
commit14ed41309daf28c1e54c88fd09a34f63c6a189f6 (patch)
treed31ba00875f347208a6bf2df28680835b21d6624 /sci-libs
parentRemove openpbs and old mpiexec mask, because I pulled openpbs. (diff)
downloadgentoo-2-14ed41309daf28c1e54c88fd09a34f63c6a189f6.tar.gz
gentoo-2-14ed41309daf28c1e54c88fd09a34f63c6a189f6.tar.bz2
gentoo-2-14ed41309daf28c1e54c88fd09a34f63c6a189f6.zip
Migrate to gen-2 java eclasses
(Portage version: 2.1.2.7)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libsvm/ChangeLog10
-rw-r--r--sci-libs/libsvm/files/digest-libsvm-2.81-r13
-rw-r--r--sci-libs/libsvm/libsvm-2.81-r1.ebuild69
3 files changed, 80 insertions, 2 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
index 564ca5e76bda..6fb53eca4574 100644
--- a/sci-libs/libsvm/ChangeLog
+++ b/sci-libs/libsvm/ChangeLog
@@ -1,6 +1,12 @@
# 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.2 2006/08/01 03:41:25 nichoj Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.3 2007/05/12 00:44:00 ali_bush Exp $
+
+*libsvm-2.81-r1 (12 May 2007)
+
+ 12 May 2007; Alistair John Bush <ali_bush@gentoo.org>
+ +libsvm-2.81-r1.ebuild:
+ Migrate to generation 2 java eclasses
01 Aug 2006; Joshua Nichols <nichoj@gentoo.org> libsvm-2.81.ebuild:
Changed deprecated dojar to java-pkg_dojar, bug #108517
diff --git a/sci-libs/libsvm/files/digest-libsvm-2.81-r1 b/sci-libs/libsvm/files/digest-libsvm-2.81-r1
new file mode 100644
index 000000000000..a097ce7ebbbb
--- /dev/null
+++ b/sci-libs/libsvm/files/digest-libsvm-2.81-r1
@@ -0,0 +1,3 @@
+MD5 2346a02e2e2c8db29696f6695b35a547 libsvm-2.81.tar.gz 447834
+RMD160 4a08a476d58695d154accf36a9ebef8ffbbc98ed libsvm-2.81.tar.gz 447834
+SHA256 a94d2716a9cec08e11b12dd05a4de66df0993b1d5506e445304457c65c374247 libsvm-2.81.tar.gz 447834
diff --git a/sci-libs/libsvm/libsvm-2.81-r1.ebuild b/sci-libs/libsvm/libsvm-2.81-r1.ebuild
new file mode 100644
index 000000000000..cdcdf198fcb3
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-2.81-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-2.81-r1.ebuild,v 1.1 2007/05/12 00:44:00 ali_bush Exp $
+
+inherit toolchain-funcs python java-pkg-opt-2
+
+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-1.4 )"
+#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
+ local JAVAC_FLAGS="$(java-pkg_javac-args)"
+ sed -i -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" Makefile || die
+ 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
+ java-pkg_dojar libsvm.jar
+ dohtml test_applet.html
+ cd -
+ fi
+}