commit:     c3256b599258219d91df7dc38f8af23fa285073c
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 11 08:07:06 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Aug 11 08:09:11 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3256b59

www-plugins/adobe-flash: Version 32.0.0.414

Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 www-plugins/adobe-flash/Manifest                   |   4 +
 .../adobe-flash/adobe-flash-32.0.0.414.ebuild      | 141 +++++++++++++++++++++
 2 files changed, 145 insertions(+)

diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index d49da85ec84..9b1e26521a2 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -2,3 +2,7 @@ DIST adobe-flash-32.0.0.403-npapi.i386.tar.gz 8546310 BLAKE2B 
a1d14625061fa84ee7
 DIST adobe-flash-32.0.0.403-npapi.x86_64.tar.gz 9066221 BLAKE2B 
fbb758becb91ffd0c5700a313586fe17d48962bed7e0f4f6acd2a79f4716fbf47aa742983b7cfa8b9d9ef92ff729cf399fb2e2bf95da72f46f2eb73d2389d796
 SHA512 
a9341be933a237787af63fd2d08ca63a2da7e04069c9304f48ef374d057db314a35594e6e8806c46f7415f28a37697f2ac9aaedb88770de76c49ca43f374b68e
 DIST adobe-flash-32.0.0.403-ppapi.i386.tar.gz 8833086 BLAKE2B 
98d165603fd8991f558b0cd0f11886269d99c1ae5bc4699e6d0413a9cabee0cf98906839766c92ffd75d2e16dad91b36f3c28592340c9bea805ab9f7cffe7b6e
 SHA512 
3b0140e026022a82dd20ed69d440c4a87d252bb19321d6716e493277874d3d3c774f99fd76f20bfbd40c643b7848e7659f369555d215fe1e9974fb614a9deee7
 DIST adobe-flash-32.0.0.403-ppapi.x86_64.tar.gz 9766272 BLAKE2B 
b33d390415fc98c45b784c02e6deb048b489296646a4f2189c2b9ff38c6cb4acd2fa0c62b2c46c1d775fe2f151345b79e89eba9f806a8f4d5b03de1e801b328f
 SHA512 
08e4a4e94353c5b6fb8eda90f2b82214d7d1fa7e0660071f54e6c4fe1f9f0d46018a68bb5d702e4d36398d6944a381dece9e27806a06d494b9ae1d5eba990050
+DIST adobe-flash-32.0.0.414-npapi.i386.tar.gz 8545788 BLAKE2B 
28cb7fa1bcb48234629fc90e9a662a763bf50a319633aca647787399a3a4a6136f577abfe5dcfa06f59f3e28fe23c3052a045374b2377e58b2138b880dd243de
 SHA512 
494f634a1830fd10070ab882589cadd182cb367f1952d642bdc0e2eac7342a517aa00a7a565867b18a9a0fb3574d4d9a74c88c4998d4969751bedba4c4ff643d
+DIST adobe-flash-32.0.0.414-npapi.x86_64.tar.gz 9065354 BLAKE2B 
25e2a6a90a331a24b449211707f71001e966059c5a67d5adb0748876faaea76324723f38dea5fe8931b382fcd6aa8819dbe392e558f36b403c215da8ed183a63
 SHA512 
7ad5703d0aace204f54613304e36eafe9ebc40e6e18be4e8aecbdb828fc4170aa58650723ea62bdbbbac6b712dd86cfa9ebec15bc9110baa18a1cf567d161995
+DIST adobe-flash-32.0.0.414-ppapi.i386.tar.gz 8832512 BLAKE2B 
d84ce37c8c39af8784275bd77038f6dd3dcc0e65949a91bad86c501eab147e3142ad1b2a2fae323554eb101f2309d2b36a424cff96ee214d8f1d85223de804dc
 SHA512 
d2327bd78e5a0305dab1ea4a0ed8de67355944f25621167d111074e46231486c818c0e6777fc158372393632f51e0ef8e7651c258c47961c3826fb5a755d4d1a
+DIST adobe-flash-32.0.0.414-ppapi.x86_64.tar.gz 9764002 BLAKE2B 
444d7a0806c2d0cf3904c5fa4473610cab8f974ff259d2b63c625a1467590c4da3883e24c537cfed195b1e062f36aa331aa1a8ac23106c82812a575f81542b6c
 SHA512 
9938797c88c9380eadb6c16fc4714c226f29702dce470c9c5ab49b33621c20dbf877094a452af6f33c3917a2e82847b454b623bb75aa95087aaeb6f611240bbd

diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.414.ebuild 
b/www-plugins/adobe-flash/adobe-flash-32.0.0.414.ebuild
new file mode 100644
index 00000000000..4bed41bad55
--- /dev/null
+++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.414.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit xdg-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="bindist mirror strip"
+
+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() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to