From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 145EA1382C5 for ; Wed, 21 Mar 2018 12:23:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9693E095C; Wed, 21 Mar 2018 12:23:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3786E095C for ; Wed, 21 Mar 2018 12:23:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2DB14335C06 for ; Wed, 21 Mar 2018 12:23:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5FF4D240 for ; Wed, 21 Mar 2018 12:23:11 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1521634961.776771a1244fd1594ca1f378ec5846565c7eed4d.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/cdfplayer/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-misc/cdfplayer/Manifest sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild X-VCS-Directories: sci-misc/cdfplayer/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 776771a1244fd1594ca1f378ec5846565c7eed4d X-VCS-Branch: master Date: Wed, 21 Mar 2018 12:23:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b832667a-99be-4d53-8fa0-1f7a87bd3dac X-Archives-Hash: 54668988681e52c5639a90a9538bd903 commit: 776771a1244fd1594ca1f378ec5846565c7eed4d Author: Andrey Grozin gentoo org> AuthorDate: Wed Mar 21 12:22:41 2018 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Wed Mar 21 12:22:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=776771a1 sci-misc/cdfplayer: bump to 11.3.0 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sci-misc/cdfplayer/Manifest | 1 + sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild | 94 ++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/sci-misc/cdfplayer/Manifest b/sci-misc/cdfplayer/Manifest index f9700eccf68..2a68544f07c 100644 --- a/sci-misc/cdfplayer/Manifest +++ b/sci-misc/cdfplayer/Manifest @@ -1 +1,2 @@ DIST CDFPlayer_11.2.0_LINUX.sh 1821479711 BLAKE2B 7d12a94b43fdd60dc6af3d78fe45f85a2aa68752c690de023d4cd0cc5d24f8b091db7846d3732d7618d7df659b982fbcf19543d7d0c0116ddcae7f7b1aa11d88 SHA512 8a9a98ed5dceb18db41e52269dedf2a00ee89015a76eb650b852f8e1c19040918ecfa7594737f2982118c7358eab4d1e85694eecbe059edc963d4bdc8533b470 +DIST CDFPlayer_11.3.0_LINUX.sh 1556151072 BLAKE2B a5067933400ec20fdf9bc0fb17dc592745beac42cc2a0968dc633ff967f1566831dc7df02bd7f97ea4e46314fa00db5c7b041c266a245b61ac7d189b4ad7fa8d SHA512 62e648e36fd0debff13755671f95e9fae7c1c8ab684b5d0ff2ec53555afa48a4cee5414b3c047024b1354ccb86a843f0ebf4dccd4f390da7aba61d7d5fab56b0 diff --git a/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild b/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild new file mode 100644 index 00000000000..48a91ccdd74 --- /dev/null +++ b/sci-misc/cdfplayer/cdfplayer-11.3.0.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib versionator + +DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)" +SRC_URI="CDFPlayer_11.3.0_LINUX.sh" +HOMEPAGE="http://www.wolfram.com/cdf-player/" + +LICENSE="WolframCDFPlayer" +KEYWORDS="-* ~amd64 ~x86" +SLOT="0" +IUSE="" + +RESTRICT="strip mirror bindist fetch" + +DEPEND="" + +# this list comes from lsof output +# probably there are still some libraries missing +RDEPEND=" + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXcursor + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXt + media-libs/alsa-lib + dev-libs/expat + media-libs/fontconfig + dev-libs/icu + x11-libs/libxcb + dev-libs/libxml2 + sys-libs/ncurses:5/5 + media-libs/freetype +" + +# we need this a few times +MPN="CDFPlayer" +MPV=$(get_version_component_range 1-2) + +# we might as well list all files in all QA variables... +QA_PREBUILT="opt/*" + +S=${WORKDIR} + +src_unpack() { + /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/${MPN}/${MPV}" "-execdir=${S}/opt/bin" || die +} + +src_install() { + local ARCH + if use amd64; then ARCH='-x86-64'; else ARCH=''; fi + + # move all over + mv "${S}"/opt "${D}"/opt || die + + # the autogenerated symlinks point into sandbox, redo + rm "${D}"/opt/bin/* || die + dosym ../Wolfram/${MPN}/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer + dosym ../Wolfram/${MPN}/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer + rm "${D}"/opt/Wolfram/${MPN}/${MPV}/Executables/wolframscript + dosym ../SystemFiles/Kernel/Binaries/Linux${ARCH}/wolframscript /opt/Wolfram/${MPN}/${MPV}/Executables/wolframscript + + # fix some embedded paths and install desktop files + insinto /usr/share/applications + for filename in $(find "${D}" -name "wolfram-cdf11.desktop") ; do + echo Fixing "${filename}" + sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}" + echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" + doins "${filename}" + done + + # install a wrapper + echo '#!/bin/sh' >> ${PN} + echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/lib/libz.so.1 /opt/Wolfram/${MPN}/${MPV}/Executables/wolframcdfplayer \$*" \ + >> ${PN} + dobin ${PN} +} + +pkg_nofetch() { + einfo "Sadly Wolfram provides no permanent link to the player files." + einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from" + einfo "${HOMEPAGE} and place it in ${DISTDIR}" +}