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