1 |
commit: b80a642876f2a912db1fa095fb3bbc18deb8be5e |
2 |
Author: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 25 16:25:29 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 16:25:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80a6428 |
7 |
|
8 |
sci-misc/cdfplayer: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sci-misc/cdfplayer/Manifest | 1 + |
13 |
sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild | 82 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 83 insertions(+) |
15 |
|
16 |
diff --git a/sci-misc/cdfplayer/Manifest b/sci-misc/cdfplayer/Manifest |
17 |
index a8c35fb..0491ae3 100644 |
18 |
--- a/sci-misc/cdfplayer/Manifest |
19 |
+++ b/sci-misc/cdfplayer/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST CDFPlayer_10.4.0_LINUX.sh 1315941152 SHA256 4c202541762839c766d6f484377e3413de9dd7c70f47484da615572c8e44f4ed SHA512 13205dad6d3a57937b55f41d895e6eef5c7ebf1f416622226cbe97a7de4a39c8d1b5c7424194c2aa4bca9020b52f52ef311af118d810c6065a1275e58d9580a1 WHIRLPOOL 36236338c6ec922a6294da34e5379ba5ecf087b307a484abd79c516804d1db6f859b33a1535a9dce6f1980a51972ec1ceff3b39a6270b9d9797beedabc03a0f3 |
22 |
+DIST CDFPlayer_11.0.1_LINUX.sh 1630401312 SHA256 0f5f89d252481ea7fb49bd6c6c9b0a38956d4f0c32c361d02a543a8582c472e8 SHA512 bf52caa6a495ce78670ab6931e8caa3167121d5193e6839bb745026883f32c536d460faa960a59e593486fbf1a90d1ca51cb8e8a52eedff20e48eb1cb1a80701 WHIRLPOOL 9946110dffe973043dc4d89fd015ebcadfbd6e747b3993059cc811ce7e8f09df37db80daf9a3701cbd09de2331c3e534a20064876eabc256561aeca9fe4357a3 |
23 |
|
24 |
diff --git a/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild b/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..2887ea4 |
27 |
--- /dev/null |
28 |
+++ b/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild |
29 |
@@ -0,0 +1,82 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit versionator |
37 |
+ |
38 |
+DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)" |
39 |
+SRC_URI="CDFPlayer_11.0.1_LINUX.sh" |
40 |
+HOMEPAGE="http://www.wolfram.com/cdf-player/" |
41 |
+ |
42 |
+LICENSE="WolframCDFPlayer" |
43 |
+KEYWORDS="-* ~amd64 ~x86" |
44 |
+SLOT="0" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RESTRICT="strip mirror bindist fetch" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+ |
51 |
+# this list comes from lsof output |
52 |
+# probably there are still some libraries missing |
53 |
+RDEPEND=" |
54 |
+ x11-libs/libICE |
55 |
+ x11-libs/libSM |
56 |
+ x11-libs/libX11 |
57 |
+ x11-libs/libXau |
58 |
+ x11-libs/libXcursor |
59 |
+ x11-libs/libXdmcp |
60 |
+ x11-libs/libXext |
61 |
+ x11-libs/libXfixes |
62 |
+ x11-libs/libXi |
63 |
+ x11-libs/libXmu |
64 |
+ x11-libs/libXrandr |
65 |
+ x11-libs/libXrender |
66 |
+ x11-libs/libXt |
67 |
+ media-libs/alsa-lib |
68 |
+ dev-libs/expat |
69 |
+ media-libs/fontconfig |
70 |
+ dev-libs/icu |
71 |
+ x11-libs/libxcb |
72 |
+ dev-libs/libxml2 |
73 |
+ || ( sys-libs/ncurses:5/5 sys-libs/ncurses:0/5 ) |
74 |
+" |
75 |
+ |
76 |
+# we need this a few times |
77 |
+MPV=$(get_version_component_range 1-2) |
78 |
+ |
79 |
+# we might as well list all files in all QA variables... |
80 |
+QA_PREBUILT="opt/*" |
81 |
+ |
82 |
+S=${WORKDIR} |
83 |
+ |
84 |
+src_unpack() { |
85 |
+ /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/CDFPlayer/${MPV}" "-execdir=${S}/opt/bin" || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ # move all over |
90 |
+ mv "${S}/opt" "${D}/opt" || die |
91 |
+ |
92 |
+ # the autogenerated symlinks point into sandbox, redo |
93 |
+ rm "${D}/opt/bin/"* || die |
94 |
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer |
95 |
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer |
96 |
+ |
97 |
+ # fix some embedded paths and install desktop files |
98 |
+ insinto /usr/share/applications |
99 |
+ for filename in $(find "${D}" -name "wolfram-cdf11.desktop") ; do |
100 |
+ echo Fixing "${filename}" |
101 |
+ sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}" |
102 |
+ echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" |
103 |
+ doins "${filename}" |
104 |
+ done |
105 |
+} |
106 |
+ |
107 |
+pkg_nofetch() { |
108 |
+ einfo "Sadly Wolfram provides no permanent link to the player files." |
109 |
+ einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from" |
110 |
+ einfo "${HOMEPAGE} and place it in ${DISTDIR}" |
111 |
+} |