1 |
commit: faa7a828a790c38627847804f3d5ea1a1c47980f |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 05:59:08 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 05:59:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa7a828 |
7 |
|
8 |
sci-misc/cdfplayer: bump to 12.2.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
sci-misc/cdfplayer/Manifest | 1 + |
14 |
sci-misc/cdfplayer/cdfplayer-12.2.0.ebuild | 92 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 93 insertions(+) |
16 |
|
17 |
diff --git a/sci-misc/cdfplayer/Manifest b/sci-misc/cdfplayer/Manifest |
18 |
index cb91835ca78..43586506a2d 100644 |
19 |
--- a/sci-misc/cdfplayer/Manifest |
20 |
+++ b/sci-misc/cdfplayer/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST CDFPlayer_11.2.0_LINUX.sh 1821479711 BLAKE2B 7d12a94b43fdd60dc6af3d78fe45f85a2aa68752c690de023d4cd0cc5d24f8b091db7846d3732d7618d7df659b982fbcf19543d7d0c0116ddcae7f7b1aa11d88 SHA512 8a9a98ed5dceb18db41e52269dedf2a00ee89015a76eb650b852f8e1c19040918ecfa7594737f2982118c7358eab4d1e85694eecbe059edc963d4bdc8533b470 |
23 |
DIST CDFPlayer_11.3.0_LINUX.sh 1556151070 BLAKE2B 652adda3989bdac10f02c5fc648ded7189e56555bab9d48f75c642a9ca6b0ca70771cae54142f55bc2d19a720a17fad04abd3c7240a114a237dee69e4f8ca303 SHA512 d28939481772e1a2ec6296b5f4d7e98628ccc015c75c084b09a90937525415c6a447111c1488482bf355917ac2ddb8dc154f46b8864d0d001bb7d419cd2f671a |
24 |
+DIST WolframPlayer_12.2.0_LINUX.sh 1003754320 BLAKE2B b37e2500e09543efd5084b6fadd6f5d6d6f7f2b75627fc8cb3819578d41de00a8ba5f529440d64efebabcf9d26a77b51b01969135f02baca851c42811ef521b7 SHA512 dc4449836419dd7abe8590319912b07019a4f2cf542e31759c15bde0055bfc6bebc880fd6ab88809758d5723862bbbe971affa07429a660b728698d24a4c9d20 |
25 |
|
26 |
diff --git a/sci-misc/cdfplayer/cdfplayer-12.2.0.ebuild b/sci-misc/cdfplayer/cdfplayer-12.2.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6120fae9e88 |
29 |
--- /dev/null |
30 |
+++ b/sci-misc/cdfplayer/cdfplayer-12.2.0.ebuild |
31 |
@@ -0,0 +1,92 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit multilib versionator |
38 |
+ |
39 |
+DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)" |
40 |
+SRC_URI="WolframPlayer_12.2.0_LINUX.sh" |
41 |
+HOMEPAGE="http://www.wolfram.com/cdf-player/" |
42 |
+ |
43 |
+LICENSE="WolframCDFPlayer" |
44 |
+KEYWORDS="-* ~amd64 ~x86" |
45 |
+SLOT="0" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RESTRICT="strip mirror bindist fetch" |
49 |
+ |
50 |
+DEPEND="" |
51 |
+ |
52 |
+# this list comes from lsof output |
53 |
+# probably there are still some libraries missing |
54 |
+RDEPEND=" |
55 |
+ x11-libs/libICE |
56 |
+ x11-libs/libSM |
57 |
+ x11-libs/libX11 |
58 |
+ x11-libs/libXau |
59 |
+ x11-libs/libXcursor |
60 |
+ x11-libs/libXdmcp |
61 |
+ x11-libs/libXext |
62 |
+ x11-libs/libXfixes |
63 |
+ x11-libs/libXi |
64 |
+ x11-libs/libXmu |
65 |
+ x11-libs/libXrandr |
66 |
+ x11-libs/libXrender |
67 |
+ x11-libs/libXt |
68 |
+ media-libs/alsa-lib |
69 |
+ dev-libs/expat |
70 |
+ media-libs/fontconfig |
71 |
+ dev-libs/icu |
72 |
+ x11-libs/libxcb |
73 |
+ dev-libs/libxml2 |
74 |
+ sys-libs/ncurses-compat:5 |
75 |
+ media-libs/freetype |
76 |
+" |
77 |
+ |
78 |
+# we need this a few times |
79 |
+MPN="WolframPlayer" |
80 |
+MPV=$(get_version_component_range 1-2) |
81 |
+ |
82 |
+# we might as well list all files in all QA variables... |
83 |
+QA_PREBUILT="opt/*" |
84 |
+ |
85 |
+S=${WORKDIR} |
86 |
+ |
87 |
+src_unpack() { |
88 |
+ /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/${MPN}/${MPV}" "-execdir=${S}/opt/bin" || die |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ local ARCH |
93 |
+ if use amd64; then ARCH='-x86-64'; else ARCH=''; fi |
94 |
+ |
95 |
+ # move all over |
96 |
+ mv "${S}"/opt "${D}"/opt || die |
97 |
+ |
98 |
+ # the autogenerated symlinks point into sandbox, redo |
99 |
+ rm "${D}"/opt/bin/* || die |
100 |
+ dosym ../Wolfram/${MPN}/${MPV}/Executables/wolframplayer opt/bin/wolframplayer |
101 |
+ dosym ../Wolfram/${MPN}/${MPV}/Executables/WolframPlayer opt/bin/WolframPlayer |
102 |
+ |
103 |
+ # fix some embedded paths and install desktop files |
104 |
+ insinto /usr/share/applications |
105 |
+ for filename in $(find "${D}" -name "wolfram-cdf12.desktop") ; do |
106 |
+ echo Fixing "${filename}" |
107 |
+ sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}" |
108 |
+ echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" |
109 |
+ doins "${filename}" |
110 |
+ done |
111 |
+ |
112 |
+ # install a wrapper |
113 |
+ echo '#!/bin/sh' >> ${PN} |
114 |
+ echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/lib/libz.so.1 /opt/Wolfram/${MPN}/${MPV}/Executables/wolframplayer \$*" \ |
115 |
+ >> ${PN} |
116 |
+ dobin ${PN} |
117 |
+} |
118 |
+ |
119 |
+pkg_nofetch() { |
120 |
+ einfo "Sadly Wolfram provides no permanent link to the player files." |
121 |
+ einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from" |
122 |
+ einfo "${HOMEPAGE} and place it into your DISTDIR directory." |
123 |
+} |