commit:     86c6b8aa8386fb9e2f8c9d025ddd6731bdb1cbb4
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  9 10:09:41 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Jun  9 10:15:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c6b8aa

www-plugins/adobe-flash: Version 30.0.0.113.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 www-plugins/adobe-flash/Manifest                   |   4 +
 .../adobe-flash/adobe-flash-30.0.0.113.ebuild      | 140 +++++++++++++++++++++
 2 files changed, 144 insertions(+)

diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index c19b5ad78af..5a27a7d7ada 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -2,3 +2,7 @@ DIST adobe-flash-29.0.0.171-npapi.i386.tar.gz 8520030 BLAKE2B 
7a9512dea7dcf769f0
 DIST adobe-flash-29.0.0.171-npapi.x86_64.tar.gz 9036933 BLAKE2B 
11a873b8611327c224f3501e976cd3ce3480a81f306f7175d9e15c6178b2eb195f5c1276d4b84201532f4ac74584420a0f2ec488a159f084bd58c3a433345dec
 SHA512 
0489682989b17686f6de4786f9a7394b5bdd8a7465f624d1682db06b223effb4bf47670abd74b38a7b9e8fd2535660f1fb06435796f1d875001cdc667a8452b4
 DIST adobe-flash-29.0.0.171-ppapi.i386.tar.gz 8554691 BLAKE2B 
4b9c0bd8bfdaa09d7a126a1ab02914322983dd366a3edaeea3ff481569597d38d510dabbc90def1b8b9f480598f891467e7465b8dc5fe67ec556416820f8d156
 SHA512 
efa5898bdbbfc23017b01e5fbee964d1728f22297fb0f29d82f2b02da84a5d0ceb70cc079312fcd4fe77deb112ddf9670ccd475177c33a316d271f4c8b501154
 DIST adobe-flash-29.0.0.171-ppapi.x86_64.tar.gz 9471706 BLAKE2B 
2f054806f3f010b3bdc95166bb359c38e2425560ae6fe5c91b8ce241eeaef00ff29797e36acaa1a6f6e3e8feb37ed7239cdaf8c48a670a2adc5bd146a06b0968
 SHA512 
84e2abee91394781f5b7628d2269bb28a24701d32eeecbe9fbc8233b3f755f3148933fd9513b09f9ac4f6878196ba0bdb08969ad17121666337a684bbff50497
+DIST adobe-flash-30.0.0.113-npapi.i386.tar.gz 8525678 BLAKE2B 
8aba96593370c479929746f63fa4c90c656af0a5413d83622b26a3733c7a865106443052725a45f861f5dc56e83ed6f2c97c9482994852979396735a24cbedb3
 SHA512 
ff56f3a182d85cae4882956034d5bce0e0a80eec34dab0835e8041b9371609b57d361ef67899c8088b4ee0748857a9269f8eb961723b58eabf8386f47d80b9a0
+DIST adobe-flash-30.0.0.113-npapi.x86_64.tar.gz 9045060 BLAKE2B 
b5454860c71c35b84c26700686ee248a7525d292d176032e951351704ef4a732403cedbe711ca52a3d89e397f4f036bc31e46d6e466eefe4b5e54354ba9680b1
 SHA512 
cff833da87d2ae24bd19f3669690c6ce071804e518612c7fd3fd7839bf5881afe57c472f10cb972362598d287f1bc840e1b61a07b6502ff5b916b7c4fb76c647
+DIST adobe-flash-30.0.0.113-ppapi.i386.tar.gz 8562694 BLAKE2B 
7f678bc4eb069fba68fe419bd3109999d880912e1b76a9ffbe25df24e81f083b548383f4c54e944e66e0558f11b0f9672625c676d0f1af85fbe58f7facdc578f
 SHA512 
b7713f9c740884722d0eff75b9874a6a9d253f50a0cbd796be64f03d34fff2c4e955f1e0674d5a910af8d3056811344da923e6d026e6b90829aaf3e2b8bb9fdd
+DIST adobe-flash-30.0.0.113-ppapi.x86_64.tar.gz 9477997 BLAKE2B 
7c3f17ed89471a1e5c2d0bb945fad38f4184bb46b3d0f89d5a523682c84690374c2f1cccd367c913df7cbb7abaa2044e06ee7e96a2fe872632ffc22f9e6d2ae6
 SHA512 
7516d8b8e61038170c4bf282afca12dd6cc51a52520003caee213a49a0458ea94c735963965afd485f70a75a92b65e2439248d364a67e2d63a6f38cb19b7d49c

diff --git a/www-plugins/adobe-flash/adobe-flash-30.0.0.113.ebuild 
b/www-plugins/adobe-flash/adobe-flash-30.0.0.113.ebuild
new file mode 100644
index 00000000000..edde28781c1
--- /dev/null
+++ b/www-plugins/adobe-flash/adobe-flash-30.0.0.113.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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
+}

Reply via email to