www-plugins/adobe-flash: Version 32.0.0.314
authorJeroen Roovers <jer@gentoo.org>
Tue, 14 Jan 2020 10:21:36 +0000 (11:21 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 14 Jan 2020 10:23:07 +0000 (11:23 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
www-plugins/adobe-flash/Manifest
www-plugins/adobe-flash/adobe-flash-32.0.0.314.ebuild [new file with mode: 0644]

index 95d361d89b657f323c8c48568d4a4d046d9fbe9e..6bbcc41829faf5e733e384bad0e3467c38fe160c 100644 (file)
@@ -2,3 +2,7 @@ DIST adobe-flash-32.0.0.303-npapi.i386.tar.gz 8537265 BLAKE2B 24f3ea4a7d1149c1ac
 DIST adobe-flash-32.0.0.303-npapi.x86_64.tar.gz 9242954 BLAKE2B 8bd71bffa24753dbd6e0d2177459b30bfbd12d43e4b19162427c08a2f7cf8caa71adc9857b40712553c8073caa660069ed32cd949f91ac07d68763b0e8d549eb SHA512 ee949dfe75eedf0f6e42fbce8d4c9e24f0133a74c339b4f0aae819698a1463907ef124e569dc1fb5994922b6b32d260c293de647b31c56076fcec75d69f4c6a7
 DIST adobe-flash-32.0.0.303-ppapi.i386.tar.gz 8574350 BLAKE2B 710b1188c70687bd8c71483e53a260ee140c8539b85be03e0d0b46c44c51499c5138c5dc39a79c803dabf299f58d889d3e2fd3527c0780293deb127e299e5a2c SHA512 cc829f851b16ee5226e90d3208769598d9835ca3948de0a7a0eee96e03fd00cdfdeeaee4ca0fc82d26e873e71084b77922541c7fbf72118351911f53d573ce4a
 DIST adobe-flash-32.0.0.303-ppapi.x86_64.tar.gz 9491810 BLAKE2B f0ab131045e486c3fe5f1c637277818afe92a2d9495cf477a8e7e8a2f3628cac0b0909e8561cf1879e4e6d0283be83a0b3e2a331cc23f5fa8cc96d76557b1b22 SHA512 a9ce0135a2f0a806a6f20a1f9d279cc9b5c56e739e61adc1237211621e51c5f7fb43fcf128159cf0110070a59712f432c327f2e94f8827caf84a22a5123eb2c8
+DIST adobe-flash-32.0.0.314-npapi.i386.tar.gz 8537211 BLAKE2B 3c16d10039d921659c67c203449258f27f65837f13acfffa8b4b6c73d3543e9bb7f233bdb5ea00cb9bbfdecd3d0505d945a2a5bf151868d5c7e1a5f261c4a015 SHA512 8271fc0062c2fb838c9fb0e6ae5e2cbdd9b314cd1b82304ca88a98151f02be9d67936aa43b7b207a020423240238b501b7ae869eb8470904871cc626ebe07b2d
+DIST adobe-flash-32.0.0.314-npapi.x86_64.tar.gz 9243290 BLAKE2B 86929bdda23d8b747a7c229cb13fa8a2eadcb6df392dea04a6d7db79d4e785b0a24dbaa730e0d1d3eacaa74d8c36da2a0632d20b938a02b8733ca7fc7953a00f SHA512 1d75b37d5f097f91ac1eac44293cb97728c6e50505dcb75e55135b79cb94929908616d51aed34697bf59dc46ffe9b49c2d24bd817c1ee720c0e34390fc6e4678
+DIST adobe-flash-32.0.0.314-ppapi.i386.tar.gz 8574115 BLAKE2B a36ae83bc7cbad7cb1b0828edbce3552a29abc86c13116792b2a3909a80047e9fd1617cdd0136d57b98f86597fa37ca488f85bd7c190c88caa200c36b2c71d6a SHA512 ec2cf8273273f5cdefd800c1555995de2d5ccfc5abd83a7eafa72679a00dab8e283c8bbce35a7e52b20c5d2a7199f2dc33333d8714725b3a74c22c2e8be77b71
+DIST adobe-flash-32.0.0.314-ppapi.x86_64.tar.gz 9491851 BLAKE2B 4fcea8b6101ed634e7952234ffa826503a07085fb26405d2d9bc5f4a8bdd7af36d03f2fac9e19d9186e543d2f5f7fb6b655160ec595c6dc7cdc1514bfc96b98e SHA512 a032db1edc05b8b60c7fbb98af20e55925839a41da2c2d41202f6c9c7c1dc866f15c7908f2049d10a39b52794ba7c82c35cb6a31157040b6cdfdc146c10e9fea
diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.314.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.314.ebuild
new file mode 100644 (file)
index 0000000..4bed41b
--- /dev/null
@@ -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
+}