www-plugins/adobe-flash: Version 29.0.0.113.
authorJeroen Roovers <jer@gentoo.org>
Tue, 13 Mar 2018 21:36:24 +0000 (22:36 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 13 Mar 2018 21:55:36 +0000 (22:55 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

www-plugins/adobe-flash/Manifest
www-plugins/adobe-flash/adobe-flash-29.0.0.113.ebuild [new file with mode: 0644]

index 421e9e438a6f3d12753efcf9a2d5ae79b4d1b9a9..76ae2acc55248a56b751080fc272ca3d11e106e8 100644 (file)
@@ -2,3 +2,7 @@ DIST adobe-flash-28.0.0.161-npapi.i386.tar.gz 8513055 BLAKE2B fd016ff576f9da47ab
 DIST adobe-flash-28.0.0.161-npapi.x86_64.tar.gz 9031862 BLAKE2B 5978479338450a6ff6df3415698da357a216e39f84c48a83e4544007846590c962a852c9e2c869b5603045c04e64e82ff39cb240b9361652f2a2932b6644a5da SHA512 1ee0eddc64bcd0456836296709e64dad29dd8f89589b1f7f9d685b52cdb2896ac6b4a11274362afec87732d9bd101d1e6927083515ad7243a64672a95cab3423
 DIST adobe-flash-28.0.0.161-ppapi.i386.tar.gz 8548252 BLAKE2B e8701fa13e014a1ef95acea828bb698c70357129f41d137013994535401d35ef1bb84da9128e8b8f045b272ec1e06837b7d2fb14fdd8d25f674a6694062fcf1e SHA512 5c3bdb3111d17e3b444ea6fd8a8a20aa764388c00d09964d90a770a523d655c85d0178051483dd31c1ae26b408327a43aae02c24569c1dad7d21eb5976c11451
 DIST adobe-flash-28.0.0.161-ppapi.x86_64.tar.gz 9466688 BLAKE2B 70a37f855e22028c8d29777a19ea3c6a839dc2d360a3390e8b8583c35d3efd7a12d263cfa62d38fdc52e174e69e4824bad5508bb08cf90ae67711ad99188facf SHA512 96b0b3db0b8c13e420b7a056777c8cbf00b98ea1e1d0e45dc718ca15925f04ccc62206494f1123fb5725bc76f569b3eee83888820868d1f18bcb7cdd7f621776
+DIST adobe-flash-29.0.0.113-npapi.i386.tar.gz 8513691 BLAKE2B 235fd2faf3b7c5d9dd8a3fa0573df770b069cff79687ceae385e02d9ed86fb883b193119c5cbcbb1f6b7ba8d828cdd8dc5a6848e7b3208a0c272433e0c8e386c SHA512 5f99c7015d80e45c661542e09ceb4d0ce357df92954f74c41edeb07220f60bd9bd3e1a113e455a98d66562e49ccec03a637b761544d7f8b844d350023d0258dd
+DIST adobe-flash-29.0.0.113-npapi.x86_64.tar.gz 9031223 BLAKE2B 28968fd8e3a6a84ad88e09a17a1815d77fe157f9185c5329b3e2b67444f8a24fbf2f9ea5f2e62ece59e42c57a90cd82ecab5ac667146d83bae3e005d3dccd6cb SHA512 6d7a62d9cea4a2ca55351656ee8f28cc4f26488bb34d16fd9ea5ac2f6c871d3abe7b9c880b65c1680361d7b3848d8f827e2fc89a8e06214d68461f8b63317d0f
+DIST adobe-flash-29.0.0.113-ppapi.i386.tar.gz 8547827 BLAKE2B bf630bf5ab10428c8e6bb5daf18263808d40c059407edeca870479797209492e745831300171fedbadaa2a6edecc8d22872ceb8e90cfef1dc8bb757eac5c049f SHA512 2394136affe23208471c5ddc1c147be69c98af9ea53e0d2c0e5511aa5fcdb61a931fe1919a858f5f20f497613188a835656568a7129442c517f8b94074650f3f
+DIST adobe-flash-29.0.0.113-ppapi.x86_64.tar.gz 9464970 BLAKE2B accd90b0be5bcf975f2bcef379f201e97e96ec707660ad06343d0c9a25ac229795669a8652304c24c72584700f9041af37b48fea970363b026fa288a7ced715a SHA512 95e67c08a8bc27ed3fdb8f42d8fe466755334827bfd8a42dd0be99bfb21ed0f1f3e1d6ead655cf5e6d8d8767f201aa3134f0691eb285d8beeee6cd7f2a812ac4
diff --git a/www-plugins/adobe-flash/adobe-flash-29.0.0.113.ebuild b/www-plugins/adobe-flash/adobe-flash-29.0.0.113.ebuild
new file mode 100644 (file)
index 0000000..edde287
--- /dev/null
@@ -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
+}