Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm: metadata.xml ChangeLog libsvm-3.17-r1.ebuild libsvm-2.90-r1.ebuild libsvm-3.14.ebuild
Date: Mon, 02 Feb 2015 08:09:55
Message-Id: 20150202080951.CE01B10E16@oystercatcher.gentoo.org
1 jlec 15/02/02 08:09:51
2
3 Modified: metadata.xml ChangeLog
4 Added: libsvm-3.17-r1.ebuild
5 Removed: libsvm-2.90-r1.ebuild libsvm-3.14.ebuild
6 Log:
7 sci-libs/libsvm: Respect CC, #484200
8
9 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
10
11 Revision Changes Path
12 1.8 sci-libs/libsvm/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/metadata.xml?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/metadata.xml?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/metadata.xml?r1=1.7&r2=1.8
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/metadata.xml,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- metadata.xml 29 Nov 2012 19:04:49 -0000 1.7
25 +++ metadata.xml 2 Feb 2015 08:09:51 -0000 1.8
26 @@ -1,15 +1,15 @@
27 <?xml version="1.0" encoding="UTF-8"?>
28 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 <pkgmetadata>
30 -<herd>sci</herd>
31 -<longdescription lang="en">
32 + <herd>sci</herd>
33 + <longdescription lang="en">
34 The LIBSVM library is used to calculate Support Vector Machine
35 optimizations with a great variety of options. It includes
36 one-class, two-class, multiclass, regression-mode, and probablistic
37 output functionality. It is primarily of interest to machine-learning
38 researchers and artificial intelligence application developers.
39 </longdescription>
40 -<use>
41 - <flag name="tools">Install python based tool scripts</flag>
42 -</use>
43 + <use>
44 + <flag name="tools">Install python based tool scripts</flag>
45 + </use>
46 </pkgmetadata>
47
48
49
50 1.37 sci-libs/libsvm/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.37&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.37&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?r1=1.36&r2=1.37
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v
59 retrieving revision 1.36
60 retrieving revision 1.37
61 diff -u -r1.36 -r1.37
62 --- ChangeLog 28 Nov 2014 15:12:21 -0000 1.36
63 +++ ChangeLog 2 Feb 2015 08:09:51 -0000 1.37
64 @@ -1,6 +1,12 @@
65 # ChangeLog for sci-libs/libsvm
66 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.36 2014/11/28 15:12:21 pacho Exp $
68 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
69 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.37 2015/02/02 08:09:51 jlec Exp $
70 +
71 +*libsvm-3.17-r1 (02 Feb 2015)
72 +
73 + 02 Feb 2015; Justin Lecher <jlec@g.o> -libsvm-2.90-r1.ebuild,
74 + -libsvm-3.14.ebuild, +libsvm-3.17-r1.ebuild, metadata.xml:
75 + Respect CC, #484200
76
77 28 Nov 2014; Pacho Ramos <pacho@g.o> libsvm-3.17.ebuild:
78 Support python 3.4
79
80
81
82 1.1 sci-libs/libsvm/libsvm-3.17-r1.ebuild
83
84 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.17-r1.ebuild?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.17-r1.ebuild?rev=1.1&content-type=text/plain
86
87 Index: libsvm-3.17-r1.ebuild
88 ===================================================================
89 # Copyright 1999-2015 Gentoo Foundation
90 # Distributed under the terms of the GNU General Public License v2
91 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-3.17-r1.ebuild,v 1.1 2015/02/02 08:09:51 jlec Exp $
92
93 EAPI=5
94
95 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
96
97 inherit eutils java-pkg-opt-2 python-r1 flag-o-matic toolchain-funcs
98
99 DESCRIPTION="Library for Support Vector Machines"
100 HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
101 SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
102
103 LICENSE="BSD"
104 SLOT="0"
105 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
106 IUSE="java openmp python tools"
107
108 DEPEND="java? ( >=virtual/jdk-1.4 )"
109 RDEPEND="
110 java? ( >=virtual/jre-1.4 )
111 tools? ( sci-visualization/gnuplot )"
112
113 pkg_setup() {
114 if use openmp; then
115 if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
116 ewarn "You are using gcc but without OpenMP capabilities"
117 die "Need an OpenMP capable compiler"
118 else
119 append-ldflags -fopenmp
120 append-flags -fopenmp
121 fi
122 append-flags -DOPENMP
123 fi
124 }
125
126 src_prepare() {
127 epatch \
128 "${FILESDIR}"/3.11-openmp.patch \
129 "${FILESDIR}"/3.14-makefile.patch
130 sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \
131 || die "Failed to fix paths in python files"
132
133 if use java; then
134 local JAVAC_FLAGS="$(java-pkg_javac-args)"
135 sed -i \
136 -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
137 java/Makefile || die "Failed to fix java makefile"
138 fi
139 tc-export CXX CC
140 }
141
142 src_compile() {
143 default
144 use java && emake -C java
145 }
146
147 src_install() {
148 dobin svm-train svm-predict svm-scale
149 dolib.so *.so*
150 insinto /usr/include
151 doins svm.h
152 dohtml FAQ.html
153 dodoc README
154
155 if use tools; then
156 local t
157 for t in tools/*.py; do
158 newbin ${t} svm-$(basename ${t} .py)
159 done
160 newdoc tools/README README.tools
161 insinto /usr/share/doc/${PF}
162 doins heart_scale
163 doins -r svm-toy
164 fi
165
166 if use python ; then
167 installation() {
168 touch python/__init__.py || die
169 python_moduleinto libsvm
170 python_domodule python/*.py
171 }
172 python_foreach_impl installation
173 newdoc python/README README.python
174 fi
175
176 if use java; then
177 java-pkg_dojar java/libsvm.jar
178 dohtml java/test_applet.html
179 fi
180 }