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, 13 Oct 2020 11:06:43
Message-Id: 1602587196.a95ded58cbfdbf803ea39e203c73b5f9e5698b12.jer@gentoo
1 commit: a95ded58cbfdbf803ea39e203c73b5f9e5698b12
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 13 11:04:45 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 13 11:06:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a95ded58
7
8 www-plugins/adobe-flash: Version 32.0.0.445
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
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.445.ebuild | 141 +++++++++++++++++++++
15 2 files changed, 145 insertions(+)
16
17 diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
18 index 63b485b100f..430b88b7baa 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.433-npapi.i386.tar.gz 8546752 BLAKE2B cd1426ebee07aa4bc8
22 DIST adobe-flash-32.0.0.433-npapi.x86_64.tar.gz 9065643 BLAKE2B bff399e80686511b51fe3da1bff2cf9e7182f116d729da641aa3c82b888745ae7730a598ea572c7f0ebbb703fb79940359c9d3e256142b3a6c8d230c07a80b66 SHA512 536b23a664365ace908372a2dabe393cce4779ad76efe588ebbeafbd80e83cc96f4850033f9e1d530bfdf4c4330e9cfe5cd315a5547febc6ba9b5df97ddad03f
23 DIST adobe-flash-32.0.0.433-ppapi.i386.tar.gz 8833417 BLAKE2B b02c3c34817eb63398a3ca92607abae5efe0c89382f69c67db7c0b70c59c0495cac93687320399b897642002df3bec4d670327948de9385423991f70ae216b9a SHA512 5111ec3e652748f6d1ef4a0419d33468e11b73b6ebf71c55b3f1396a98467e6e70224c485f83ef328601126171c60cf315c8d5a082dbaea1b67aaf0d7bd86744
24 DIST adobe-flash-32.0.0.433-ppapi.x86_64.tar.gz 9764004 BLAKE2B ea25d9a1130b8a0929764e99ffeaf2fe02c51d1233370ef9044bd4c29b3d5267ca1f7c21f562ede6074b0746ead80d2e7ca000cb818f407402ede2921508f118 SHA512 106347f55d57ba63934b8c6cb91fa22b52e538e7e1776e57d31f58d31ef6972f42f08833ef9cd518eeabe7f2cdb71c4b4351ecb11bd3e2bdc9bcd11374e53b3e
25 +DIST adobe-flash-32.0.0.445-npapi.i386.tar.gz 8546864 BLAKE2B 10f585753cac9f23234a31aa816deac823c987cba5d8765295827c77df747785117f6d942796ebfcc25a7cee3717c000979d0aa3fc99c360704857e86d878f67 SHA512 986a259381b1055c18c5299b2082c374e7cbd0c0a0a3f8822f54f3c309d82fa64995156e0dad63b2456d312147d0c08ec9713bdeeb59b797d06b438a722ab2f3
26 +DIST adobe-flash-32.0.0.445-npapi.x86_64.tar.gz 9066116 BLAKE2B d83bd5bc5b41ebdafb64e16e23b3bc8857f72d85145639564a9bd12d82f1c72927a905911ed12fad0b882069e8bfe0cc496255d70e2a397ed7d286a0ec80a368 SHA512 0d1b0d533674c9c7b2ea4e089cf82645345732be5e255dcf1ea181587f48c3013b7956b88cfd2a24aebbf31540e316c13a87d8633546b9dc3243dc6e166657be
27 +DIST adobe-flash-32.0.0.445-ppapi.i386.tar.gz 8833013 BLAKE2B 63b38440d0c91d0e15c464945ed10004ebfb28d5cad7180e818641aa8c7e77dd3f5387027b3dbe494264c65e4520967af9ad0bfd73d954b1b4dfe95c2889f9e9 SHA512 78b45c4d9f9aba131927eee2a56f1cbc9128e5abd4273f07ff6102a31b6c032b9cfdd73a163f47a7ba5bbe02a2d84a81fcd0e43fff5d8602b3a237b330745c5e
28 +DIST adobe-flash-32.0.0.445-ppapi.x86_64.tar.gz 9764163 BLAKE2B 4f9d4053e5f6df78caebacb3d6d7198692cd1101f3504970e5105a56d8177ed1ea3697f57cfe5026df2a1d81b4406e90063dc4238c661311c1f28dbb2565bd93 SHA512 1d0522045b8ccba6a0b798f76e88a8dee7af6bd835901c3b49bac379706f070c683f24d0024609c2bab18ea22feca9d48802cde32c52621ad342cc4a2c33f210
29
30 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.445.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.445.ebuild
31 new file mode 100644
32 index 00000000000..4bed41bad55
33 --- /dev/null
34 +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.445.ebuild
35 @@ -0,0 +1,141 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +inherit xdg-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="bindist mirror strip"
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 + xdg_icon_cache_update
172 +}
173 +
174 +pkg_postrm() {
175 + xdg_icon_cache_update
176 +}