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