summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/libsvm')
-rw-r--r--sci-libs/libsvm/ChangeLog10
-rw-r--r--sci-libs/libsvm/Manifest14
-rw-r--r--sci-libs/libsvm/files/2.90-fpic.patch26
-rw-r--r--sci-libs/libsvm/files/2.90-ldflags.patch19
-rw-r--r--sci-libs/libsvm/libsvm-2.90.ebuild105
5 files changed, 167 insertions, 7 deletions
diff --git a/sci-libs/libsvm/ChangeLog b/sci-libs/libsvm/ChangeLog
index 85c164c2185e..e3151d4eba8e 100644
--- a/sci-libs/libsvm/ChangeLog
+++ b/sci-libs/libsvm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/libsvm
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.15 2009/08/15 00:08:44 bicatali Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.16 2010/02/10 21:21:07 jlec Exp $
+
+*libsvm-2.90 (10 Feb 2010)
+
+ 10 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ +files/2.90-fpic.patch, +libsvm-2.90.ebuild, +files/2.90-ldflags.patch:
+ Version bump per bug 304329
*libsvm-2.89 (15 Aug 2009)
diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest
index c462b2392b0c..f099c0a5ad67 100644
--- a/sci-libs/libsvm/Manifest
+++ b/sci-libs/libsvm/Manifest
@@ -1,18 +1,22 @@
-----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
DIST libsvm-2.84.tar.gz 420750 RMD160 0b79b5a537bd9e2d6b131394e166f17356d7c348 SHA1 ba2e1dc3caec6a68541656e6556cd2bcb7a3bf00 SHA256 7a953a2b47ddd0713051b08c15867f758c06991591e6aaa223b78bfaa6dda3b1
DIST libsvm-2.88.tar.gz 548920 RMD160 022a94f0d3db3e388085785f178a671a30a62421 SHA1 92e44416eb2bc09d38f803273b659f3caff2a737 SHA256 60cf102eefc003ff94c60f671751033951390a6991e300c19332747524e65396
DIST libsvm-2.89.tar.gz 552206 RMD160 ec1071be6d77b2b7e4222f017bd9610a82615f4c SHA1 7c1a9ac280ff386dd0befad1aacdcd389fd654bc SHA256 dd47b107b0e15137d83e9b41b38c5bb2b937adaa0c8bdc85960ad485547eae09
+DIST libsvm-2.9.tar.gz 563829 RMD160 ff6207d399f59eea3329fd629fcdf4c399583a2b SHA1 506725e3328b7fd78b00b99b93e5fb4c90506528 SHA256 0cfb4b88c37e431490b65c97a2043f9aa9d2f1ee140344944dfea88b1136c757
EBUILD libsvm-2.84.ebuild 1629 RMD160 c71810bd9a672fba39c4734d1200ca078c5616cd SHA1 25ac0b5cb94c3b3adb79be6cd74352177e81c886 SHA256 9f3f389c8a3239145878fb60cbb6460fcf2b7eaa87d4e6333b36368fb8b9c536
EBUILD libsvm-2.88.ebuild 1971 RMD160 4c1b45c148e94d389d31f2fbfd01664b2d0ab94e SHA1 df46df1cf61a714d9725dab712c3dfce9b8c4bab SHA256 c5d627aee910ad756e07a26569da9174631429ee9424690cc6f85e902ea5cb00
EBUILD libsvm-2.89.ebuild 1971 RMD160 309738c1b21d4bf3cd863a486fb913fdf7c77e38 SHA1 4d3f13a0e362422f75bc1de6b89f11af84ccf50d SHA256 ed5928a3d03a1b14e053b308e7195afd2fa35c5914dcfc526027d026fd9fdac9
-MISC ChangeLog 2521 RMD160 077020062fbc6abce6835d7cdde17f8243f6c84f SHA1 dbe497f8e055712f91175f8f556ab1c8f2024eeb SHA256 612d9e30d71ffa3a41286800b503045871f60a0f0f9c415d75e5fc88e402933d
+EBUILD libsvm-2.90.ebuild 2352 RMD160 504728aa482a8299195f62d9a75abf3e1a43afa7 SHA1 7aefbdf17c2f2533ec5450b712ca6c650f509bcc SHA256 2661e0a024d51f0769e327a66d4a517f40c7f0db9e36e08cb6e28589a546e069
+MISC ChangeLog 2704 RMD160 b3c2fa1459478dadc5cd37e09d15a1cfaf813b21 SHA1 e5bb1c124b429916b86239ba50a8419860c19ecc SHA256 60c4e5f75a8d1d342ce544586eca4866c76cbe4ad7b0af24d27a78f2eadb1928
MISC metadata.xml 596 RMD160 fba7bdeb4607f0589d1074c6a465b9b89d7d20f9 SHA1 4b471f7db38f01e0a528fb09a6e284b53e2f29b5 SHA256 5025c0fcef24a49cf5ddec24582d1a91cf7cafe0cfab822f44c54adaf4b64e03
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
+Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAkqF/JcACgkQ1ycZbhPLE2BtQACfQZeVSn/vreX/TGtgVZz2DU8N
-pEUAnjGkaHaINCEIVrVRr6QznbAT7U5V
-=FCln
+iEYEARECAAYFAktzI0cACgkQgAnW8HDreRaqzgCZAQSmO9TFwVKXAfahom0t3Gq5
+9xAAoMij8nR0dhYyeit6h+UeSdO4tzFf
+=SkZn
-----END PGP SIGNATURE-----
diff --git a/sci-libs/libsvm/files/2.90-fpic.patch b/sci-libs/libsvm/files/2.90-fpic.patch
new file mode 100644
index 000000000000..c0ead5243262
--- /dev/null
+++ b/sci-libs/libsvm/files/2.90-fpic.patch
@@ -0,0 +1,26 @@
+diff --git a/python/Makefile b/python/Makefile
+index 32268e7..dbc128f 100644
+--- a/python/Makefile
++++ b/python/Makefile
+@@ -11,8 +11,8 @@ LDFLAGS = -shared
+
+ all: svmc.so
+
+-svmc.so: svmc_wrap.o ../svm.o
+- $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o ../svm.o
++svmc.so: svmc_wrap.o svm.o
++ $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o svm.o
+
+ svmc_wrap.o: svmc_wrap.c ../svm.h
+ $(CXX) $(CFLAGS) -fPIC -c svmc_wrap.c
+@@ -20,8 +20,8 @@ svmc_wrap.o: svmc_wrap.c ../svm.h
+ svmc_wrap.c: svmc.i
+ $(SWIG) -python -noproxy svmc.i
+
+-../svm.o: ../svm.cpp ../svm.h
+- cd ..; $(CXX) $(CFLAGS) -fPIC -c svm.cpp
++svm.o: ../svm.cpp ../svm.h
++ $(CXX) $(CFLAGS) -fPIC -c ../svm.cpp -o svm.o
+
+ clean:
+ rm -f *~ *.o *.so *.pyc *.pyo
diff --git a/sci-libs/libsvm/files/2.90-ldflags.patch b/sci-libs/libsvm/files/2.90-ldflags.patch
new file mode 100644
index 000000000000..08773d44ed41
--- /dev/null
+++ b/sci-libs/libsvm/files/2.90-ldflags.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index 3781264..ce53201 100644
+--- a/Makefile
++++ b/Makefile
+@@ -8,11 +8,11 @@ lib: svm.o
+ $(CXX) -shared svm.o -o libsvm.so.$(SHVER)
+
+ svm-predict: svm-predict.c svm.o
+- $(CXX) $(CFLAGS) svm-predict.c svm.o -o svm-predict -lm
++ $(CXX) $(CFLAGS) $(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) $(CFLAGS) $(LDFLAGS) svm-train.c svm.o -o svm-train -lm
+ svm-scale: svm-scale.c
+- $(CXX) $(CFLAGS) svm-scale.c -o svm-scale
++ $(CXX) $(CFLAGS) $(LDFLAGS) svm-scale.c -o svm-scale
+ svm.o: svm.cpp svm.h
+ $(CXX) $(CFLAGS) -c svm.cpp
+ clean:
diff --git a/sci-libs/libsvm/libsvm-2.90.ebuild b/sci-libs/libsvm/libsvm-2.90.ebuild
new file mode 100644
index 000000000000..58bec5cbca5a
--- /dev/null
+++ b/sci-libs/libsvm/libsvm-2.90.ebuild
@@ -0,0 +1,105 @@
+# 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.90.ebuild,v 1.1 2010/02/10 21:21:07 jlec Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils java-pkg-opt-2 python toolchain-funcs multilib
+
+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 )"
+
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-fpic.patch
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+ python_copy_sources --no-link
+}
+
+src_compile() {
+ emake \
+ CXX="$(tc-getCXX)" \
+ LDFLAGS="${LDFLAGS}" \
+ CFLAGS="${CXXFLAGS}" \
+ || die "emake failed"
+
+ sed -i -e 's@\.\./@/usr/bin/@g' tools/*.py \
+ || die "Failed to fix paths in python files"
+
+ if use python ; then
+ compilation () {
+ pushd python
+ emake \
+ CXX="$(tc-getCXX)" \
+ LDFLAGS="${LDFLAGS} -shared" \
+ CFLAGS="${CXXFLAGS} -I$(python_get_includedir) -I.." \
+ all || die "emake for python modules failed"
+ popd
+ }
+ python_execute_function -s compilation
+ 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 "Failed to fix java makefile"
+ emake || die "emake for java modules failed"
+ popd
+ fi
+}
+
+src_install() {
+ dobin svm-train svm-predict svm-scale \
+ || die "Failed to install binaries"
+ dohtml FAQ.html || die
+ dodoc README || die
+
+ if use tools; then
+ pushd tools
+ insinto /usr/share/${PN}/tools
+ doins easy.py grid.py subset.py \
+ || die "Failed to install python tools"
+ docinto tools
+ dodoc README || die
+ popd
+ fi
+
+ if use python ; then
+ installation() {
+ pushd python
+ insinto $(python_get_sitedir)
+ doins svmc.so svm.py \
+ || die "Failed to install python scripts"
+ docinto python
+ dodoc README || die
+ popd
+ }
+ python_execute_function -s installation
+ fi
+
+ if use java; then
+ pushd java
+ java-pkg_dojar libsvm.jar
+ docinto java
+ dohtml test_applet.html || die
+ popd
+ fi
+}