From 51cfc437e2398a773f3c39b202dbaa99a648276a Mon Sep 17 00:00:00 2001 From: Matsuu Takuto Date: Mon, 3 Nov 2008 01:20:20 +0000 Subject: Removed append-ldflags -lstdc++, bug #226919. Fixed -fPIC issue, bug #240366. Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64 --- sci-misc/tinysvm/ChangeLog | 11 +++- sci-misc/tinysvm/Manifest | 4 +- sci-misc/tinysvm/files/tinysvm-0.09-r2-pm.patch | 16 +++++ sci-misc/tinysvm/tinysvm-0.09-r2.ebuild | 80 +++++++++++++++++++++++++ 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 sci-misc/tinysvm/files/tinysvm-0.09-r2-pm.patch create mode 100644 sci-misc/tinysvm/tinysvm-0.09-r2.ebuild (limited to 'sci-misc/tinysvm') diff --git a/sci-misc/tinysvm/ChangeLog b/sci-misc/tinysvm/ChangeLog index 6564ba8d5625..5042a17cd44b 100644 --- a/sci-misc/tinysvm/ChangeLog +++ b/sci-misc/tinysvm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-misc/tinysvm -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/tinysvm/ChangeLog,v 1.5 2007/12/25 17:14:41 phreak Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/tinysvm/ChangeLog,v 1.6 2008/11/03 01:20:20 matsuu Exp $ + +*tinysvm-0.09-r2 (03 Nov 2008) + + 03 Nov 2008; MATSUU Takuto + +files/tinysvm-0.09-r2-pm.patch, +tinysvm-0.09-r2.ebuild: + Removed append-ldflags -lstdc++, bug #226919. Fixed -fPIC issue, bug + #240366. 25 Dec 2007; Christian Heim metadata.xml: Removing usata from metadata.xml as per #22931. diff --git a/sci-misc/tinysvm/Manifest b/sci-misc/tinysvm/Manifest index 74d310022b3e..46c761ce019f 100644 --- a/sci-misc/tinysvm/Manifest +++ b/sci-misc/tinysvm/Manifest @@ -1,5 +1,7 @@ AUX tinysvm-0.09-pm.patch 450 RMD160 52cec0a3c140426912d542350cad654d2ac02060 SHA1 3325c452cf66b779e98b56eb7a0826bb0b6bcd21 SHA256 95fe45f550f9ff8080f4b92407daa71c8737a323347f4305a6914ec213228dc6 +AUX tinysvm-0.09-r2-pm.patch 656 RMD160 023d2e6c4d95362fe77cb18a8b246d1fd7b7588b SHA1 d1e8f0fd66e6b7aee336a037238022477d2c2d5f SHA256 e0c650d166d48dc7a8671422d63778035ac3369890176e0cf4f557a9b7f04e45 DIST TinySVM-0.09.tar.gz 317636 RMD160 d44586810d4776a251cda4a08b1aa9148108c8e6 SHA1 9c3c36454c475180ef6646d059376f35549cad08 SHA256 e377f7ede3e022247da31774a4f75f3595ce768bc1afe3de9fc8e962242c7ab8 EBUILD tinysvm-0.09-r1.ebuild 1686 RMD160 0eef79130e0143cf94761548051b2a8385dc411d SHA1 05eaef70e077c076386e8f694796d34d7f14d97d SHA256 0fe312f489240e0ad7046fd1dc8aa4655e419b24591d721e5cd260603fed67e3 -MISC ChangeLog 995 RMD160 2eb07dfd0254b4575c1fefd57e7c597ece8c28a1 SHA1 317cc17463c9376916f3d0598ba292dc56377b11 SHA256 2bface75ceef586c08b21c8b708184cfc114f89fe835536c0b15dee9cddcb1a1 +EBUILD tinysvm-0.09-r2.ebuild 1689 RMD160 4c47e41e90b95ac7e7a3678e1f401105e08897e7 SHA1 bee2fbc9a1011c651f389bdcc352dc0aafce8d36 SHA256 a05d3072be68a93c160e689655a75e256dff7a5f55165c1095b53f962b0a5ee2 +MISC ChangeLog 1219 RMD160 7a645e4587dc2556de47a2519fe5747ba1edc45f SHA1 c51a9f4f0fdbdecdd62179d1f501847b60daf62d SHA256 1a7e30117adce0f493927b6f77bb9ae13635c02c9f8802b7e9db73ef8944b6bb MISC metadata.xml 157 RMD160 1305e8c09c6d49c0db2a18bb50b045460c124ebe SHA1 874689ae30dfe223d487e0e6a5e0a0dbf06a69f4 SHA256 c3c089740b31ec0f4d7fbc3bf2d6bb8460ccfd0694f01bf91b22a2e1930d6d5d diff --git a/sci-misc/tinysvm/files/tinysvm-0.09-r2-pm.patch b/sci-misc/tinysvm/files/tinysvm-0.09-r2-pm.patch new file mode 100644 index 000000000000..105f4efe3747 --- /dev/null +++ b/sci-misc/tinysvm/files/tinysvm-0.09-r2-pm.patch @@ -0,0 +1,16 @@ +diff -Naur TinySVM-0.09.orig/perl/Makefile.PL.in TinySVM-0.09/perl/Makefile.PL.in +--- TinySVM-0.09.orig/perl/Makefile.PL.in 2001-08-29 23:56:31.000000000 +0900 ++++ TinySVM-0.09/perl/Makefile.PL.in 2008-11-03 09:47:48.000000000 +0900 +@@ -3,8 +3,9 @@ + # the contents of the Makefile that is written. + WriteMakefile( + 'CC' => '@CXX@', ++ 'LD' => '@CXX@', + 'NAME' => 'TinySVM', +- 'INC' => '-I@prefix@/include', +- 'LIBS' => '-L@prefix@/lib -ltinysvm', +- 'OBJECT' => 'TinySVM_wrap.o' ++ 'INC' => '-I../src -I@includedir@', ++ 'LIBS' => '-L../src/.libs -L@libdir@ -ltinysvm', ++ 'OBJECT' => 'TinySVM_wrap.o' + ); diff --git a/sci-misc/tinysvm/tinysvm-0.09-r2.ebuild b/sci-misc/tinysvm/tinysvm-0.09-r2.ebuild new file mode 100644 index 000000000000..13c0274346bf --- /dev/null +++ b/sci-misc/tinysvm/tinysvm-0.09-r2.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-misc/tinysvm/tinysvm-0.09-r2.ebuild,v 1.1 2008/11/03 01:20:20 matsuu Exp $ + +inherit eutils perl-module toolchain-funcs + +MY_P="TinySVM-${PV}" +DESCRIPTION="TinySVM is an implementation of Support Vector Machines (SVMs) for +pattern recognition." +HOMEPAGE="http://chasen.org/~taku/software/TinySVM/" +SRC_URI="http://chasen.org/~taku/software/TinySVM/src/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="java perl python ruby" +IUSE="perl" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PF}-pm.patch" + ln -s . src/TinySVM +} + +src_compile() { + tc-export CC CXX + + econf || die + emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die + if use perl ; then + ( + cd perl + perl-module_src_compile || die "compile failed in perl" + ) + fi + ## currently it fails to compile under python-2.4 + #if use python ; then + # ( + # cd python + # emake -f Makefile.pre.in boot || die "compile failed in python" + # emake || die + # ) + #fi + ## currently it fails to compile under gcc-3.4 + #if use ruby ; then + # ( + # cd ruby + # ruby extconf.rb || die + # emake || die + # ) + #fi +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS README THANKS + + if use perl ; then + ( + cd perl + perl-module_src_install || die "install failed in perl" + ) + fi + #if use python ; then + # ( + # cd python + # emake DESTDIR="${D}" install || die "install failed in python" + # ) + #fi + #if use ruby ; then + # ( + # cd ruby + # emake DESTDIR="${D}" install || die "install failed in ruby" + # ) + #fi +} -- cgit v1.2.3-65-gdbad