Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm: ChangeLog libsvm-3.0.ebuild
Date: Thu, 02 Dec 2010 19:46:21
Message-Id: 20101202194611.AECF920054@flycatcher.gentoo.org
1 bicatali 10/12/02 19:46:11
2
3 Modified: ChangeLog
4 Added: libsvm-3.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.22 sci-libs/libsvm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 5 Aug 2010 20:25:14 -0000 1.21
24 +++ ChangeLog 2 Dec 2010 19:46:10 -0000 1.22
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/libsvm
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.21 2010/08/05 20:25:14 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.22 2010/12/02 19:46:10 bicatali Exp $
30 +
31 +*libsvm-3.0 (02 Dec 2010)
32 +
33 + 02 Dec 2010; Sébastien Fabbro <bicatali@g.o>
34 + +files/3.0-makefile.patch, +libsvm-3.0.ebuild:
35 + Version bump
36
37 *libsvm-2.91 (05 Aug 2010)
38
39
40
41
42 1.1 sci-libs/libsvm/libsvm-3.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libsvm-3.0.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-3.0.ebuild,v 1.1 2010/12/02 19:46:11 bicatali Exp $
52
53 EAPI="3"
54 SUPPORT_PYTHON_ABIS="1"
55
56 inherit eutils java-pkg-opt-2 python
57
58 DESCRIPTION="Library for Support Vector Machines"
59 HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
60 SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
65 IUSE="java python tools"
66
67 DEPEND="java? ( >=virtual/jdk-1.4 )"
68 RDEPEND="${DEPEND}
69 tools? ( sci-visualization/gnuplot )"
70
71 src_prepare() {
72 epatch "${FILESDIR}"/${PV}-makefile.patch
73 sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \
74 || die "Failed to fix paths in python files"
75 if use java; then
76 local JAVAC_FLAGS="$(java-pkg_javac-args)"
77 sed -i \
78 -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
79 Makefile || die "Failed to fix java makefile"
80 fi
81 }
82
83 src_compile() {
84 emake || die "emake failed"
85 if use java ; then
86 emake -C java || die "emake for java modules failed"
87 fi
88 }
89
90 src_install() {
91 dobin svm-train svm-predict svm-scale \
92 || die "failed to install binaries"
93 dolib.so *.so* || die "failed to install library"
94 insinto /usr/include
95 doins svm.h || die
96 dohtml FAQ.html || die
97 dodoc README
98
99 if use tools; then
100 for t in tools/*.py; do
101 newbin ${t} svm-$(basename ${t} .py) || die "install tools failes"
102 done
103 newdoc tools/README README.tools
104 insinto /usr/share/doc/${PF}
105 doins heart_scale || die
106 doins -r svm-toy || die
107 fi
108
109 if use python ; then
110 installation() {
111 insinto $(python_get_sitedir)
112 doins python/*.py || die "python modules install failed"
113 }
114 python_execute_function installation
115 newdoc python/README README.python
116 fi
117
118 if use java; then
119 java-pkg_dojar java/libsvm.jar
120 dohtml java/test_applet.html
121 fi
122 }