summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-08-05 20:25:15 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-08-05 20:25:15 +0000
commit8672d196c1fb6af160f6430635d0695a54d3e95e (patch)
tree7190093a293152318d645e5895dbd71e99565c86 /sci-libs
parentppc64 stable wrt #324691 (diff)
downloadhistorical-8672d196c1fb6af160f6430635d0695a54d3e95e.tar.gz
historical-8672d196c1fb6af160f6430635d0695a54d3e95e.tar.bz2
historical-8672d196c1fb6af160f6430635d0695a54d3e95e.zip
Version bump. Now install library. Tools are installed as executables. Clean-up.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libsvm/ChangeLog9
-rw-r--r--sci-libs/libsvm/Manifest17
-rw-r--r--sci-libs/libsvm/files/2.91-makefile.patch30
-rw-r--r--sci-libs/libsvm/libsvm-2.91.ebuild78
-rw-r--r--sci-libs/libsvm/metadata.xml2
5 files changed, 132 insertions, 4 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
index c53b59a08b49..b8a3513494ee 100644
--- a/sci-libs/libsvm/ChangeLog
+++ b/sci-libs/libsvm/ChangeLog
@@ -1,6 +1,13 @@
# 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.20 2010/04/18 17:37:00 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.21 2010/08/05 20:25:14 bicatali Exp $
+
+*libsvm-2.91 (05 Aug 2010)
+
+ 05 Aug 2010; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ +files/2.91-makefile.patch, +libsvm-2.91.ebuild, metadata.xml:
+ Version bump. Now install library. Tools are installed as executables.
+ Clean-up.
18 Apr 2010; <nixnut@gentoo.org> libsvm-2.90-r1.ebuild:
ppc stable #313139
diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest
index 84e3e3885bc4..bad54756cc2e 100644
--- a/sci-libs/libsvm/Manifest
+++ b/sci-libs/libsvm/Manifest
@@ -1,7 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 2.90-fpic.patch 713 RMD160 d2be5724cbde2aa5c7254c5be37d62cf48de0efb SHA1 231825014841bdf58b19e9f69864210b6d96416b SHA256 7b40aba4cf560488c464ede3374c455bb194b2ef6f15e7c447e823c81964fffc
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
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
EBUILD libsvm-2.90-r1.ebuild 2358 RMD160 df8c1f2d6f169df0cfd49175b8427675cd13bb2d SHA1 0077921f5e0a931b7447067b4d38ab0d125ae92f SHA256 0d0481f369bc12e3d91ada2ae9cf44dc6d53895a0b5d42c9767c8d39d97754e3
-MISC ChangeLog 3158 RMD160 446d65c54f6942b2937d7a1dbe341e466cba6fa1 SHA1 72332766f932b41dc6675653ebac1db59aa13fd9 SHA256 9eb725131ccff6545b27f117a067f7c8f58d37931e608cb4e72962909683e6b7
-MISC metadata.xml 596 RMD160 fba7bdeb4607f0589d1074c6a465b9b89d7d20f9 SHA1 4b471f7db38f01e0a528fb09a6e284b53e2f29b5 SHA256 5025c0fcef24a49cf5ddec24582d1a91cf7cafe0cfab822f44c54adaf4b64e03
+EBUILD libsvm-2.91.ebuild 1944 RMD160 6d24285fec13225391e259781c7f3ac26ff18bc2 SHA1 9e770d3c9a9fdf600c6ad1254a48f799e533e859 SHA256 4b96acf1e9f23accee2a0c47de3c8d0de43076452b2d33419fc46b8075fb3739
+MISC ChangeLog 3394 RMD160 58df5170ea7149d1f02076519f4a9f60893a2d09 SHA1 b982612c6419d4831abc6f98f96c9d6354926719 SHA256 461632933716459306b298aad27f5d703edf7c04da41badf9d4ea7f3ba20e405
+MISC metadata.xml 608 RMD160 e8c540fec56d4005f16ae87cfa0ea5dd69ff7dcc SHA1 8be11762b0d8b3fc92e4db7aa5db8557c1b9e12c SHA256 a2bd424684a6efc80d929f2c47af7bf45a91209aff98a6d6058793c61d9a37e0
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkxbKbkACgkQ1ycZbhPLE2DCIQCbB4eSXmO5B9YiCxdIWFIIKCQH
+4McAn11gzXBPdxBM9SqxG0Rc+Xpysckm
+=aawl
+-----END PGP SIGNATURE-----
diff --git a/sci-libs/libsvm/files/2.91-makefile.patch b/sci-libs/libsvm/files/2.91-makefile.patch
new file mode 100644
index 000000000000..b9b97e8a7cbd
--- /dev/null
+++ b/sci-libs/libsvm/files/2.91-makefile.patch
@@ -0,0 +1,30 @@
+--- Makefile.orig 2010-08-05 20:36:16.000000000 +0100
++++ Makefile 2010-08-05 21:30:42.000000000 +0100
+@@ -1,19 +1,19 @@
+-CXX ?= g++
+-CFLAGS = -Wall -Wconversion -O3 -fPIC
+ SHVER = 1
++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)
diff --git a/sci-libs/libsvm/libsvm-2.91.ebuild b/sci-libs/libsvm/libsvm-2.91.ebuild
new file mode 100644
index 000000000000..83e20a90f18d
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-2.91.ebuild
@@ -0,0 +1,78 @@
+# 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-2.91.ebuild,v 1.1 2010/08/05 20:25:14 bicatali Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils java-pkg-opt-2 python
+
+MY_P="${PN}-${PV%0}"
+
+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/${MY_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 )"
+
+S="${WORKDIR}"/${MY_P}
+
+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
+}
diff --git a/sci-libs/libsvm/metadata.xml b/sci-libs/libsvm/metadata.xml
index 0b62464e7215..27b4207dccd1 100644
--- a/sci-libs/libsvm/metadata.xml
+++ b/sci-libs/libsvm/metadata.xml
@@ -10,6 +10,6 @@
researchers and artificial intelligence application developers.
</longdescription>
<use>
- <flag name='tools'>Install support tools</flag>
+ <flag name='tools'>Install python based tool scripts</flag>
</use>
</pkgmetadata>