summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-plugins/adobe-flash/Manifest4
-rw-r--r--www-plugins/adobe-flash/adobe-flash-27.0.0.159.ebuild140
2 files changed, 144 insertions, 0 deletions
diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index 7a818691941d..199e3214aabe 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -2,3 +2,7 @@ DIST adobe-flash-27.0.0.130-npapi.i386.tar.gz 8511696 SHA256 4615bec6a21822629ce
DIST adobe-flash-27.0.0.130-npapi.x86_64.tar.gz 9024933 SHA256 ecbd2254a68c7b0bb7675babe58cbe1b5f317bd2556ba49776eb3a6cd9526d62 SHA512 2574cd3fb707c8d32e54179bbf900ca47c875be3540c8016fad50f51721d5fc4bcf22b552ae71efdb1e78cc135163d0a2326c9569e49b9da7498eb971deabc78 WHIRLPOOL 1632fdb623fa0be0603d4866fbc4d7a31b76e1b813cbc429e8e81bc31ccc7df8e28a2e8031e6045dd34dc6130ab4821d62fedc6d0e44050ffd485c9749ae1bc0
DIST adobe-flash-27.0.0.130-ppapi.i386.tar.gz 8544908 SHA256 c23a0c1a73872851b4e8879e713331242c0b17c73ccd57a29c17c94f3732920e SHA512 3c6036ebe87cbdca7a3baee8e651cf9e4de7b87600ae8631d516eeb30de8a309c2e2b1e0306a3d1a815a62e9116f0321fd5ece99a2dbacf41d3f350d57ca7079 WHIRLPOOL 700767b7fcf49949df24ac2ab78117703c9598445188cb3c5c8c56d7a3bcc81f6ecaa4ef267c939af7bc56b1b498d547ff7a3c14966f9a483fd01485b8d65cdb
DIST adobe-flash-27.0.0.130-ppapi.x86_64.tar.gz 9462243 SHA256 3a9a860a42770547e0fc3c9f4c6fd6b539c122b0a9ee5bd65c9b9cd25541a752 SHA512 d88b39f4800be6e936adbe44a42cea7fe58fd82d101aeb6ee5d4722cf08e7113d41b57ff289af9ccb4b52dfed077e37a53527201a90c69e2f3fee17fedab0268 WHIRLPOOL aadeae7946dccf19d13bb3660d8ce823b2cc98384e141dcd92942dc4cee5bb34b2a591afef063ff53b6d9b4d4dfb89fa65a8d2ad50b9e4f69c356384f11c0b36
+DIST adobe-flash-27.0.0.159-npapi.i386.tar.gz 8511837 SHA256 3443daf0bb70532e754ed4ffc7090e68f8faf41f2e9fc4663437e20badcc881a SHA512 de5cdb6a3b5b1ea1dc291e0395213bfdd6b8e9dd321ad1bb7deb1994d1252becb3f5510f4351a0ed09844935f5287125ae00abc65800c3a72d684a0c6fd7fc46 WHIRLPOOL 0a3a2cca184b146b1de0644f8491e8b2abd3b32015a3fd359041dfdb66c8035ec29100df4159ee9f47c63f9d9f1231a3b948469dedabbffbccac41f504e0cc8f
+DIST adobe-flash-27.0.0.159-npapi.x86_64.tar.gz 9025182 SHA256 2d5aff35d00b7f443b69ba40f1250ea5cbe5b5cb67520a642a17a602ec3723dc SHA512 4ad6f7ca1ce0d533a20e1edc748a368bac4be8a13b592d4c72d2f048fa9055158a7c89899e8179f59e66b34d98b857a2bc2587b02de986ac4fc16cc2e12b38b3 WHIRLPOOL 8bfd01d3e2566d8c8754c5efbdd218daae163c2ce2192c50b4ce4ac23cc227150704ecfafc3fc77d3ee9b1e10a28cc11a4cbe3eceb0746055a7d57b79d6e1f94
+DIST adobe-flash-27.0.0.159-ppapi.i386.tar.gz 8547073 SHA256 46305f024fcab46ac73bea45637a72384ef3ae2420dcb132a0125aadc267e158 SHA512 2d8c9d8db42022754ccf88f0f676e9964af35a3107707dc9685a09a4270bce4d6926fda9f87e8b7bb5d0a3c33a62e83a30d731891e1bf3e7a5abb3185a555373 WHIRLPOOL b93ab94a0cccbe14dabd9209b6678a58aa9b1569f9fec3324124d93ecaf596d12f1ee1712a32405e5dab0aac4f296aa807e08b298b8e9b955d930b49093073ba
+DIST adobe-flash-27.0.0.159-ppapi.x86_64.tar.gz 9462989 SHA256 5844d563f79ace7dea2c9f1196d63cc8b77c0f5fe5d5b258f2fee3aae4ef8fb4 SHA512 dff4c40cef124278656912997a4772e3b8117ce65074e1e366e0f12d37a8591cd1ca6f52c198feffbc6cb503154a80972c0a7132cfae5ecd06e9d0250a1007a4 WHIRLPOOL 4fee4d1f3e4b150c5fd4cdf0b43622312b656dc5bd9c4965a814b13d4421147c1f6cc7af2514dc1e3b13f65731e799a1c3c24a1d823ab91132ab2262d34c737f
diff --git a/www-plugins/adobe-flash/adobe-flash-27.0.0.159.ebuild b/www-plugins/adobe-flash/adobe-flash-27.0.0.159.ebuild
new file mode 100644
index 000000000000..eb6463c6e194
--- /dev/null
+++ b/www-plugins/adobe-flash/adobe-flash-27.0.0.159.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2017 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
+}