Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/adobe-flash/
Date: Tue, 12 Mar 2019 11:00:36
Message-Id: 1552388427.319e3072c2f8f3410757d4b4e370dad169a0ab96.jer@gentoo
1 commit: 319e3072c2f8f3410757d4b4e370dad169a0ab96
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 12 10:49:46 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 12 11:00:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=319e3072
7
8 www-plugins/adobe-flash: Version 32.0.0.156
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 www-plugins/adobe-flash/Manifest | 4 +
14 .../adobe-flash/adobe-flash-32.0.0.156.ebuild | 140 +++++++++++++++++++++
15 2 files changed, 144 insertions(+)
16
17 diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
18 index 2ee18ed5a0a..d32c84e1df7 100644
19 --- a/www-plugins/adobe-flash/Manifest
20 +++ b/www-plugins/adobe-flash/Manifest
21 @@ -2,3 +2,7 @@ DIST adobe-flash-32.0.0.142-npapi.i386.tar.gz 8530350 BLAKE2B 78faf86c16bb5e6eda
22 DIST adobe-flash-32.0.0.142-npapi.x86_64.tar.gz 9047544 BLAKE2B e14cca8120405ec265168b3dfd43ce81c180f68f38dcb59a560115395e169550b2738cbf8821cadf12e1e8b868e6c588295e8926f55747e2c8bddfaa9e1d329d SHA512 047086d43902b3132358ed0c53dde26108bc4e69067945e6194cf5aaaf96f1f01921a8a0a08cd7ac6006bcaee08880a59e46a5c621c6dd6e306af419d65e03e1
23 DIST adobe-flash-32.0.0.142-ppapi.i386.tar.gz 8565686 BLAKE2B 8241352527e58057635581aa1f12c412c690ca5c119c70ff81f5178c0e6f0c3e0c5f5a4ab53a5d5729807d7f9a2c9e2ab4fcd8896cb9399f44996a9d11056c55 SHA512 942e8efc3eaa2674d4b0fbcfe46f50a0ce1a5a5ae87055419d4cea7b710083779b6803271042b4c3ca457a925ede13cc532ac7b8e5f4adfaa9ce932fa9e61417
24 DIST adobe-flash-32.0.0.142-ppapi.x86_64.tar.gz 9482227 BLAKE2B 6b91b802541058e7bc20a120c58d731684c98ce5719c24d48cd2a68307af15dfb399265af49c1f5e559391835a23fc8b1509b4a0c2b228efbc789d9a4f07fb20 SHA512 1ee8994ce485b72fc97967f8c4229a7c688518f3c05238063c493e320927164a3bf225fbdcb064d6502fb9ec2bddfd30857400daf39520d41153e95ae9cb3ef9
25 +DIST adobe-flash-32.0.0.156-npapi.i386.tar.gz 8530759 BLAKE2B 6e405a74fed006078e4a063b88de6740c578554e08bbd1c6ed4549fe4219ab45e3b34ee4b16f86e488debf1d3fedbc1d50c2410ecc0930962f3332e22c004553 SHA512 31ffb59b9249cd38ac75af85d179620335bf91adacd8d6147c3c4890547c6b205d6896bd623b670714b626ffbf5d480ed1126ccb9965046ccae953f06b895a01
26 +DIST adobe-flash-32.0.0.156-npapi.x86_64.tar.gz 9046020 BLAKE2B 8153cf404cfc5fef4b21faf030c8029d61e63dc3869befd9f8aa47ba358ac6d862b3f4cecdda962ff52010c081d7ecbaf205646c070bf127fe99473366bfb2b6 SHA512 2700042619d2fd6f9ba2251da9ecaee70e98f0b7dc810abc1577780d7e8909033e1654a2ac5ef3167478529aa871bba53d19e013f42ffd1c542f8e7d3eb3a389
27 +DIST adobe-flash-32.0.0.156-ppapi.i386.tar.gz 8565766 BLAKE2B 4874972649ad501adb1e983c529d1ffe516638239a4fd86df7854629c75eb96182f745d053906689e8893e60338cf5da991f84a712058c11416ae87b0aa4c60b SHA512 108192003d91bc148f54539f539588772479aaf576d651d3df124ae4ebfab47efe45c63b67395386a96f6d565cd5a6b4ab3a9aa5f3248ef2daf485b6586f1c49
28 +DIST adobe-flash-32.0.0.156-ppapi.x86_64.tar.gz 9479771 BLAKE2B 4c5711ff627bf28493a8f10736694c5b96e4aa07974e8890af7baa25d2d53bc7f761498a7d8f390c4139e856a8bba63c6b1b4e8481b6dcab353bb08f5a14383a SHA512 36dd51657eabf51b995904d19fe87996451dcc15ea8a9444829cd4cbceb7a67c9fe04f550a291607268170bc837c79e1de863dadd1b73a1af90a309548fd3d50
29
30 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.156.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.156.ebuild
31 new file mode 100644
32 index 00000000000..2cc1c70b340
33 --- /dev/null
34 +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.156.ebuild
35 @@ -0,0 +1,140 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +inherit gnome2-utils nsplugins multilib multilib-minimal
41 +
42 +DESCRIPTION="Adobe Flash Player"
43 +HOMEPAGE="
44 + https://www.adobe.com/products/flashplayer.html
45 + https://get.adobe.com/flashplayer/
46 + https://helpx.adobe.com/security/products/flash-player.html
47 +"
48 +
49 +AF_URI="https://fpdownload.adobe.com/pub/flashplayer/pdc/${PV}"
50 +AF_NP_32_URI="${AF_URI}/flash_player_npapi_linux.i386.tar.gz -> ${P}-npapi.i386.tar.gz"
51 +AF_NP_64_URI="${AF_URI}/flash_player_npapi_linux.x86_64.tar.gz -> ${P}-npapi.x86_64.tar.gz"
52 +AF_PP_32_URI="${AF_URI}/flash_player_ppapi_linux.i386.tar.gz -> ${P}-ppapi.i386.tar.gz"
53 +AF_PP_64_URI="${AF_URI}/flash_player_ppapi_linux.x86_64.tar.gz -> ${P}-ppapi.x86_64.tar.gz"
54 +
55 +IUSE="+nsplugin +ppapi"
56 +REQUIRED_USE="
57 + || ( nsplugin ppapi )
58 +"
59 +
60 +SRC_URI="
61 + nsplugin? (
62 + abi_x86_32? ( ${AF_NP_32_URI} )
63 + abi_x86_64? ( ${AF_NP_64_URI} )
64 + )
65 + ppapi? (
66 + abi_x86_32? ( ${AF_PP_32_URI} )
67 + abi_x86_64? ( ${AF_PP_64_URI} )
68 + )
69 +"
70 +SLOT="22"
71 +
72 +KEYWORDS="-* ~amd64 ~x86"
73 +LICENSE="AdobeFlash-11.x"
74 +RESTRICT="strip mirror"
75 +
76 +NPAPI_RDEPEND="
77 + dev-libs/atk[${MULTILIB_USEDEP}]
78 + dev-libs/glib:2[${MULTILIB_USEDEP}]
79 + dev-libs/nspr[${MULTILIB_USEDEP}]
80 + dev-libs/nss[${MULTILIB_USEDEP}]
81 + media-libs/fontconfig[${MULTILIB_USEDEP}]
82 + media-libs/freetype[${MULTILIB_USEDEP}]
83 + >=sys-libs/glibc-2.4
84 + x11-libs/cairo[${MULTILIB_USEDEP}]
85 + x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}]
86 + x11-libs/gtk+:2[${MULTILIB_USEDEP}]
87 + x11-libs/libX11[${MULTILIB_USEDEP}]
88 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
89 + x11-libs/libXext[${MULTILIB_USEDEP}]
90 + x11-libs/libXrender[${MULTILIB_USEDEP}]
91 + x11-libs/libXt[${MULTILIB_USEDEP}]
92 + x11-libs/pango[${MULTILIB_USEDEP}]
93 +"
94 +RDEPEND="
95 + !www-plugins/chrome-binary-plugins[flash(-)]
96 + nsplugin? (
97 + ${NPAPI_RDEPEND}
98 + !www-plugins/adobe-flash:0
99 + )
100 +"
101 +
102 +S="${WORKDIR}"
103 +
104 +# Ignore QA warnings in these closed-source binaries, since we can't fix them:
105 +QA_PREBUILT="usr/*"
106 +
107 +src_unpack() {
108 + local files=( ${A} )
109 +
110 + multilib_src_unpack() {
111 + mkdir -p "${BUILD_DIR}" || die
112 + cd "${BUILD_DIR}" || die
113 +
114 + # we need to filter out the other archive(s)
115 + local other_abi
116 + [[ ${ABI} == amd64 ]] && other_abi=i386 || other_abi=x86_64
117 + unpack ${files[@]//*${other_abi}*/}
118 + }
119 +
120 + multilib_parallel_foreach_abi multilib_src_unpack
121 +}
122 +
123 +multilib_src_install() {
124 + local pkglibdir=lib
125 + [[ -d usr/lib64 ]] && pkglibdir=lib64
126 +
127 + if use nsplugin; then
128 + # PLUGINS_DIR comes from nsplugins.eclass
129 + exeinto /usr/$(get_libdir)/${PLUGINS_DIR}
130 + doexe libflashplayer.so
131 +
132 + if multilib_is_native_abi; then
133 + # No KDE applet, so allow the GTK utility to show up in KDE:
134 + sed \
135 + -i usr/share/applications/flash-player-properties.desktop \
136 + -e "/^NotShowIn=KDE;/d" || die
137 +
138 + # The userland 'flash-player-properties' standalone app:
139 + dobin usr/bin/flash-player-properties
140 +
141 + # Icon and .desktop for 'flash-player-properties'
142 + insinto /usr/share
143 + doins -r usr/share/{icons,applications}
144 + dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \
145 + /usr/share/pixmaps/flash-player-properties.png
146 + fi
147 +
148 + # The magic config file!
149 + insinto "/etc/adobe"
150 + doins "${FILESDIR}/mms.cfg"
151 + fi
152 +
153 + if use ppapi; then
154 + exeinto /usr/$(get_libdir)/chromium/PepperFlash
155 + doexe libpepflashplayer.so
156 + insinto /usr/$(get_libdir)/chromium/PepperFlash
157 + doins manifest.json
158 +
159 + if multilib_is_native_abi; then
160 + dodir /etc/chromium
161 + sed "${FILESDIR}"/pepper-flash-r1 \
162 + -e "s|@FP_LIBDIR@|$(get_libdir)|g" \
163 + -e "s|@FP_PV@|${PV}|g" \
164 + > "${D}"/etc/chromium/pepper-flash \
165 + || die
166 + fi
167 + fi
168 +}
169 +
170 +pkg_postinst() {
171 + gnome2_icon_cache_update
172 +}
173 +pkg_postrm() {
174 + gnome2_icon_cache_update
175 +}