1 |
commit: 0b6d861d173a91589861871acf5fbd35fe28b495 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 12 17:41:00 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 12 17:41:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b6d861d |
7 |
|
8 |
sci-mathematics/snns: remove last-rited pkg |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
|
12 |
sci-mathematics/snns/Manifest | 2 - |
13 |
sci-mathematics/snns/files/4.2-ldflags.patch | 42 ------ |
14 |
sci-mathematics/snns/files/4.3-bison-version.patch | 11 -- |
15 |
.../snns/files/4.3-expand-path-strings.patch | 33 ----- |
16 |
sci-mathematics/snns/files/4.3-snns-netperf.patch | 164 --------------------- |
17 |
sci-mathematics/snns/files/4.3-unstrip.patch | 11 -- |
18 |
sci-mathematics/snns/metadata.xml | 15 -- |
19 |
sci-mathematics/snns/snns-4.3-r2.ebuild | 123 ---------------- |
20 |
sci-mathematics/snns/snns-4.3-r3.ebuild | 124 ---------------- |
21 |
9 files changed, 525 deletions(-) |
22 |
|
23 |
diff --git a/sci-mathematics/snns/Manifest b/sci-mathematics/snns/Manifest |
24 |
deleted file mode 100644 |
25 |
index 5e3146e4835..00000000000 |
26 |
--- a/sci-mathematics/snns/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1,2 +0,0 @@ |
29 |
-DIST SNNSv4.2.Manual.pdf 2103861 BLAKE2B 2eaafc53a1c6d298f8dd67d019c39ef1dec9a82cae699247235a963d1bbdc673931dabfe30240672044e7d8596d7d6bf69260682a1dad7b4849be26b0e6b7b19 SHA512 204ff6cf31cdf6496042b7f1b6a1a446c4050c3d4d92ff046dc4970c4f8d3872f5d3430d2f41138e5e5b64a77348b95960eba53b2c305954b68dd0e483828016 |
30 |
-DIST SNNSv4.3.tar.gz 5076669 BLAKE2B 177a6d6a03497cfb6980e6d2c2be27a38d683bdfa8132e257599a6867f150eed0f6dd66b5e43a79f812a83760ec0e40cd5879ba2d8a41e4446e289fd08b3ddc0 SHA512 a057dc946b581eee01334956c33d6870b8b994d1b835834d58c37ae3a8585dfb1206f3082b17a49ee97b22f4c07c0efb47e4e3ae5aeb37e97f69472da3e21f0b |
31 |
|
32 |
diff --git a/sci-mathematics/snns/files/4.2-ldflags.patch b/sci-mathematics/snns/files/4.2-ldflags.patch |
33 |
deleted file mode 100644 |
34 |
index 9ff4769731d..00000000000 |
35 |
--- a/sci-mathematics/snns/files/4.2-ldflags.patch |
36 |
+++ /dev/null |
37 |
@@ -1,42 +0,0 @@ |
38 |
-Respect LDFLAGS |
39 |
- |
40 |
-https://bugs.gentoo.org/show_bug.cgi?id=332475 |
41 |
- |
42 |
---- a/tools/sources/Makefile |
43 |
-+++ b/tools/sources/Makefile |
44 |
-@@ -147,19 +147,19 @@ |
45 |
- # Linking of single stand alone programs |
46 |
- |
47 |
- analyze: analyze.o |
48 |
-- $(CC) analyze.o -lm -o analyze |
49 |
-+ $(CC) $(LDFLAGS) analyze.o -lm -o analyze |
50 |
- |
51 |
- pat_sel_simple: pat_sel_simple.o |
52 |
-- $(CC) pat_sel_simple.o -lm -o pat_sel_simple |
53 |
-+ $(CC) $(LDFLAGS) pat_sel_simple.o -lm -o pat_sel_simple |
54 |
- |
55 |
- mkhead: mkhead.o |
56 |
-- $(CC) mkhead.o -lm -o mkhead |
57 |
-+ $(CC) $(LDFLAGS) mkhead.o -lm -o mkhead |
58 |
- |
59 |
- mkout: mkout.o |
60 |
-- $(CC) mkout.o -lm -o mkout |
61 |
-+ $(CC) $(LDFLAGS) mkout.o -lm -o mkout |
62 |
- |
63 |
- mkpat: mkpat.o |
64 |
-- $(CC) mkpat.o -lm -o mkpat |
65 |
-+ $(CC) $(LDFLAGS) mkpat.o -lm -o mkpat |
66 |
- |
67 |
- |
68 |
- # Make sure that kernel libs are available and up to date |
69 |
---- a/xgui/sources/Makefile |
70 |
-+++ b/xgui/sources/Makefile |
71 |
-@@ -202,7 +202,7 @@ |
72 |
- # Linking of xgui |
73 |
- |
74 |
- xgui: $(LIBXGUI1) $(LIBXGUI2) $(BN3DLIB) $(KERNELLIBS) |
75 |
-- $(CC) $(LIBXGUI1) $(LIBXGUI2) $(BN3DLIB) \ |
76 |
-+ $(CC) $(LDFLAGS) $(LIBXGUI1) $(LIBXGUI2) $(BN3DLIB) \ |
77 |
- $(X_LIBS) -lXaw3d -lXmu -lXt -lXext $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) \ |
78 |
- $(KERNELALLLIBS) -o xgui |
79 |
- |
80 |
|
81 |
diff --git a/sci-mathematics/snns/files/4.3-bison-version.patch b/sci-mathematics/snns/files/4.3-bison-version.patch |
82 |
deleted file mode 100644 |
83 |
index ceb4b1e43c0..00000000000 |
84 |
--- a/sci-mathematics/snns/files/4.3-bison-version.patch |
85 |
+++ /dev/null |
86 |
@@ -1,11 +0,0 @@ |
87 |
---- a/configure 2015-04-08 16:27:05.000000000 -0400 |
88 |
-+++ b/configure 2015-04-08 16:26:41.000000000 -0400 |
89 |
-@@ -5071,7 +5071,7 @@ |
90 |
- else |
91 |
- { echo "$as_me:$LINENO: checking for version of bison" >&5 |
92 |
- echo $ECHO_N "checking for version of bison... $ECHO_C" >&6; } |
93 |
-- bison_version=`$BISON --version` |
94 |
-+ bison_version=`$BISON --version |head -n 1` |
95 |
- { echo "$as_me:$LINENO: result: $bison_version" >&5 |
96 |
- echo "${ECHO_T}$bison_version" >&6; } |
97 |
- warn_bison=yes |
98 |
|
99 |
diff --git a/sci-mathematics/snns/files/4.3-expand-path-strings.patch b/sci-mathematics/snns/files/4.3-expand-path-strings.patch |
100 |
deleted file mode 100644 |
101 |
index e62a3cfa6cd..00000000000 |
102 |
--- a/sci-mathematics/snns/files/4.3-expand-path-strings.patch |
103 |
+++ /dev/null |
104 |
@@ -1,33 +0,0 @@ |
105 |
---- a/tools/sources/convert2snns.c 2008-04-21 03:56:07.000000000 -0400 |
106 |
-+++ b/tools/sources/convert2snns.c 2017-12-14 11:13:12.056308969 -0500 |
107 |
-@@ -54,8 +54,8 @@ |
108 |
- /* Init functionname */ |
109 |
- #define KOHONEN_INIT_FUNC_NAME "Kohonen_Weights_v3.2" |
110 |
- |
111 |
--char *control_file,pattern_file[80],weight_file[80], |
112 |
-- string[80],name[50]; |
113 |
-+char *control_file,pattern_file[256],weight_file[256], |
114 |
-+ string[256],name[256]; |
115 |
- int no_of_exemplars,X,Y, |
116 |
- ret, i, j, unit_no, |
117 |
- IUnits, OUnits, HUnits; |
118 |
---- a/tools/sources/snns2c.c 2017-12-14 11:05:48.372487874 -0500 |
119 |
-+++ b/tools/sources/snns2c.c 2017-12-14 11:11:08.484915822 -0500 |
120 |
-@@ -1622,7 +1622,7 @@ |
121 |
- FILE *fOutFile, *fHeaderFile; |
122 |
- pList OutList, FunctionList; |
123 |
- time_t timer; |
124 |
-- char HeaderFile[50]; |
125 |
-+ char HeaderFile[256]; |
126 |
- |
127 |
- /* calculate time for the date in the header of the output file */ |
128 |
- time(&timer); |
129 |
-@@ -1824,7 +1824,7 @@ |
130 |
- FILE *fOutFile, *fHeaderFile; |
131 |
- pList OutList, FunctionList; |
132 |
- time_t timer; |
133 |
-- char HeaderFile[50]; |
134 |
-+ char HeaderFile[256]; |
135 |
- |
136 |
- /* calculate time for the date in the header of the output file */ |
137 |
- time(&timer); |
138 |
|
139 |
diff --git a/sci-mathematics/snns/files/4.3-snns-netperf.patch b/sci-mathematics/snns/files/4.3-snns-netperf.patch |
140 |
deleted file mode 100644 |
141 |
index f154a538b2d..00000000000 |
142 |
--- a/sci-mathematics/snns/files/4.3-snns-netperf.patch |
143 |
+++ /dev/null |
144 |
@@ -1,164 +0,0 @@ |
145 |
---- a/examples/nettalk.README 2008-04-21 03:55:43.000000000 -0400 |
146 |
-+++ b/examples/nettalk.README 2015-04-14 09:38:23.836014999 -0400 |
147 |
-@@ -60,7 +60,7 @@ |
148 |
- Hints: |
149 |
- ====== |
150 |
- |
151 |
--We usually call nettalk.net from the tool 'netperf', a benchmarking |
152 |
-+We usually call nettalk.net from the tool 'snns-netperf', a benchmarking |
153 |
- version of SNNS without graphical user interface but with the full and |
154 |
- current SNNS kernel. It is supplied with SNNS in the tools directory. |
155 |
- We usually train and test nettalk for 10 cycles. Since convergence is |
156 |
---- a/man/man1/snns.1 2008-04-21 03:56:05.000000000 -0400 |
157 |
-+++ b/man/man1/snns.1 2015-04-14 09:36:27.406012874 -0400 |
158 |
-@@ -111,7 +111,7 @@ |
159 |
- .BR netlearn (1) |
160 |
- backpropagation test program |
161 |
- |
162 |
--.BR netperf (1) |
163 |
-+.BR snns-netperf (1) |
164 |
- benchmark program |
165 |
- |
166 |
- .BR pat_sel (1) |
167 |
-@@ -132,4 +132,4 @@ |
168 |
- yet. |
169 |
- |
170 |
- .SH AUTHOR |
171 |
--Guenter W. Mamier |
172 |
-\ No newline at end of file |
173 |
-+Guenter W. Mamier |
174 |
---- a/tools/doc/netperf.doc 2008-04-21 03:56:06.000000000 -0400 |
175 |
-+++ b/tools/doc/netperf.doc 1969-12-31 19:00:00.000000000 -0500 |
176 |
-@@ -1,49 +0,0 @@ |
177 |
-- =============================== |
178 |
-- Description of the tool NETPERF |
179 |
-- =============================== |
180 |
-- |
181 |
--This is a benchmark program for SNNS. Propagtion and |
182 |
--backpropagation tests are performed. |
183 |
-- |
184 |
--synopsis: netperf |
185 |
-- |
186 |
-- |
187 |
--example: |
188 |
-- |
189 |
--unix >netperf |
190 |
-- |
191 |
--produces |
192 |
-- |
193 |
-- SNNS 3D-Kernel V3.1000 |
194 |
-- ----- Benchmark Test ----- |
195 |
-- |
196 |
-- Filename of the network file: ../../../examples/nettalk.net |
197 |
-- Loading the network ... |
198 |
-- |
199 |
-- Network name: nettalk1 |
200 |
-- No. of units : 349 |
201 |
-- No. of input units : 203 |
202 |
-- No. of output units: 26 |
203 |
-- No. of sites: 0 |
204 |
-- No. of links: 27480 |
205 |
-- |
206 |
-- Learning function: Std_Backpropagation |
207 |
-- Update function : Topological_Order |
208 |
-- |
209 |
-- Do you want to benchmark |
210 |
-- Propagation [1] or |
211 |
-- Backpropagation [2] ? |
212 |
-- Input: 1 |
213 |
-- |
214 |
-- Choose no. of cycles: 100 |
215 |
-- |
216 |
-- Begin propagation ... |
217 |
-- |
218 |
-- |
219 |
-- No. of units updated: 34900 |
220 |
-- No. of sites updated: 0 |
221 |
-- No. of links updated: 2748000 |
222 |
-- CPU Time used: 3.05 seconds |
223 |
-- |
224 |
-- No. of connection per second (CPS): 9.0098e+05 |
225 |
-- |
226 |
---- a/tools/doc/snns-netperf.doc 1969-12-31 19:00:00.000000000 -0500 |
227 |
-+++ b/tools/doc/snns-netperf.doc 2015-04-14 09:37:21.126013855 -0400 |
228 |
-@@ -0,0 +1,49 @@ |
229 |
-+ ==================================== |
230 |
-+ Description of the tool SNNS-NETPERF |
231 |
-+ ==================================== |
232 |
-+ |
233 |
-+This is a benchmark program for SNNS. Propagtion and |
234 |
-+backpropagation tests are performed. |
235 |
-+ |
236 |
-+synopsis: snns-netperf |
237 |
-+ |
238 |
-+ |
239 |
-+example: |
240 |
-+ |
241 |
-+unix >snns-netperf |
242 |
-+ |
243 |
-+produces |
244 |
-+ |
245 |
-+ SNNS 3D-Kernel V3.1000 |
246 |
-+ ----- Benchmark Test ----- |
247 |
-+ |
248 |
-+ Filename of the network file: ../../../examples/nettalk.net |
249 |
-+ Loading the network ... |
250 |
-+ |
251 |
-+ Network name: nettalk1 |
252 |
-+ No. of units : 349 |
253 |
-+ No. of input units : 203 |
254 |
-+ No. of output units: 26 |
255 |
-+ No. of sites: 0 |
256 |
-+ No. of links: 27480 |
257 |
-+ |
258 |
-+ Learning function: Std_Backpropagation |
259 |
-+ Update function : Topological_Order |
260 |
-+ |
261 |
-+ Do you want to benchmark |
262 |
-+ Propagation [1] or |
263 |
-+ Backpropagation [2] ? |
264 |
-+ Input: 1 |
265 |
-+ |
266 |
-+ Choose no. of cycles: 100 |
267 |
-+ |
268 |
-+ Begin propagation ... |
269 |
-+ |
270 |
-+ |
271 |
-+ No. of units updated: 34900 |
272 |
-+ No. of sites updated: 0 |
273 |
-+ No. of links updated: 2748000 |
274 |
-+ CPU Time used: 3.05 seconds |
275 |
-+ |
276 |
-+ No. of connection per second (CPS): 9.0098e+05 |
277 |
-+ |
278 |
---- a/tools/sources/Makefile 2015-04-14 09:34:31.386010756 -0400 |
279 |
-+++ b/tools/sources/Makefile 2015-04-14 09:35:50.526012201 -0400 |
280 |
-@@ -89,7 +89,7 @@ |
281 |
- |
282 |
- TOOLS_PRG = $(TOOLS_SOURCES_C:.c=) |
283 |
- KRTOOLS_PRG = snns2c pat_sel netlearn td_bignet ff_bignet \ |
284 |
-- netperf snnsbat feedback-gennet convert2snns \ |
285 |
-+ snns-netperf snnsbat feedback-gennet convert2snns \ |
286 |
- isnns linknets |
287 |
- BATCH_PRG = batchman |
288 |
- |
289 |
-@@ -110,7 +110,7 @@ |
290 |
- tools: $(TOOLS_PRG) $(KRTOOLS_PRG) $(BATCH_PRG) |
291 |
- |
292 |
- $(TOOLSBINDIR): |
293 |
-- -mkdir $(TOOLSBINDIR) |
294 |
-+ -mkdir -p $(TOOLSBINDIR) |
295 |
- |
296 |
- install: tools $(TOOLSBINDIR) |
297 |
- for tooltarget in $(TOOLS_PRG) $(KRTOOLS_PRG) $(BATCH_PRG) ; do \ |
298 |
-@@ -191,8 +191,8 @@ |
299 |
- ff_bignet: ff_bignet.o $(KERNELLIBS) |
300 |
- $(CC) $(LDFLAGS) ff_bignet.o $(KERNELALLLIBS) -o ff_bignet |
301 |
- |
302 |
--netperf: netperf.o $(KERNELLIBS) |
303 |
-- $(CC) $(LDFLAGS) netperf.o $(KERNELALLLIBS) -o netperf |
304 |
-+snns-netperf: netperf.o $(KERNELLIBS) |
305 |
-+ $(CC) $(LDFLAGS) netperf.o $(KERNELALLLIBS) -o snns-netperf |
306 |
- |
307 |
- snnsbat: snnsbat.o $(KERNELLIBS) |
308 |
- $(CC) $(LDFLAGS) snnsbat.o $(KERNELALLLIBS) -o snnsbat |
309 |
|
310 |
diff --git a/sci-mathematics/snns/files/4.3-unstrip.patch b/sci-mathematics/snns/files/4.3-unstrip.patch |
311 |
deleted file mode 100644 |
312 |
index 4f36040e221..00000000000 |
313 |
--- a/sci-mathematics/snns/files/4.3-unstrip.patch |
314 |
+++ /dev/null |
315 |
@@ -1,11 +0,0 @@ |
316 |
---- a/configuration/install-sh 2008-04-21 03:55:33.000000000 -0400 |
317 |
-+++ b/configuration/install-sh 2015-04-08 16:59:32.000000000 -0400 |
318 |
-@@ -79,7 +79,7 @@ |
319 |
- shift |
320 |
- continue;; |
321 |
- |
322 |
-- -s) stripcmd="$stripprog" |
323 |
-+ -s) stripcmd="" |
324 |
- shift |
325 |
- continue;; |
326 |
- |
327 |
|
328 |
diff --git a/sci-mathematics/snns/metadata.xml b/sci-mathematics/snns/metadata.xml |
329 |
deleted file mode 100644 |
330 |
index cc5d9687eb2..00000000000 |
331 |
--- a/sci-mathematics/snns/metadata.xml |
332 |
+++ /dev/null |
333 |
@@ -1,15 +0,0 @@ |
334 |
-<?xml version="1.0" encoding="UTF-8"?> |
335 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
336 |
-<pkgmetadata> |
337 |
- <maintainer type="person"> |
338 |
- <email>axs@g.o</email> |
339 |
- <name>Ian Stakenvicius</name> |
340 |
- </maintainer> |
341 |
- <maintainer type="project"> |
342 |
- <email>sci-mathematics@g.o</email> |
343 |
- <name>Gentoo Mathematics Project</name> |
344 |
- </maintainer> |
345 |
- <upstream> |
346 |
- <remote-id type="sourceforge">snns</remote-id> |
347 |
- </upstream> |
348 |
-</pkgmetadata> |
349 |
|
350 |
diff --git a/sci-mathematics/snns/snns-4.3-r2.ebuild b/sci-mathematics/snns/snns-4.3-r2.ebuild |
351 |
deleted file mode 100644 |
352 |
index 475bb92a24e..00000000000 |
353 |
--- a/sci-mathematics/snns/snns-4.3-r2.ebuild |
354 |
+++ /dev/null |
355 |
@@ -1,123 +0,0 @@ |
356 |
-# Copyright 1999-2018 Gentoo Foundation |
357 |
-# Distributed under the terms of the GNU General Public License v2 |
358 |
- |
359 |
-EAPI=5 |
360 |
-PYTHON_COMPAT=( python2_7 ) |
361 |
-DISTUTILS_OPTIONAL=1 |
362 |
-inherit distutils-r1 eutils |
363 |
- |
364 |
-MY_P="SNNSv${PV}" |
365 |
-DESCRIPTION="Stuttgart Neural Network Simulator" |
366 |
-HOMEPAGE="https://sourceforge.net/projects/snns/" |
367 |
-SRC_URI="http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/${MY_P}.tar.gz |
368 |
- doc? ( http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/SNNSv4.2.Manual.pdf )" |
369 |
- |
370 |
-LICENSE="LGPL-2.1" |
371 |
-KEYWORDS="amd64 ppc x86" |
372 |
-SLOT="0" |
373 |
-IUSE="X doc python" |
374 |
- |
375 |
-RDEPEND="X? ( |
376 |
- x11-libs/libX11 |
377 |
- x11-libs/libXaw3d |
378 |
- x11-libs/libXt |
379 |
- )" |
380 |
-DEPEND="${RDEPEND} |
381 |
- X? ( x11-base/xorg-proto ) |
382 |
- >=sys-devel/bison-1.2.2" |
383 |
- |
384 |
-RDEPEND+=" python? ( ${PYTHON_DEPS} )" |
385 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
386 |
- |
387 |
-S="${WORKDIR}/${MY_P}" |
388 |
- |
389 |
-src_prepare() { |
390 |
- epatch "${FILESDIR}"/4.3-unstrip.patch |
391 |
- epatch "${FILESDIR}"/4.3-bison-version.patch |
392 |
- epatch "${FILESDIR}"/4.2-ldflags.patch |
393 |
- epatch "${FILESDIR}"/4.3-snns-netperf.patch # bug 248322 |
394 |
- |
395 |
- # change all references of Xaw to Xaw3d |
396 |
- cd "${S}"/xgui/sources |
397 |
- for file in *.c; do |
398 |
- sed -e "s:X11/Xaw/:X11/Xaw3d/:g" -i "${file}" |
399 |
- done |
400 |
- |
401 |
- # clean up the dirty dist sources and remove files that apparently |
402 |
- # are not removed by any clean rules |
403 |
- emake clean |
404 |
- rm -Rf "${S}"/{tools,xgui}/bin \ |
405 |
- "${S}"/{Makefile.def,config.h} \ |
406 |
- "${S}"/configuration/config.{guess,log} |
407 |
- |
408 |
- epatch_user |
409 |
- |
410 |
- if use python; then |
411 |
- pushd "${S}"/python > /dev/null || die |
412 |
- distutils-r1_src_prepare |
413 |
- popd > /dev/null || die |
414 |
- fi |
415 |
-} |
416 |
- |
417 |
-src_configure() { |
418 |
- econf --enable-global \ |
419 |
- $(use_with X x) |
420 |
- |
421 |
- if use python; then |
422 |
- pushd python > /dev/null || die |
423 |
- distutils-r1_src_configure |
424 |
- popd > /dev/null || die |
425 |
- fi |
426 |
-} |
427 |
- |
428 |
-src_compile() { |
429 |
- local compileopts=( compile-kernel compile-tools ) |
430 |
- use X && compileopts+=( compile-xgui ) |
431 |
- |
432 |
- # parallel make sometimes fails (phosphan) |
433 |
- # so emake each phase separately (axs) |
434 |
- for tgt in "${compileopts[@]}"; do |
435 |
- emake ${tgt} |
436 |
- done |
437 |
- |
438 |
- if use python; then |
439 |
- pushd python > /dev/null || die |
440 |
- distutils-r1_src_compile |
441 |
- popd > /dev/null || die |
442 |
- fi |
443 |
-} |
444 |
- |
445 |
-src_install() { |
446 |
- pushd "${S}"/tools/sources > /dev/null || die |
447 |
- emake TOOLSBINDIR="${ED}"usr/bin install |
448 |
- popd > /dev/null || die |
449 |
- |
450 |
- if use X; then |
451 |
- newbin xgui/sources/xgui snns |
452 |
- |
453 |
- echo XGUILOADPATH=/usr/share/doc/${PF} > "${T}"/99snns |
454 |
- doenvd "${T}"/99snns |
455 |
- |
456 |
- docompress -x /usr/share/doc/${PF}/{default.cfg,help.hdoc} |
457 |
- insinto /usr/share/doc/${PF} |
458 |
- doins default.cfg help.hdoc |
459 |
- fi |
460 |
- |
461 |
- if use python; then |
462 |
- pushd python > /dev/null || die |
463 |
- distutils-r1_src_install |
464 |
- insinto /usr/share/doc/${PF}/python-examples |
465 |
- doins examples/* |
466 |
- newdoc README README.python |
467 |
- popd > /dev/null || die |
468 |
- fi |
469 |
- |
470 |
- if use doc; then |
471 |
- insinto /usr/share/doc/${PF} |
472 |
- doins "${DISTDIR}"/SNNSv4.2.Manual.pdf |
473 |
- fi |
474 |
- |
475 |
- insinto /usr/share/doc/${PF}/examples |
476 |
- doins examples/* |
477 |
- doman man/man*/* |
478 |
-} |
479 |
|
480 |
diff --git a/sci-mathematics/snns/snns-4.3-r3.ebuild b/sci-mathematics/snns/snns-4.3-r3.ebuild |
481 |
deleted file mode 100644 |
482 |
index 706463b27ba..00000000000 |
483 |
--- a/sci-mathematics/snns/snns-4.3-r3.ebuild |
484 |
+++ /dev/null |
485 |
@@ -1,124 +0,0 @@ |
486 |
-# Copyright 1999-2018 Gentoo Foundation |
487 |
-# Distributed under the terms of the GNU General Public License v2 |
488 |
- |
489 |
-EAPI=6 |
490 |
-PYTHON_COMPAT=( python2_7 ) |
491 |
-DISTUTILS_OPTIONAL=1 |
492 |
-inherit distutils-r1 |
493 |
- |
494 |
-MY_P="SNNSv${PV}" |
495 |
-DESCRIPTION="Stuttgart Neural Network Simulator" |
496 |
-HOMEPAGE="https://sourceforge.net/projects/snns/" |
497 |
-SRC_URI="http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/${MY_P}.tar.gz |
498 |
- doc? ( http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/SNNSv4.2.Manual.pdf )" |
499 |
- |
500 |
-LICENSE="LGPL-2.1" |
501 |
-KEYWORDS="~amd64 ~ppc ~x86" |
502 |
-SLOT="0" |
503 |
-IUSE="X doc python" |
504 |
- |
505 |
-RDEPEND="X? ( |
506 |
- x11-libs/libX11 |
507 |
- x11-libs/libXaw3d |
508 |
- x11-libs/libXt |
509 |
- ) |
510 |
- python? ( ${PYTHON_DEPS} )" |
511 |
-DEPEND="${RDEPEND} |
512 |
- X? ( x11-base/xorg-proto ) |
513 |
- >=sys-devel/bison-1.2.2" |
514 |
- |
515 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
516 |
- |
517 |
-S="${WORKDIR}/${MY_P}" |
518 |
- |
519 |
-src_prepare() { |
520 |
- eapply "${FILESDIR}"/4.3-unstrip.patch |
521 |
- eapply "${FILESDIR}"/4.3-bison-version.patch |
522 |
- eapply "${FILESDIR}"/4.2-ldflags.patch |
523 |
- eapply "${FILESDIR}"/4.3-snns-netperf.patch # bug 248322 |
524 |
- eapply "${FILESDIR}"/4.3-expand-path-strings.patch |
525 |
- |
526 |
- # change all references of Xaw to Xaw3d |
527 |
- cd "${S}"/xgui/sources |
528 |
- for file in *.c; do |
529 |
- sed -e "s:X11/Xaw/:X11/Xaw3d/:g" -i "${file}" |
530 |
- done |
531 |
- |
532 |
- # clean up the dirty dist sources and remove files that apparently |
533 |
- # are not removed by any clean rules |
534 |
- emake clean |
535 |
- rm -Rf "${S}"/{tools,xgui}/bin \ |
536 |
- "${S}"/{Makefile.def,config.h} \ |
537 |
- "${S}"/configuration/config.{guess,log} |
538 |
- |
539 |
- eapply_user |
540 |
- |
541 |
- if use python; then |
542 |
- pushd "${S}"/python > /dev/null || die |
543 |
- distutils-r1_src_prepare |
544 |
- popd > /dev/null || die |
545 |
- fi |
546 |
-} |
547 |
- |
548 |
-src_configure() { |
549 |
- econf --enable-global \ |
550 |
- $(use_with X x) |
551 |
- |
552 |
- if use python; then |
553 |
- pushd python > /dev/null || die |
554 |
- distutils-r1_src_configure |
555 |
- popd > /dev/null || die |
556 |
- fi |
557 |
-} |
558 |
- |
559 |
-src_compile() { |
560 |
- local compileopts=( compile-kernel compile-tools ) |
561 |
- use X && compileopts+=( compile-xgui ) |
562 |
- |
563 |
- # parallel make sometimes fails (phosphan) |
564 |
- # so emake each phase separately (axs) |
565 |
- for tgt in "${compileopts[@]}"; do |
566 |
- emake ${tgt} |
567 |
- done |
568 |
- |
569 |
- if use python; then |
570 |
- pushd python > /dev/null || die |
571 |
- distutils-r1_src_compile |
572 |
- popd > /dev/null || die |
573 |
- fi |
574 |
-} |
575 |
- |
576 |
-src_install() { |
577 |
- pushd "${S}"/tools/sources > /dev/null || die |
578 |
- emake TOOLSBINDIR="${ED}"usr/bin install |
579 |
- popd > /dev/null || die |
580 |
- |
581 |
- if use X; then |
582 |
- newbin xgui/sources/xgui snns |
583 |
- |
584 |
- echo XGUILOADPATH=/usr/share/doc/${PF} > "${T}"/99snns |
585 |
- doenvd "${T}"/99snns |
586 |
- |
587 |
- docompress -x /usr/share/doc/${PF}/{default.cfg,help.hdoc} |
588 |
- insinto /usr/share/doc/${PF} |
589 |
- doins default.cfg help.hdoc |
590 |
- fi |
591 |
- |
592 |
- if use python; then |
593 |
- pushd python > /dev/null || die |
594 |
- distutils-r1_src_install |
595 |
- insinto /usr/share/doc/${PF}/python-examples |
596 |
- doins examples/* |
597 |
- newdoc README README.python |
598 |
- popd > /dev/null || die |
599 |
- fi |
600 |
- |
601 |
- if use doc; then |
602 |
- insinto /usr/share/doc/${PF} |
603 |
- doins "${DISTDIR}"/SNNSv4.2.Manual.pdf |
604 |
- fi |
605 |
- |
606 |
- insinto /usr/share/doc/${PF}/examples |
607 |
- doins examples/* |
608 |
- doman man/man*/* |
609 |
-} |