Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/cdfplayer/
Date: Wed, 21 Mar 2018 12:23:16
Message-Id: 1521634961.776771a1244fd1594ca1f378ec5846565c7eed4d.grozin@gentoo
1 commit: 776771a1244fd1594ca1f378ec5846565c7eed4d
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 21 12:22:41 2018 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 21 12:22:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=776771a1
7
8 sci-misc/cdfplayer: bump to 11.3.0
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 sci-misc/cdfplayer/Manifest | 1 +
13 sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild | 94 ++++++++++++++++++++++++++++++
14 2 files changed, 95 insertions(+)
15
16 diff --git a/sci-misc/cdfplayer/Manifest b/sci-misc/cdfplayer/Manifest
17 index f9700eccf68..2a68544f07c 100644
18 --- a/sci-misc/cdfplayer/Manifest
19 +++ b/sci-misc/cdfplayer/Manifest
20 @@ -1 +1,2 @@
21 DIST CDFPlayer_11.2.0_LINUX.sh 1821479711 BLAKE2B 7d12a94b43fdd60dc6af3d78fe45f85a2aa68752c690de023d4cd0cc5d24f8b091db7846d3732d7618d7df659b982fbcf19543d7d0c0116ddcae7f7b1aa11d88 SHA512 8a9a98ed5dceb18db41e52269dedf2a00ee89015a76eb650b852f8e1c19040918ecfa7594737f2982118c7358eab4d1e85694eecbe059edc963d4bdc8533b470
22 +DIST CDFPlayer_11.3.0_LINUX.sh 1556151072 BLAKE2B a5067933400ec20fdf9bc0fb17dc592745beac42cc2a0968dc633ff967f1566831dc7df02bd7f97ea4e46314fa00db5c7b041c266a245b61ac7d189b4ad7fa8d SHA512 62e648e36fd0debff13755671f95e9fae7c1c8ab684b5d0ff2ec53555afa48a4cee5414b3c047024b1354ccb86a843f0ebf4dccd4f390da7aba61d7d5fab56b0
23
24 diff --git a/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild b/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild
25 new file mode 100644
26 index 00000000000..48a91ccdd74
27 --- /dev/null
28 +++ b/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild
29 @@ -0,0 +1,94 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit multilib versionator
36 +
37 +DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)"
38 +SRC_URI="CDFPlayer_11.3.0_LINUX.sh"
39 +HOMEPAGE="http://www.wolfram.com/cdf-player/"
40 +
41 +LICENSE="WolframCDFPlayer"
42 +KEYWORDS="-* ~amd64 ~x86"
43 +SLOT="0"
44 +IUSE=""
45 +
46 +RESTRICT="strip mirror bindist fetch"
47 +
48 +DEPEND=""
49 +
50 +# this list comes from lsof output
51 +# probably there are still some libraries missing
52 +RDEPEND="
53 + x11-libs/libICE
54 + x11-libs/libSM
55 + x11-libs/libX11
56 + x11-libs/libXau
57 + x11-libs/libXcursor
58 + x11-libs/libXdmcp
59 + x11-libs/libXext
60 + x11-libs/libXfixes
61 + x11-libs/libXi
62 + x11-libs/libXmu
63 + x11-libs/libXrandr
64 + x11-libs/libXrender
65 + x11-libs/libXt
66 + media-libs/alsa-lib
67 + dev-libs/expat
68 + media-libs/fontconfig
69 + dev-libs/icu
70 + x11-libs/libxcb
71 + dev-libs/libxml2
72 + sys-libs/ncurses:5/5
73 + media-libs/freetype
74 +"
75 +
76 +# we need this a few times
77 +MPN="CDFPlayer"
78 +MPV=$(get_version_component_range 1-2)
79 +
80 +# we might as well list all files in all QA variables...
81 +QA_PREBUILT="opt/*"
82 +
83 +S=${WORKDIR}
84 +
85 +src_unpack() {
86 + /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/${MPN}/${MPV}" "-execdir=${S}/opt/bin" || die
87 +}
88 +
89 +src_install() {
90 + local ARCH
91 + if use amd64; then ARCH='-x86-64'; else ARCH=''; fi
92 +
93 + # move all over
94 + mv "${S}"/opt "${D}"/opt || die
95 +
96 + # the autogenerated symlinks point into sandbox, redo
97 + rm "${D}"/opt/bin/* || die
98 + dosym ../Wolfram/${MPN}/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer
99 + dosym ../Wolfram/${MPN}/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer
100 + rm "${D}"/opt/Wolfram/${MPN}/${MPV}/Executables/wolframscript
101 + dosym ../SystemFiles/Kernel/Binaries/Linux${ARCH}/wolframscript /opt/Wolfram/${MPN}/${MPV}/Executables/wolframscript
102 +
103 + # fix some embedded paths and install desktop files
104 + insinto /usr/share/applications
105 + for filename in $(find "${D}" -name "wolfram-cdf11.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/wolframcdfplayer \$*" \
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 in ${DISTDIR}"
123 +}