Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm: ChangeLog libsvm-2.84.ebuild libsvm-2.81.ebuild libsvm-2.81-r1.ebuild
Date: Mon, 01 Oct 2007 22:23:26
Message-Id: E1IcTWw-0002qq-TS@stork.gentoo.org
1 opfer 07/10/01 22:14:22
2
3 Modified: ChangeLog
4 Added: libsvm-2.84.ebuild
5 Removed: libsvm-2.81.ebuild libsvm-2.81-r1.ebuild
6 Log:
7 version bump (bug 176396): added tools USE flag to make proper inclusion of gnuplot dependency (bug 127128); reorder contents of KEYWORDS, inherit and IUSE alphabetically; make proper installation of test_applet.html file (wrong path, depending on python/java USE flag); clean up of old versions
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.4 sci-libs/libsvm/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 12 May 2007 00:44:00 -0000 1.3
24 +++ ChangeLog 1 Oct 2007 22:14:22 -0000 1.4
25 @@ -1,6 +1,15 @@
26 # ChangeLog for sci-libs/libsvm
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.3 2007/05/12 00:44:00 ali_bush Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.4 2007/10/01 22:14:22 opfer Exp $
30 +
31 +*libsvm-2.84 (01 Oct 2007)
32 +
33 + 01 Oct 2007; Christian Faulhammer <opfer@g.o> -libsvm-2.81.ebuild,
34 + -libsvm-2.81-r1.ebuild, +libsvm-2.84.ebuild:
35 + version bump (bug 176396): added tools USE flag to make proper inclusion of
36 + gnuplot dependency (bug 127128); reorder contents of KEYWORDS, inherit and
37 + IUSE alphabetically; make proper installation of test_applet.html file
38 + (wrong path, depending on python/java USE flag); clean up of old versions
39
40 *libsvm-2.81-r1 (12 May 2007)
41
42
43
44
45 1.1 sci-libs/libsvm/libsvm-2.84.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/libsvm-2.84.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/libsvm-2.84.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libsvm-2.84.ebuild
51 ===================================================================
52 # Copyright 1999-2007 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-2.84.ebuild,v 1.1 2007/10/01 22:14:22 opfer Exp $
55
56 inherit java-pkg-opt-2 python toolchain-funcs
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 ~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_compile() {
72 emake CXXC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" || die
73
74 sed -i -e 's@\.\./@/usr/bin/@g' tools/*.py || die
75
76 if use python ; then
77 cd python
78 python_version || die
79 emake CC="$(tc-getCXX)" \
80 CFLAGS="${CXXFLAGS} -I/usr/include/python${PYVER} -I.." all || die
81 cd -
82 fi
83
84 if use java ; then
85 cd java
86 local JAVAC_FLAGS="$(java-pkg_javac-args)"
87 sed -i -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" Makefile || die
88 emake || die
89 cd -
90 fi
91 }
92
93 src_install() {
94 dobin svm-train svm-predict svm-scale || die
95 dohtml FAQ.html
96 dodoc README
97
98 if use tools; then
99 cd tools
100 insinto /usr/share/doc/${PF}/tools
101 doins easy.py grid.py subset.py
102 docinto tools
103 dodoc README
104 cd -
105 fi
106
107 if use python ; then
108 cd python
109 python_version || die
110 insinto /usr/lib/python${PYVER}/site-packages
111 doins svmc.so svm.py || die
112 docinto python
113 dodoc README
114 cd -
115 fi
116
117 if use java ; then
118 cd java
119 java-pkg_dojar libsvm.jar
120 docinto html
121 dohtml test_applet.html
122 cd -
123 fi
124 }
125
126
127
128 --
129 gentoo-commits@g.o mailing list