Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm: ChangeLog libsvm-2.88.ebuild libsvm-2.85.ebuild
Date: Sat, 01 Nov 2008 13:22:01
Message-Id: E1KwGQQ-0006qC-PQ@stork.gentoo.org
1 markusle 08/11/01 13:21:58
2
3 Modified: ChangeLog
4 Added: libsvm-2.88.ebuild
5 Removed: libsvm-2.85.ebuild
6 Log:
7 Version bump and removed old version (see bug #244895).
8 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-SENTINEL-1 i686)
9
10 Revision Changes Path
11 1.14 sci-libs/libsvm/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/ChangeLog?r1=1.13&r2=1.14
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- ChangeLog 7 Aug 2008 08:39:45 -0000 1.13
24 +++ ChangeLog 1 Nov 2008 13:21:58 -0000 1.14
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/libsvm
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.13 2008/08/07 08:39:45 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.14 2008/11/01 13:21:58 markusle Exp $
30 +
31 +*libsvm-2.88 (01 Nov 2008)
32 +
33 + 01 Nov 2008; Markus Dittrich <markusle@g.o> -libsvm-2.85.ebuild,
34 + +libsvm-2.88.ebuild:
35 + Version bump and removed old version (see bug #244895).
36
37 07 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
38 Add USE flag description to metadata wrt GLEP 56.
39
40
41
42 1.1 sci-libs/libsvm/libsvm-2.88.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/libsvm-2.88.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libsvm/libsvm-2.88.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libsvm-2.88.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-2.88.ebuild,v 1.1 2008/11/01 13:21:58 markusle Exp $
52
53 inherit java-pkg-opt-2 python toolchain-funcs multilib
54
55 DESCRIPTION="Library for Support Vector Machines"
56 HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
57 SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
58
59 LICENSE="BSD"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
62 IUSE="java python tools"
63
64 DEPEND="java? ( >=virtual/jdk-1.4 )"
65 RDEPEND="${DEPEND}
66 tools? ( sci-visualization/gnuplot )"
67
68 src_compile() {
69 emake \
70 CXXC="$(tc-getCXX)" \
71 CFLAGS="${CXXFLAGS}" \
72 || die "emake failed"
73
74 sed -i -e 's@\.\./@/usr/bin/@g' tools/*.py \
75 || die "Failed to fix paths in python files"
76
77 if use python ; then
78 pushd python
79 python_version || die "python_version failed"
80 emake \
81 CC="$(tc-getCXX)" \
82 CFLAGS="${CXXFLAGS} -I/usr/include/python${PYVER} -I.." \
83 all || die "emake for python modules failed"
84 popd
85 fi
86
87 if use java ; then
88 pushd java
89 local JAVAC_FLAGS="$(java-pkg_javac-args)"
90 sed -i \
91 -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
92 Makefile || die "Failed to fix java makefile"
93 emake || die "emake for java modules failed"
94 popd
95 fi
96 }
97
98 src_install() {
99 dobin svm-train svm-predict svm-scale \
100 || die "Failed to install binaries"
101 dohtml FAQ.html
102 dodoc README
103
104 if use tools; then
105 pushd tools
106 insinto /usr/share/${PN}/tools
107 doins easy.py grid.py subset.py \
108 || die "Failed to install python tools"
109 docinto tools
110 dodoc README
111 popd
112 fi
113
114 if use python ; then
115 pushd python
116 python_version || die
117 insinto /usr/$(get_libdir)/python${PYVER}/site-packages
118 doins svmc.so svm.py \
119 || die "Failed to install python scripts"
120 docinto python
121 dodoc README
122 popd
123 fi
124
125 if use java; then
126 pushd java
127 java-pkg_dojar libsvm.jar
128 docinto java
129 dohtml test_applet.html
130 popd
131 fi
132 }