Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: licenses/, sci-mathematics/scilab-bin/
Date: Tue, 11 Jan 2022 19:00:15
Message-Id: 1641927583.d016c223d9e994ce2b650a48dd78b9e4089e2725.andrewammerlaan@gentoo
1 commit: d016c223d9e994ce2b650a48dd78b9e4089e2725
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 11 18:55:05 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 11 18:59:43 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d016c223
7
8 sci-mathematics/scilab-bin: add version 6.1.1
9
10 I officially give up on making a non-bin ebuild. There are several problems:
11
12 1. The java dependencies are extremely difficult because of packaging systems
13 that portage does not support (gralde, maven etc). We can hack around this
14 as we did in dev-java/lucene::sci, but that is *a lot* of work, for a lot of
15 dependencies that has to be redone on each version bump.
16 We can solve this problem by getting the pre-compiled java dependencies from
17 https://github.com/scilab/scilab-prerequirements. However....
18
19 2. Scilab requires versions of libraries that we do not package any more in
20 ::gentoo (e.g. hdf5). And adding and maintaining ebuilds for those old libraries
21 is too much work.
22
23 3. If we take *only* the java stuff from scilab/scilab-prerequirements, build
24 fails (likely incompatibility with certain versions of some non-java libraries,
25 see 2.)
26
27 4. If we take *all* of scilab/scilab-prerequirements build still fails (with
28 a different error this time).
29
30 5. The amount of scilab dependencies that are being last-rited and I therefore
31 have to move to ::science to keep the dependencies resolving is increasing.
32 Scilab is the number 1 cause of ::science breaking at the moment.
33
34 Long story short, please enjoy this pre-compiled binary ebuild that actually
35 works and will save us all a lot of headache.
36
37 Closes: https://bugs.gentoo.org/237572
38 Closes: https://bugs.gentoo.org/691272
39 Closes: https://github.com/gentoo/sci/issues/879
40 Closes: https://github.com/gentoo/sci/issues/774
41 Package-Manager: Portage-3.0.30, Repoman-3.0.3
42 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
43
44 licenses/jing | 85 ++++++++
45 licenses/sun-bcla-jhall | 234 +++++++++++++++++++++
46 sci-mathematics/scilab-bin/metadata.xml | 15 ++
47 sci-mathematics/scilab-bin/scilab-bin-6.1.1.ebuild | 78 +++++++
48 4 files changed, 412 insertions(+)
49
50 diff --git a/licenses/jing b/licenses/jing
51 new file mode 100644
52 index 000000000..0833c55c8
53 --- /dev/null
54 +++ b/licenses/jing
55 @@ -0,0 +1,85 @@
56 +<html xmlns="http://www.w3.org/1999/xhtml">
57 +<head>
58 +<title>Jing Copying Conditions</title>
59 +</head>
60 +
61 +<body>
62 +<h1>Jing Copying Conditions</h1>
63 +
64 +<p>Copyright (c) 2001-2003 Thai Open Source Software Center Ltd<br />
65 +All rights reserved.</p>
66 +
67 +<p>Redistribution and use in source and binary forms, with or without
68 +modification, are permitted provided that the following conditions are
69 +met:</p>
70 +
71 +<ul>
72 + <li>Redistributions of source code must retain the above copyright
73 + notice, this list of conditions and the following disclaimer.</li>
74 +
75 + <li>Redistributions in binary form must reproduce the above copyright
76 + notice, this list of conditions and the following disclaimer in
77 + the documentation and/or other materials provided with the
78 + distribution.</li>
79 +
80 + <li>Neither the name of the Thai Open Source Software Center Ltd nor
81 + the names of its contributors may be used to endorse or promote
82 + products derived from this software without specific prior written
83 + permission.</li>
84 +</ul>
85 +
86 +<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
87 +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
88 +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
89 +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
90 +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
91 +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
92 +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
93 +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
94 +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
95 +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
96 +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
97 +
98 +<h2>Third-party JARs</h2>
99 +
100 +<p>This distribution includes some additional JAR files, which have
101 +their own copying conditions:</p>
102 +
103 +<dl>
104 +
105 +<dt><code>saxon.jar</code></dt>
106 +
107 +<dd>Comes from the <a href="http://saxon.sourceforge.net/">Saxon</a>
108 +6.5.2 distribution and is covered by these <a
109 +href="http://saxon.sourceforge.net/saxon6.5.2/conditions.html">conditions</a></dd>
110 +
111 +<dt><code>xercesImpl.jar</code></dt>
112 +<dt><code>xml-apis.jar</code></dt>
113 +<dd>Come from the <a href="http://xml.apache.org/xerces2-j/">Xerces-J</a> 2.4.0
114 +distribution and are covered by the <a href="xerces.copying.txt">Apache
115 +Software License</a></dd>
116 +
117 +<dt><code>isorelax.jar</code></dt>
118 +<dd>Comes from <a href="http://sourceforge.net/projects/iso-relax/">ISO RELAX</a>
119 +2003/01/08 distribution and is covered by the following license:
120 +
121 +<p>Copyright (c) 2001-2002, SourceForge ISO-RELAX Project (ASAMI Tomoharu, Daisuke
122 +Okajima, Kohsuke Kawaguchi, and MURATA Makoto)</p>
123 +
124 +<p>Permission is hereby granted, free of charge, to any person obtaining a copy of
125 +this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,
126 +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
127 +Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
128 +
129 +<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
130 +
131 +<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR
132 +A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
133 +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
134 +</dd>
135 +
136 +</dl>
137 +
138 +</body>
139 +
140 +</html>
141
142 diff --git a/licenses/sun-bcla-jhall b/licenses/sun-bcla-jhall
143 new file mode 100644
144 index 000000000..5dfad9d6e
145 --- /dev/null
146 +++ b/licenses/sun-bcla-jhall
147 @@ -0,0 +1,234 @@
148 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head>
149 + <meta http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1"><title></title>
150 +
151 + <meta name="GENERATOR" content="StarOffice 6.0 (Solaris Sparc)">
152 + <meta name="AUTHOR" content="douglass hall">
153 + <meta name="CREATED" content="20010118;13284400">
154 + <meta name="CHANGED" content="20030905;13512000"></head>
155 +
156 +<body lang="en-US">
157 +<p align="center"><font size="4">Sun Microsystems, Inc.</font> <br><font size="4">Binary
158 +Code License Agreement</font></p>
159 +<p>READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL
160 +LICENSE TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE
161 +OPENING THE SOFTWARE MEDIA PACKAGE.á BY OPENING THE SOFTWARE
162 +MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENT.á IF YOU
163 +ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR ACCEPTANCE
164 +OF THESE TERMS BY SELECTING THE "ACCEPT" BUTTON AT THE END
165 +OF THIS AGREEMENT.á IF YOU DO NOT AGREE TO ALL THESE TERMS,
166 +PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A
167 +REFUND OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE
168 +"DECLINE" BUTTON AT THE END OF THIS AGREEMENT.
169 +</p>
170 +<p><b>1.á LICENSE TO USE.</b>á Sun grants you a
171 +non-exclusive and non-transferable license for the internal use only
172 +of the accompanying software and documentation and any error
173 +corrections provided by Sun (collectively "Software"), by
174 +the number of users and the class of computer hardware for which the
175 +corresponding fee has been paid.
176 +</p>
177 +<p><b>2.á RESTRICTIONS.á</b> Software is confidential and
178 +copyrighted. Title to Software and all associated intellectual
179 +property rights is retained by Sun and/or its licensors.á Except
180 +as specifically authorized in any Supplemental License Terms, you may
181 +not make copies of Software, other than a single copy of Software for
182 +archival purposes.á Unless enforcement is prohibited by
183 +applicable law, you may not modify, decompile, or reverse engineer
184 +Software.á You acknowledge that Software is not designed,
185 +licensed or intended for use in the design, construction, operation
186 +or maintenance of any nuclear facility.á Sun disclaims any
187 +express or implied warranty of fitness for such uses.á No right,
188 +title or interest in or to any trademark, service mark, logo or trade
189 +name of Sun or its licensors is granted under this Agreement.
190 +</p>
191 +<p><b>3. LIMITED WARRANTY.</b>á Sun warrants to you that for a
192 +period of ninety (90) days from the date of purchase, as evidenced by
193 +a copy of the receipt, the media on which Software is furnished (if
194 +any) will be free of defects in materials and workmanship under
195 +normal use.á Except for the foregoing, Software is provided "AS
196 +IS".á Your exclusive remedy and Sun's entire liability
197 +under this limited warranty will be at Sun's option to replace
198 +Software media or refund the fee paid for Software.
199 +</p>
200 +<p><b>4.á DISCLAIMER OF WARRANTY.á</b> UNLESS SPECIFIED IN
201 +THIS AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS
202 +AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
203 +FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED,
204 +EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
205 +INVALID.
206 +</p>
207 +<p><b>5.á LIMITATION OF LIABILITY.</b>á TO THE EXTENT NOT
208 +PROHIBITED BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
209 +FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
210 +CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED
211 +REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO
212 +THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED
213 +OF THE POSSIBILITY OF SUCH DAMAGES.á In no event will Sun's
214 +liability to you, whether in contract, tort (including negligence),
215 +or otherwise, exceed the amount paid by you for Software under this
216 +Agreement.á The foregoing limitations will apply even if the
217 +above stated warranty fails of its essential purpose.
218 +</p>
219 +<p><b>6.á Termination.</b>á This Agreement is effective
220 +until terminated.á You may terminate this Agreement at any time
221 +by destroying all copies of Software.á This Agreement will
222 +terminate immediately without notice from Sun if you fail to comply
223 +with any provision of this Agreement.á Upon Termination, you
224 +must destroy all copies of Software.
225 +</p>
226 +<p><b>7. Export Regulations.</b> All Software and technical data
227 +delivered under this Agreement are subject to US export control laws
228 +and may be subject to export or import regulations in other
229 +countries.á You agree to comply strictly with all such laws and
230 +regulations and acknowledge that you have the responsibility to
231 +obtain such licenses to export, re-export, or import as may be
232 +required after delivery to you.
233 +</p>
234 +<p><b>8.áá U.S. Government Restricted Rights.á</b> If
235 +Software is being acquired by or on behalf of the U.S. Government or
236 +by a U.S. Government prime contractor or subcontractor (at any tier),
237 +then the Government's rights in Software and accompanying
238 +documentation will be only as set forth in this Agreement; this is in
239 +accordance with 48 CFR 227.7201 through 227.7202-4 (for Department of
240 +Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212 (for
241 +non-DOD acquisitions).
242 +</p>
243 +<p><b>9.á Governing Law.</b>á Any action related to this
244 +Agreement will be governed by California law and controlling U.S.
245 +federal law.á No choice of law rules of any jurisdiction will
246 +apply.
247 +</p>
248 +<p><b>10.á Severability.</b> If any provision of this Agreement
249 +is held to be unenforceable, this Agreement will remain in effect
250 +with the provision omitted, unless omission would frustrate the
251 +intent of the parties, in which case this Agreement will immediately
252 +terminate.
253 +</p>
254 +<p><b>11.á Integration.</b>á This Agreement is the entire
255 +agreement between you and Sun relating to its subject matter.á
256 +It supersedes all prior or contemporaneous oral or written
257 +communications, proposals, representations and warranties and
258 +prevails over any conflicting or additional terms of any quote,
259 +order, acknowledgment, or other communication between the parties
260 +relating to its subject matter during the term of this Agreement.á
261 +No modification of this Agreement will be binding, unless in writing
262 +and signed by an authorized representative of each party.
263 +</p>
264 +<p align="center" style="margin-bottom: 0cm;"><font size="4"><font color="#000000">JAVAHELP</font>(TM)<font color="#000000"><font size="2" style="font-size: 9pt;">
265 +</font>VERSION 2.0</font></font><br><font size="4">SUPPLEMENTAL LICENSE
266 +TERMS</font></p>
267 +<p align="center" style="margin-bottom: 0cm;"><br>
268 +</p>
269 +<p>These supplemental license terms ("Supplemental Terms")
270 +add to or modify the terms of the Binary Code License Agreement
271 +(collectively, the "Agreement"). Capitalized terms not
272 +defined in these Supplemental Terms shall have the same meanings
273 +ascribed to them in the Agreement. These Supplemental Terms shall
274 +supersede any inconsistent or conflicting terms in the Agreement, or
275 +in any license contained within the Software.
276 +</p>
277 +<p style="margin-bottom: 0.51cm;"><font color="#000000"><b>1. Software
278 +Internal Use and Development License Grant.</b> Subject to the terms
279 +and conditions of this Agreement, including, but not limited to
280 +Section 4 (Java(TM) Technology Restrictions) of these Supplemental
281 +Terms, Sun grants you a non-exclusive, non-transferable, limited
282 +license to reproduce internally and use internally the binary form of
283 +the Software complete and unmodified for the sole purpose of
284 +designing, developing and testing your Java applets and applications
285 +intended to run on the Java platform ("Programs"). </font>
286 +</p>
287 +<p style="margin-bottom: 0.51cm;"><font color="#000000"><b>2. License
288 +to Distribute Software.</b>á In addition to the license granted
289 +in Section 1 (Software Internal Use and Development License Grant) of
290 +these Supplemental Terms, subject to the terms and conditions of this
291 +Agreement, including but not limited to Section 4 (Java Technology
292 +Restrictions), Sun grants you a non-exclusive, non-transferable,
293 +limited license to reproduce and distribute the Software in binary
294 +form only, provided that you (i) distribute the Software complete and
295 +unmodified and only bundled as part of your Programs, (ii) do not
296 +distribute additional software intended to replace any component(s)
297 +of the Software, (iii) do not remove or alter any proprietary legends
298 +or notices contained in the Software, (iv) only distribute the
299 +Software subject to a license agreement that protects Sun's interests
300 +consistent with the terms contained in this Agreement, and (v) agree
301 +to defend and indemnify Sun and its licensors from and against any
302 +damages, costs, liabilities, settlement amounts and/or expenses
303 +(including attorneys' fees) incurred in connection with any claim,
304 +lawsuit or action by any third party that arises or results from the
305 +use or distribution of any and all Programs and/or Software. </font>
306 +</p>
307 +<p style="margin-bottom: 0.51cm;"><font color="#000000"><b>3. License
308 +to Distribute Redistributables.</b>á In addition to the license
309 +granted in Section 1 (Software Internal Use and Development License
310 +Grant) of these Supplemental Terms, subject to the terms and
311 +conditions of this Agreement, including but not limited to Section 3
312 +(Java Technology Restrictions) of these Supplemental Terms, Sun
313 +grants you a non-exclusive, non-transferable, limited license to
314 +reproduce and distribute those files specifically identified as
315 +redistributable in the Software "README" file
316 +("Redistributables") provided that: (i) you distribute the
317 +Redistributables complete and unmodified (unless otherwise specified
318 +in the applicable README file), and only bundled as part of your
319 +Programs, (ii) you do not distribute additional software intended to
320 +supersede any component(s) of the Redistributables, (iii) you do not
321 +remove or alter any proprietary legends or notices contained in or on
322 +the Redistributables, (iv) you only distribute the Redistributables
323 +pursuant to a license agreement that protects Sun's interests
324 +consistent with the terms contained in the Agreement, and (v) you
325 +agree to defend and indemnify Sun and its licensors from and against
326 +any damages, costs, liabilities, settlement amounts and/or expenses
327 +(including attorneys' fees) incurred in connection with any claim,
328 +lawsuit or action by any third party that arises or results from the
329 +use or distribution of any and all Programs and/or Software. </font>
330 +</p>
331 +<p style="margin-bottom: 0.51cm;"><b><font color="#000000">4. Java
332 +Techn</font>ology Restrictions.</b> You may not modify the Java
333 +Platform Interface ("JPI", identified as classes contained
334 +within the "java" package or any subpackages of the "java"
335 +package), by creating additional classes within the JPI or otherwise
336 +causing the addition to or modification of the classes in the JPI.á
337 +In the event that you create an additional class and associated
338 +API(s) which (i) extends the functionality of the Java platform, and
339 +(ii) is exposed to third party software developers for the purpose of
340 +developing additional software which invokes such additional API, you
341 +must promptly publish broadly an accurate specification for such API
342 +for free use by all developers. You may not create, or authorize your
343 +licensees to create, additional classes, interfaces, or subpackages
344 +that are in any way identified as "java", "javax",
345 +"sun" or similar convention as specified by Sun in any
346 +naming convention designation.
347 +</p>
348 +<p style="margin-bottom: 0.51cm;"><b>5. Java Runtime Availability.</b>á
349 +Refer to the appropriate version of the Java Runtime Environment
350 +binary code license (currently located at
351 +http://www.java.sun.com/jdk/index.html) for the availability of
352 +runtime code which may be distributed with Java applets and
353 +applications.
354 +</p>
355 +<p style="margin-bottom: 0.51cm;"><b>6. Trademarks and Logos.</b> You
356 +acknowledge and agree as between you and Sun that Sun owns the SUN,
357 +SOLARIS, JAVA, JINI, FORTE, and iPLANET trademarks and all SUN,
358 +SOLARIS, JAVA, JINI, FORTE, and iPLANET-related trademarks, service
359 +marks, logos and other brand designations ("Sun Marks"),
360 +and you agree to comply with the Sun Trademark and Logo Usage
361 +Requirements currently located at
362 +http://www.sun.com/policies/trademarks. Any use you make of the Sun
363 +Marks inures to Sun's benefit.
364 +</p>
365 +<p style="margin-bottom: 0.51cm;"><b>7. Source Code.</b> Software may
366 +contain source code that is provided solely for reference purposes
367 +pursuant to the terms of this Agreement. Source code may not be
368 +redistributed unless expressly provided for in this Agreement. Some
369 +source code may contain alternative license terms that apply only to
370 +that source code file.</p>
371 +<p style="margin-bottom: 0.51cm;"><b>8. Termination for Infringement.</b>á
372 +Either party may terminate this Agreement immediately should any
373 +Software become, or in either party's opinion be likely to become,
374 +the subject of a claim of infringement of any intellectual property
375 +right.
376 +</p>
377 +<p style="margin-bottom: 0.51cm;"><font face="Thorndale"><font color="#000000">For
378 +inquiries please contact: Sun Microsystems, Inc. 4150 Network Circle,
379 +Santa Clara, California 95054.</font></font> <br><i>(LFI#135834/Form
380 +ID#011801)</i></p>
381 +</body></html>
382 \ No newline at end of file
383
384 diff --git a/sci-mathematics/scilab-bin/metadata.xml b/sci-mathematics/scilab-bin/metadata.xml
385 new file mode 100644
386 index 000000000..dc2f8c0b5
387 --- /dev/null
388 +++ b/sci-mathematics/scilab-bin/metadata.xml
389 @@ -0,0 +1,15 @@
390 +<?xml version="1.0" encoding="UTF-8"?>
391 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
392 +<pkgmetadata>
393 + <maintainer type="project">
394 + <email>sci-mathematics@g.o</email>
395 + <name>Gentoo Mathematics Project</name>
396 + </maintainer>
397 + <longdescription lang="en">
398 + Scilab is a matrix-based scientific software package. Scilab contains
399 + hundreds of built-in mathematical functions, rich data structures
400 + (including polynomials, rationals,linear systems, lists, etc...) and
401 + comes with a number of specific toolboxes for control, signal
402 + processing, ...
403 + </longdescription>
404 +</pkgmetadata>
405
406 diff --git a/sci-mathematics/scilab-bin/scilab-bin-6.1.1.ebuild b/sci-mathematics/scilab-bin/scilab-bin-6.1.1.ebuild
407 new file mode 100644
408 index 000000000..07b7da8ee
409 --- /dev/null
410 +++ b/sci-mathematics/scilab-bin/scilab-bin-6.1.1.ebuild
411 @@ -0,0 +1,78 @@
412 +# Copyright 1999-2022 Gentoo Authors
413 +# Distributed under the terms of the GNU General Public License v2
414 +
415 +EAPI=8
416 +
417 +inherit xdg
418 +
419 +MY_PN="${PN//-bin}"
420 +MY_P="${MY_PN}-${PV}"
421 +
422 +DESCRIPTION="Scientific software package for numerical computations"
423 +HOMEPAGE="https://www.scilab.org/"
424 +SRC_URI="https://www.scilab.org/download/${PV}/${MY_P}.bin.linux-x86_64.tar.gz"
425 +S="${WORKDIR}/${P//-bin}"
426 +
427 +LICENSE="GPL-2 Apache-2.0 sun-bcla-jhall jing MPL-1.0 MIT"
428 +SLOT="0"
429 +KEYWORDS="-* ~amd64"
430 +
431 +# Bundled dependencies not packaged in ::gentoo
432 +# sci-libs/hdf5[cxx]:0/9
433 +# libgluegen.so (in ::sci)
434 +# libjogl_desktop.so (in ::sci)
435 +# libOpenXLSX.so (in ::sci)
436 +#
437 +# Bundled dependencies in ::gentoo
438 +# dev-lang/tcl
439 +# dev-libs/openssl:0/1.1
440 +# dev-libs/newt
441 +# dev-libs/libpcre
442 +# net-misc/curl
443 +# sci-libs/amd
444 +# sci-libs/arpack
445 +# sci-libs/camd
446 +# sci-libs/ccolamd
447 +# sci-libs/cholmod
448 +# sci-libs/colamd
449 +# sci-libs/fftw:3.0/3
450 +# sci-libs/lapack
451 +# sci-libs/matio
452 +# sci-libs/openblas
453 +# sci-libs/umfpack
454 +
455 +RDEPEND="
456 + sys-libs/ncurses-compat
457 + virtual/jre:1.8
458 +"
459 +
460 +QA_PREBUILT=( "opt/${MY_PN}/*" )
461 +
462 +src_prepare() {
463 + default
464 + local SCILAB_HOME="/opt/${MY_PN}"
465 + # fix the .pc file to reflect the dirs where we are installing stuff
466 + sed -i -e "/^prefix=/c prefix=${SCILAB_HOME}" lib/pkgconfig/scilab.pc || die
467 +
468 + # move appdata to metainfo
469 + mv share/appdata share/metainfo || die
470 +}
471 +
472 +src_install() {
473 + local SCILAB_HOME="/opt/${MY_PN}"
474 + dodir "${SCILAB_HOME}"
475 +
476 + # make convenience symlinks in PATH
477 + for file in bin/*; do
478 + dosym "../${MY_PN}/${file}" "/opt/${file}"
479 + done
480 +
481 + # copy all the things
482 + cp -r "${S}/"* "${ED}/${SCILAB_HOME}" || die
483 +
484 + # move out dekstop, icons etc
485 + dodir /usr/share
486 + mv "${ED}/${SCILAB_HOME}/share/"{metainfo,applications,icons,locale,mime} "${ED}/usr/share/" || die
487 + dodir /usr/lib64/pkgconfig
488 + mv "${ED}/${SCILAB_HOME}/lib/pkgconfig/scilab.pc" "${ED}/usr/lib64/pkgconfig/" || die
489 +}