From 5d322c211cbd702db3593ee1d0418193df82eaa5 Mon Sep 17 00:00:00 2001 From: Marco Genasci Date: Wed, 9 Jan 2019 19:20:35 +0100 Subject: [PATCH 1/2] www-plugins/adobe-flash: bump to version 32.0.0.114 --- www-plugins/adobe-flash/Manifest | 4 + .../adobe-flash/adobe-flash-32.0.0.114.ebuild | 140 ++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest index 621623fb45d..7feebd23015 100644 --- a/www-plugins/adobe-flash/Manifest +++ b/www-plugins/adobe-flash/Manifest @@ -2,3 +2,7 @@ DIST adobe-flash-32.0.0.101-npapi.i386.tar.gz 8528897 BLAKE2B 13a4160bff61e9f012 DIST adobe-flash-32.0.0.101-npapi.x86_64.tar.gz 9045426 BLAKE2B d6c3decf07f03d8128c89dc82f7500902a349af8013d83237001ebda316ee68745367920f602683601cb1b02bd20456bffa1f84fe547be74cfac321c7ecb79b3 SHA512 b71ded348cd5fe58785e72c8f0feeb4730482874c9485cbbdcaa61c2a0e93ab565405d72ae4cbf0899f23eaa42e5854c576fbe465477f06e7abf46fa037598a8 DIST adobe-flash-32.0.0.101-ppapi.i386.tar.gz 8563433 BLAKE2B 7665b460fb57174e0222263b06fe8a8e953794644f3b918e0e8e4350acb8413312060af1ff8e8f0007373fd06b26ba2f6e7ff010baacefabc1b8130f20b8f84a SHA512 7d4f34677d389404e97b86ea84a9a97d5a01c02f3bf47cbd2f4c2da5e239d04b01f78f2c5d17011c50324f384f99a93935cc3458264bc3691da6c4d136868155 DIST adobe-flash-32.0.0.101-ppapi.x86_64.tar.gz 9482471 BLAKE2B 3d164f7f8421c304940bad797ee04b3417c6fe57ee16641b0c78275a980707c7bbb9f369923f96451739932660e3b2cb4d12edc0da5e2e5896a6a2c371a75b8e SHA512 39c96bc54c21c9d125daedce1a67b516dad17fdae8ac48cd8e2ac9a7bc3e6e22a34eaafe8234e998e3c9610641d5ede2a0e33f94471aa6812941d54b1f6e2f3f +DIST adobe-flash-32.0.0.114-npapi.i386.tar.gz 8530200 BLAKE2B b069569484424ec5b92c62e72aecf1c7475df713e92e765a4cca2258807490b03c725abf00e8ae6a7b5b2808671f11bc40d293a6595e35bcbc81fbe6525fe66b SHA512 da6eae6879e04bc6e3fc5398fb0721061a1940f623bcd43d7deee57ad5f046a9c756b8432682940c837ff33fc2a3a2284aacec90c74e595164f3a889519ed0e1 +DIST adobe-flash-32.0.0.114-npapi.x86_64.tar.gz 9045986 BLAKE2B b496311016dc6b0f4912a8c5c8cd929a1b32d87300a13a90675bb9626689baccf98f56d2ce5619eda50c278b6e52c29a2ce9a08166cd48330d56034e09b65673 SHA512 41b20377570fe0ec0609b0f39432dc06114e40d97ecb791ad97928028984c4bc5a6b7b68fd14bc754f5c316842661056f716ff1c224029e8b46e4bd2a00744e5 +DIST adobe-flash-32.0.0.114-ppapi.i386.tar.gz 8564095 BLAKE2B e4b9f531b199d932a8041812eb7d7409efe3db39e74f8feb928e25006a4b62bde8690faef137c729a1972ed50e8182440a1e6638b3f00856cbcb502c8d337254 SHA512 7b18dff8adc2ca16ef46ac9281df840a76aaa36daa353b7233c2a2df756c603c78cbc4bb03a7abec48f4235cee8a630ae3435443dc82940c8696bb7a4fa1b787 +DIST adobe-flash-32.0.0.114-ppapi.x86_64.tar.gz 9482535 BLAKE2B 8f3c6cfd3ddcd1d099d7893e45c432229516bb6853abdd0774e9a29bc567e635f431a5635e6c8090d2a794d8541a2ca6382af2f8fe555331cd19d30abbc2fe2a SHA512 4d6d8dc9430e6008a945bcafcd3c4c796f5b7620d1f3bbf0c14ad4c7f151b6cf2a434184b14d061eb53c7f0cfbe10121a747624a8f6ffbec2e7b58a23e097a8a diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild new file mode 100644 index 00000000000..43c2833801f --- /dev/null +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2-utils nsplugins multilib multilib-minimal + +DESCRIPTION="Adobe Flash Player" +HOMEPAGE=" + https://www.adobe.com/products/flashplayer.html + https://get.adobe.com/flashplayer/ + https://helpx.adobe.com/security/products/flash-player.html +" + +AF_URI="https://fpdownload.adobe.com/pub/flashplayer/pdc/${PV}" +AF_NP_32_URI="${AF_URI}/flash_player_npapi_linux.i386.tar.gz -> ${P}-npapi.i386.tar.gz" +AF_NP_64_URI="${AF_URI}/flash_player_npapi_linux.x86_64.tar.gz -> ${P}-npapi.x86_64.tar.gz" +AF_PP_32_URI="${AF_URI}/flash_player_ppapi_linux.i386.tar.gz -> ${P}-ppapi.i386.tar.gz" +AF_PP_64_URI="${AF_URI}/flash_player_ppapi_linux.x86_64.tar.gz -> ${P}-ppapi.x86_64.tar.gz" + +IUSE="+nsplugin +ppapi" +REQUIRED_USE=" + || ( nsplugin ppapi ) +" + +SRC_URI=" + nsplugin? ( + abi_x86_32? ( ${AF_NP_32_URI} ) + abi_x86_64? ( ${AF_NP_64_URI} ) + ) + ppapi? ( + abi_x86_32? ( ${AF_PP_32_URI} ) + abi_x86_64? ( ${AF_PP_64_URI} ) + ) +" +SLOT="22" + +KEYWORDS="-* amd64 x86" +LICENSE="AdobeFlash-11.x" +RESTRICT="strip mirror" + +NPAPI_RDEPEND=" + dev-libs/atk[${MULTILIB_USEDEP}] + dev-libs/glib:2[${MULTILIB_USEDEP}] + dev-libs/nspr[${MULTILIB_USEDEP}] + dev-libs/nss[${MULTILIB_USEDEP}] + media-libs/fontconfig[${MULTILIB_USEDEP}] + media-libs/freetype[${MULTILIB_USEDEP}] + >=sys-libs/glibc-2.4 + x11-libs/cairo[${MULTILIB_USEDEP}] + x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] + x11-libs/gtk+:2[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + x11-libs/libXrender[${MULTILIB_USEDEP}] + x11-libs/libXt[${MULTILIB_USEDEP}] + x11-libs/pango[${MULTILIB_USEDEP}] +" +RDEPEND=" + !www-plugins/chrome-binary-plugins[flash(-)] + nsplugin? ( + ${NPAPI_RDEPEND} + !www-plugins/adobe-flash:0 + ) +" + +S="${WORKDIR}" + +# Ignore QA warnings in these closed-source binaries, since we can't fix them: +QA_PREBUILT="usr/*" + +src_unpack() { + local files=( ${A} ) + + multilib_src_unpack() { + mkdir -p "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + # we need to filter out the other archive(s) + local other_abi + [[ ${ABI} == amd64 ]] && other_abi=i386 || other_abi=x86_64 + unpack ${files[@]//*${other_abi}*/} + } + + multilib_parallel_foreach_abi multilib_src_unpack +} + +multilib_src_install() { + local pkglibdir=lib + [[ -d usr/lib64 ]] && pkglibdir=lib64 + + if use nsplugin; then + # PLUGINS_DIR comes from nsplugins.eclass + exeinto /usr/$(get_libdir)/${PLUGINS_DIR} + doexe libflashplayer.so + + if multilib_is_native_abi; then + # No KDE applet, so allow the GTK utility to show up in KDE: + sed \ + -i usr/share/applications/flash-player-properties.desktop \ + -e "/^NotShowIn=KDE;/d" || die + + # The userland 'flash-player-properties' standalone app: + dobin usr/bin/flash-player-properties + + # Icon and .desktop for 'flash-player-properties' + insinto /usr/share + doins -r usr/share/{icons,applications} + dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \ + /usr/share/pixmaps/flash-player-properties.png + fi + + # The magic config file! + insinto "/etc/adobe" + doins "${FILESDIR}/mms.cfg" + fi + + if use ppapi; then + exeinto /usr/$(get_libdir)/chromium/PepperFlash + doexe libpepflashplayer.so + insinto /usr/$(get_libdir)/chromium/PepperFlash + doins manifest.json + + if multilib_is_native_abi; then + dodir /etc/chromium + sed "${FILESDIR}"/pepper-flash-r1 \ + -e "s|@FP_LIBDIR@|$(get_libdir)|g" \ + -e "s|@FP_PV@|${PV}|g" \ + > "${D}"/etc/chromium/pepper-flash \ + || die + fi + fi +} + +pkg_postinst() { + gnome2_icon_cache_update +} +pkg_postrm() { + gnome2_icon_cache_update +} -- 2.19.2