1 |
commit: c9c97aaed133a24430cacd0602b43437d4bd97e8 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 25 20:45:17 2017 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 25 20:56:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c97aae |
7 |
|
8 |
sci-libs/libsvm: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
sci-libs/libsvm/Manifest | 1 - |
14 |
sci-libs/libsvm/libsvm-3.17-r1.ebuild | 92 ---------------------------- |
15 |
sci-libs/libsvm/libsvm-3.17-r3.ebuild | 111 ---------------------------------- |
16 |
3 files changed, 204 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest |
19 |
index 428fc5c79e..9ef4802893 100644 |
20 |
--- a/sci-libs/libsvm/Manifest |
21 |
+++ b/sci-libs/libsvm/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST libsvm-3.17.tar.gz 607892 SHA256 46a4750d3506e6ccd8adf7e3e1f482d86ce9c5368f9c78e19c7923edf0067a12 SHA512 43f3e7cbee37b583cd65041465ef620ab7b3a24ad3f0e70cc2f41efea847e8c1c7319a92b53262bc5f721a46c0cfb4d51102d2e29c93b6ccae03ecf006e53d2d WHIRLPOOL 9518e2aeb5d2f0ac0945fa193edfaf7ba022729cc9ea91e5a773fed638fdcaef4d4bea0f284f1698571b570f5543afc8987ec81a54637d537c709b09474f6fbc |
24 |
DIST libsvm-3.21.tar.gz 847291 SHA256 519e0bdc0e31ab8246e9035e7ca91f794c16084f80abe4dffe776261d23c772f SHA512 697a7505100e48746a87e3e4ab025524fa581856320da3a187ac501138ce0a5bc7885ff37454ae5e75d6b0eab94e368b6bcd36601ad18db3b2fb35d2f360520a WHIRLPOOL d0ef916d37a3cc24680b6eba62d29caca9c36fa41ae8f22445137e044c7cf66a754c3d12670697fce174b388fe30906b2a4dc437cb38e7c6f1dd8dde85f51b84 |
25 |
|
26 |
diff --git a/sci-libs/libsvm/libsvm-3.17-r1.ebuild b/sci-libs/libsvm/libsvm-3.17-r1.ebuild |
27 |
deleted file mode 100644 |
28 |
index d264cc9dec..0000000000 |
29 |
--- a/sci-libs/libsvm/libsvm-3.17-r1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,92 +0,0 @@ |
32 |
-# Copyright 1999-2015 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-EAPI=5 |
37 |
- |
38 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
39 |
- |
40 |
-inherit eutils java-pkg-opt-2 python-r1 flag-o-matic toolchain-funcs |
41 |
- |
42 |
-DESCRIPTION="Library for Support Vector Machines" |
43 |
-HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/" |
44 |
-SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="BSD" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux" |
49 |
-IUSE="java openmp python tools" |
50 |
- |
51 |
-DEPEND="java? ( >=virtual/jdk-1.4 )" |
52 |
-RDEPEND=" |
53 |
- java? ( >=virtual/jre-1.4 ) |
54 |
- tools? ( sci-visualization/gnuplot )" |
55 |
- |
56 |
-pkg_setup() { |
57 |
- if use openmp; then |
58 |
- if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then |
59 |
- ewarn "You are using gcc but without OpenMP capabilities" |
60 |
- die "Need an OpenMP capable compiler" |
61 |
- else |
62 |
- append-ldflags -fopenmp |
63 |
- append-flags -fopenmp |
64 |
- fi |
65 |
- append-flags -DOPENMP |
66 |
- fi |
67 |
-} |
68 |
- |
69 |
-src_prepare() { |
70 |
- epatch \ |
71 |
- "${FILESDIR}"/3.11-openmp.patch \ |
72 |
- "${FILESDIR}"/3.14-makefile.patch |
73 |
- sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \ |
74 |
- || die "Failed to fix paths in python files" |
75 |
- |
76 |
- if use java; then |
77 |
- local JAVAC_FLAGS="$(java-pkg_javac-args)" |
78 |
- sed -i \ |
79 |
- -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \ |
80 |
- java/Makefile || die "Failed to fix java makefile" |
81 |
- fi |
82 |
- tc-export CXX CC |
83 |
-} |
84 |
- |
85 |
-src_compile() { |
86 |
- default |
87 |
- use java && emake -C java |
88 |
-} |
89 |
- |
90 |
-src_install() { |
91 |
- dobin svm-train svm-predict svm-scale |
92 |
- dolib.so *.so* |
93 |
- insinto /usr/include |
94 |
- doins svm.h |
95 |
- dohtml FAQ.html |
96 |
- dodoc README |
97 |
- |
98 |
- if use tools; then |
99 |
- local t |
100 |
- for t in tools/*.py; do |
101 |
- newbin ${t} svm-$(basename ${t} .py) |
102 |
- done |
103 |
- newdoc tools/README README.tools |
104 |
- insinto /usr/share/doc/${PF} |
105 |
- doins heart_scale |
106 |
- doins -r svm-toy |
107 |
- fi |
108 |
- |
109 |
- if use python ; then |
110 |
- installation() { |
111 |
- touch python/__init__.py || die |
112 |
- python_moduleinto libsvm |
113 |
- python_domodule python/*.py |
114 |
- } |
115 |
- python_foreach_impl installation |
116 |
- newdoc python/README README.python |
117 |
- fi |
118 |
- |
119 |
- if use java; then |
120 |
- java-pkg_dojar java/libsvm.jar |
121 |
- dohtml java/test_applet.html |
122 |
- fi |
123 |
-} |
124 |
|
125 |
diff --git a/sci-libs/libsvm/libsvm-3.17-r3.ebuild b/sci-libs/libsvm/libsvm-3.17-r3.ebuild |
126 |
deleted file mode 100644 |
127 |
index 9e504442c6..0000000000 |
128 |
--- a/sci-libs/libsvm/libsvm-3.17-r3.ebuild |
129 |
+++ /dev/null |
130 |
@@ -1,111 +0,0 @@ |
131 |
-# Copyright 1999-2016 Gentoo Foundation |
132 |
-# Distributed under the terms of the GNU General Public License v2 |
133 |
-# $Id$ |
134 |
- |
135 |
-EAPI=6 |
136 |
- |
137 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
138 |
- |
139 |
-inherit flag-o-matic java-pkg-opt-2 python-r1 toolchain-funcs |
140 |
- |
141 |
-DESCRIPTION="Library for Support Vector Machines" |
142 |
-HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/" |
143 |
-SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz" |
144 |
- |
145 |
-LICENSE="BSD" |
146 |
-SLOT="0" |
147 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
148 |
-IUSE="java openmp python tools" |
149 |
- |
150 |
-DEPEND="java? ( >=virtual/jdk-1.4 )" |
151 |
-RDEPEND=" |
152 |
- java? ( >=virtual/jre-1.4 ) |
153 |
- tools? ( sci-visualization/gnuplot )" |
154 |
- |
155 |
-PATCHES=( |
156 |
- "${FILESDIR}/3.11-openmp.patch" |
157 |
- "${FILESDIR}/3.14-makefile.patch" |
158 |
-) |
159 |
- |
160 |
-pkg_setup() { |
161 |
- if use openmp; then |
162 |
- if ! tc-has-openmp; then |
163 |
- ewarn "OpenMP is not supported by your currently selected compiler" |
164 |
- |
165 |
- if tc-is-clang; then |
166 |
- ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp," |
167 |
- ewarn "which you will need to build ${CATEGORY}/${PN} for USE=\"openmp\"" |
168 |
- fi |
169 |
- |
170 |
- die "need openmp capable compiler" |
171 |
- fi |
172 |
- |
173 |
- append-cflags -fopenmp |
174 |
- append-cxxflags -fopenmp |
175 |
- append-cppflags -DOPENMP |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-src_prepare() { |
180 |
- default |
181 |
- |
182 |
- sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \ |
183 |
- || die "Failed to fix paths in python files" |
184 |
- sed -i -e "s|./grid.py|${EPREFIX}/usr/bin/svm-grid|g" tools/*.py \ |
185 |
- || die "Failed to fix paths for svm-grid" |
186 |
- sed -i -e 's/grid.py/svm-grid/g' tools/grid.py \ |
187 |
- || die "Failed to rename grid.py to svm-grid" |
188 |
- |
189 |
- if use java; then |
190 |
- local JAVAC_FLAGS="$(java-pkg_javac-args)" |
191 |
- sed -i \ |
192 |
- -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \ |
193 |
- java/Makefile || die "Failed to fix java makefile" |
194 |
- fi |
195 |
- tc-export CXX CC |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- default |
200 |
- use java && emake -C java |
201 |
-} |
202 |
- |
203 |
-src_install() { |
204 |
- dobin svm-train svm-predict svm-scale |
205 |
- dolib.so *.so* |
206 |
- insinto /usr/include |
207 |
- doins svm.h |
208 |
- |
209 |
- dodoc README |
210 |
- |
211 |
- if use tools; then |
212 |
- local t |
213 |
- for t in tools/*.py; do |
214 |
- python_foreach_impl python_newscript ${t} svm-$(basename ${t} .py) |
215 |
- done |
216 |
- |
217 |
- newdoc tools/README README.tools |
218 |
- |
219 |
- insinto /usr/share/doc/${PF}/examples |
220 |
- doins heart_scale |
221 |
- doins -r svm-toy |
222 |
- fi |
223 |
- |
224 |
- if use python ; then |
225 |
- installation() { |
226 |
- touch python/__init__.py || die |
227 |
- python_moduleinto libsvm |
228 |
- python_domodule python/*.py |
229 |
- } |
230 |
- python_foreach_impl installation |
231 |
- newdoc python/README README.python |
232 |
- fi |
233 |
- |
234 |
- docinto html |
235 |
- if use java; then |
236 |
- java-pkg_dojar java/libsvm.jar |
237 |
- dodoc java/test_applet.html |
238 |
- fi |
239 |
- |
240 |
- dodoc FAQ.html |
241 |
-} |