summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-12-02 19:46:11 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-12-02 19:46:11 +0000
commit89b2da5b12ad0a4ce4284ea7804f7d8f8df4eaec (patch)
treed58fe750abcecc9925fb60b27c5411b3e72830d3 /sci-libs/libsvm
parentCheck that webstart flag is enabled if nsplugin flag is enabled. Document thi... (diff)
downloadhistorical-89b2da5b12ad0a4ce4284ea7804f7d8f8df4eaec.tar.gz
historical-89b2da5b12ad0a4ce4284ea7804f7d8f8df4eaec.tar.bz2
historical-89b2da5b12ad0a4ce4284ea7804f7d8f8df4eaec.zip
Version bump
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/libsvm')
-rw-r--r--sci-libs/libsvm/ChangeLog8
-rw-r--r--sci-libs/libsvm/Manifest11
-rw-r--r--sci-libs/libsvm/files/3.0-makefile.patch32
-rw-r--r--sci-libs/libsvm/libsvm-3.0.ebuild74
4 files changed, 120 insertions, 5 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
index b8a3513494ee..f067c647c355 100644
--- a/sci-libs/libsvm/ChangeLog
+++ b/sci-libs/libsvm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/libsvm
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.21 2010/08/05 20:25:14 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.22 2010/12/02 19:46:10 bicatali Exp $
+
+*libsvm-3.0 (02 Dec 2010)
+
+ 02 Dec 2010; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ +files/3.0-makefile.patch, +libsvm-3.0.ebuild:
+ Version bump
*libsvm-2.91 (05 Aug 2010)
diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest
index bad54756cc2e..c87d56d61377 100644
--- a/sci-libs/libsvm/Manifest
+++ b/sci-libs/libsvm/Manifest
@@ -5,16 +5,19 @@ AUX 2.90-fpic.patch 713 RMD160 d2be5724cbde2aa5c7254c5be37d62cf48de0efb SHA1 231
AUX 2.90-ldflags.patch 662 RMD160 ed4b98dc092dad67b32dbf513341dd6dbdc2f27d SHA1 55e97a9ef2bec6ba5bb7bff84892c98d6861d639 SHA256 0fb14dfeb3dc508210d2353bc9a1ab5081c7af11223f297b01c651d7a98c450b
AUX 2.90-python3.patch 408 RMD160 fa1a5cf9b03fe8a0c6a2aaeb3a5de4ffd81888fa SHA1 fcfbf9b8b5525cd4f408e4e3c88f7189eb4f20e2 SHA256 6c319490e6856fe5636de80a2fb89da3765511d9a1854d459a2376e7b36833c4
AUX 2.91-makefile.patch 1098 RMD160 a54fb2e62c07878071a028b373b524cbb963c173 SHA1 3055121e66bf3e53273d1ff522ffc9d07c2e8720 SHA256 f62358a34f7210aa73efe5eac6a7564951a393e820c499fabbb43e9faf7d125a
+AUX 3.0-makefile.patch 1213 RMD160 52c7a34819d6ef6899a5011e5d7e6d3825d821bb SHA1 1daa33709ad74d22842bc6fd0fa75ba682e016d1 SHA256 004b6f0168888716e0822fa2791530c176f3d2cb9b86d45ff583261b4c2b663e
DIST libsvm-2.9.tar.gz 563829 RMD160 ff6207d399f59eea3329fd629fcdf4c399583a2b SHA1 506725e3328b7fd78b00b99b93e5fb4c90506528 SHA256 0cfb4b88c37e431490b65c97a2043f9aa9d2f1ee140344944dfea88b1136c757
DIST libsvm-2.91.tar.gz 551593 RMD160 519dfba926e8957508e1f9a1e432b42518356b29 SHA1 4e6b3b6dde1524af665bbce531c6776a1f4c8cba SHA256 36f97dc5350d33338cf8d2401b4540cb9f19512bd71fd78fe6a3d5c4048ff577
+DIST libsvm-3.0.tar.gz 504749 RMD160 dc7e90540161509a8b6ad77d23402a23f5676216 SHA1 134c9676422021cd763ff2eca8875784f9015fe2 SHA256 5086f8c8efbbdb5bb22b0c12515d674380d9f825f13b8bf8d836e86c6e96cc13
EBUILD libsvm-2.90-r1.ebuild 2358 RMD160 df8c1f2d6f169df0cfd49175b8427675cd13bb2d SHA1 0077921f5e0a931b7447067b4d38ab0d125ae92f SHA256 0d0481f369bc12e3d91ada2ae9cf44dc6d53895a0b5d42c9767c8d39d97754e3
EBUILD libsvm-2.91.ebuild 1944 RMD160 6d24285fec13225391e259781c7f3ac26ff18bc2 SHA1 9e770d3c9a9fdf600c6ad1254a48f799e533e859 SHA256 4b96acf1e9f23accee2a0c47de3c8d0de43076452b2d33419fc46b8075fb3739
-MISC ChangeLog 3394 RMD160 58df5170ea7149d1f02076519f4a9f60893a2d09 SHA1 b982612c6419d4831abc6f98f96c9d6354926719 SHA256 461632933716459306b298aad27f5d703edf7c04da41badf9d4ea7f3ba20e405
+EBUILD libsvm-3.0.ebuild 1894 RMD160 3daf17b8fa94d3488dedbe289c585b97417e25bb SHA1 3f569a8d05329f1fc697baa66d7bb9151ed2cf30 SHA256 21598bd08aacf474b2df92f36cbd4f7411539a51fed4117b1724e84d50b0d286
+MISC ChangeLog 3541 RMD160 d8aa4d94902adf16ad85d7b85f185bc30f2fdfd4 SHA1 f0554efb9ef77811ffe2af6a745ac3aab734b7e0 SHA256 fa30bb864c2394e536f968c4525961a7fdc37b048721179bb251d6526ddd2cec
MISC metadata.xml 608 RMD160 e8c540fec56d4005f16ae87cfa0ea5dd69ff7dcc SHA1 8be11762b0d8b3fc92e4db7aa5db8557c1b9e12c SHA256 a2bd424684a6efc80d929f2c47af7bf45a91209aff98a6d6058793c61d9a37e0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkxbKbkACgkQ1ycZbhPLE2DCIQCbB4eSXmO5B9YiCxdIWFIIKCQH
-4McAn11gzXBPdxBM9SqxG0Rc+Xpysckm
-=aawl
+iEYEARECAAYFAkz394wACgkQ1ycZbhPLE2AYGACgoqYx9pqqlPPpXDqEue8W2ODn
+gT0AoLCZKf8K2lxWhKqMhCvMt1PBDs27
+=pJvy
-----END PGP SIGNATURE-----
diff --git a/sci-libs/libsvm/files/3.0-makefile.patch b/sci-libs/libsvm/files/3.0-makefile.patch
new file mode 100644
index 000000000000..25a1eaebbca7
--- /dev/null
+++ b/sci-libs/libsvm/files/3.0-makefile.patch
@@ -0,0 +1,32 @@
+--- Makefile.orig 2010-12-02 19:44:31.000000000 +0000
++++ Makefile 2010-12-02 19:43:59.000000000 +0000
+@@ -1,19 +1,21 @@
+ CXX ?= g++
+-CFLAGS = -Wall -Wconversion -O3 -fPIC
++CFLAGS ?= -Wall -Wconversion -O3
+ SHVER = 2
++PICFLAGS ?= -fPIC
+
+-all: svm-train svm-predict svm-scale
++all: svm-train svm-predict svm-scale lib
+
+ lib: svm.o
+- $(CXX) -shared -dynamiclib svm.o -o libsvm.so.$(SHVER)
++ $(CXX) $(LDFLAGS) -shared -Wl,-soname,libsvm.so.$(SHVER) svm.o -o libsvm.so.$(SHVER) -lm && \
++ ln -s libsvm.so.$(SHVER) libsvm.so
+
+ svm-predict: svm-predict.c svm.o
+- $(CXX) $(CFLAGS) svm-predict.c svm.o -o svm-predict -lm
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) svm-predict.c svm.o -o svm-predict -lm
+ svm-train: svm-train.c svm.o
+- $(CXX) $(CFLAGS) svm-train.c svm.o -o svm-train -lm
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) svm-train.c svm.o -o svm-train -lm
+ svm-scale: svm-scale.c
+- $(CXX) $(CFLAGS) svm-scale.c -o svm-scale
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) svm-scale.c -o svm-scale
+ svm.o: svm.cpp svm.h
+- $(CXX) $(CFLAGS) -c svm.cpp
++ $(CXX) $(CXXFLAGS) $(PICFLAGS) -c svm.cpp
+ clean:
+- rm -f *~ svm.o svm-train svm-predict svm-scale libsvm.so.$(SHVER)
++ rm -f *~ svm.o svm-train svm-predict svm-scale libsvm.so.$(SHVER) libsvm.so
diff --git a/sci-libs/libsvm/libsvm-3.0.ebuild b/sci-libs/libsvm/libsvm-3.0.ebuild
new file mode 100644
index 000000000000..eb9722e193b3
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-3.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-3.0.ebuild,v 1.1 2010/12/02 19:46:11 bicatali Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils java-pkg-opt-2 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="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="java python tools"
+
+DEPEND="java? ( >=virtual/jdk-1.4 )"
+RDEPEND="${DEPEND}
+ tools? ( sci-visualization/gnuplot )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-makefile.patch
+ sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \
+ || die "Failed to fix paths in python files"
+ if use java; then
+ local JAVAC_FLAGS="$(java-pkg_javac-args)"
+ sed -i \
+ -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
+ Makefile || die "Failed to fix java makefile"
+ fi
+}
+
+src_compile() {
+ emake || die "emake failed"
+ if use java ; then
+ emake -C java || die "emake for java modules failed"
+ fi
+}
+
+src_install() {
+ dobin svm-train svm-predict svm-scale \
+ || die "failed to install binaries"
+ dolib.so *.so* || die "failed to install library"
+ insinto /usr/include
+ doins svm.h || die
+ dohtml FAQ.html || die
+ dodoc README
+
+ if use tools; then
+ for t in tools/*.py; do
+ newbin ${t} svm-$(basename ${t} .py) || die "install tools failes"
+ done
+ newdoc tools/README README.tools
+ insinto /usr/share/doc/${PF}
+ doins heart_scale || die
+ doins -r svm-toy || die
+ fi
+
+ if use python ; then
+ installation() {
+ insinto $(python_get_sitedir)
+ doins python/*.py || die "python modules install failed"
+ }
+ python_execute_function installation
+ newdoc python/README README.python
+ fi
+
+ if use java; then
+ java-pkg_dojar java/libsvm.jar
+ dohtml java/test_applet.html
+ fi
+}