From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1082661-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E1831138335
	for <garchives@archives.gentoo.org>; Wed, 10 Apr 2019 07:46:45 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2496CE09CB;
	Wed, 10 Apr 2019 07:46:45 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id DBA21E09CB
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 Apr 2019 07:46:44 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8034D340952
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 Apr 2019 07:46:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C543F520
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 Apr 2019 07:46:40 +0000 (UTC)
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org>
Message-ID: <1554882394.da16ff2a9aaa445780b25d214421623a46af6fd5.jer@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/adobe-flash/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-plugins/adobe-flash/Manifest www-plugins/adobe-flash/adobe-flash-32.0.0.171.ebuild
X-VCS-Directories: www-plugins/adobe-flash/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: da16ff2a9aaa445780b25d214421623a46af6fd5
X-VCS-Branch: master
Date: Wed, 10 Apr 2019 07:46:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 4b7f2be8-920f-411a-b904-9f5d61e797ba
X-Archives-Hash: fcbc3707b6c5e86a8546236502b38bf7

commit:     da16ff2a9aaa445780b25d214421623a46af6fd5
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 10 07:44:56 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Apr 10 07:46:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da16ff2a

www-plugins/adobe-flash: Version 32.0.0.171

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Bug: https://bugs.gentoo.org/show_bug.cgi?id=683006
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

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

diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index 836a3c09104..df04fe73393 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -2,3 +2,7 @@ DIST adobe-flash-32.0.0.156-npapi.i386.tar.gz 8530759 BLAKE2B 6e405a74fed006078e
 DIST adobe-flash-32.0.0.156-npapi.x86_64.tar.gz 9046020 BLAKE2B 8153cf404cfc5fef4b21faf030c8029d61e63dc3869befd9f8aa47ba358ac6d862b3f4cecdda962ff52010c081d7ecbaf205646c070bf127fe99473366bfb2b6 SHA512 2700042619d2fd6f9ba2251da9ecaee70e98f0b7dc810abc1577780d7e8909033e1654a2ac5ef3167478529aa871bba53d19e013f42ffd1c542f8e7d3eb3a389
 DIST adobe-flash-32.0.0.156-ppapi.i386.tar.gz 8565766 BLAKE2B 4874972649ad501adb1e983c529d1ffe516638239a4fd86df7854629c75eb96182f745d053906689e8893e60338cf5da991f84a712058c11416ae87b0aa4c60b SHA512 108192003d91bc148f54539f539588772479aaf576d651d3df124ae4ebfab47efe45c63b67395386a96f6d565cd5a6b4ab3a9aa5f3248ef2daf485b6586f1c49
 DIST adobe-flash-32.0.0.156-ppapi.x86_64.tar.gz 9479771 BLAKE2B 4c5711ff627bf28493a8f10736694c5b96e4aa07974e8890af7baa25d2d53bc7f761498a7d8f390c4139e856a8bba63c6b1b4e8481b6dcab353bb08f5a14383a SHA512 36dd51657eabf51b995904d19fe87996451dcc15ea8a9444829cd4cbceb7a67c9fe04f550a291607268170bc837c79e1de863dadd1b73a1af90a309548fd3d50
+DIST adobe-flash-32.0.0.171-npapi.i386.tar.gz 8530615 BLAKE2B dce661eabe8c665ac36b892cbcde374605c3d44b0ef644a22854fc625a96623ca2bcf0f191aa539740c7030606cb98ce5389abcd76a436c5bb5cd5d34eb7365f SHA512 c09a57bdd4f015ae27c2ed109d1f2dd879eefc8a851fc51382565540ccebc555bc23430cb64e7ac4041f514ec63adb077ca447a7be29d4c3f3872869636c22e9
+DIST adobe-flash-32.0.0.171-npapi.x86_64.tar.gz 9046293 BLAKE2B 5f35e1b0ee7a4c19ba8c3769159bf5e2b82c9de1bce1eb2097877a5bc63e8f9aab6a416a0439cf91889335f755457373ba9857a9e43b706404ff36a31123a76b SHA512 b6e8c0670a0f5189dc5e82e50c2be227f826068eedda8f025ac44b7d349baad033bb8f80b8018fac186c5d3b7dead679f6a27197f38e3ba1e047c9af190e2f75
+DIST adobe-flash-32.0.0.171-ppapi.i386.tar.gz 8565037 BLAKE2B 7a79b76c2e55ee2f9d1d1b19519ea4416d6a5ab1735f4581ee6604890e83590170528e3a02f2803e71011acf14d996968033ba9ca3ae3124238ccaf9d8d15bc5 SHA512 d7d3e4114d27690b22140e57fc149264e247c87136bb04d84bc2a515468757220261cd70420f4a37c8f6614a6a675d8d8cea8c7f0cdba941846e0e4ed143e940
+DIST adobe-flash-32.0.0.171-ppapi.x86_64.tar.gz 9482109 BLAKE2B ed593b981d4cf49821666d5d9cbe343377a7c5cb6a461bd21af543c6f68809fc740fd132fad561fe94f64a596660ba0bfc29c4c57e621e687ec2e91bf663540b SHA512 45327247ff018e55808e40049b8a593609a4ca94e8c8bade926415fda9d04b88abea07ae3aebe9e3e32fad6319c80a95a941fba43b4d1abc8df2cfa5f368660b

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