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, 10 Sep 2019 11:17:42
Message-Id: 1568114256.cd7cc3bf4f1b77dcb49b956b663f511901591008.jer@gentoo
1 commit: cd7cc3bf4f1b77dcb49b956b663f511901591008
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 10 11:15:29 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 10 11:17:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd7cc3bf
7
8 www-plugins/adobe-flash: Version 32.0.0.255
9
10 Package-Manager: Portage-2.3.75, Repoman-2.3.17
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.255.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 8cd40260283..74f781d95a4 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.238-npapi.i386.tar.gz 8537560 BLAKE2B e4a039dcdf329c053f
22 DIST adobe-flash-32.0.0.238-npapi.x86_64.tar.gz 9054187 BLAKE2B d2f50d3add8c70f872039c103099c5a378876c12f3ced4a5f8b539226f82bc0c2bcf181454276479c2ecdc4325d0b36816043dd0dd4f232d9ad7b3d7db702d96 SHA512 b79d073790888d90ef1612fbc104880d762833a8e61fbdb2ed081c20553eb546037577ef766ba529bb8202ee3cbcca0a07675857982e0ebd5884f8ad342f6fba
23 DIST adobe-flash-32.0.0.238-ppapi.i386.tar.gz 8574403 BLAKE2B 8f31ab87dbce433e380d659c6542a497ae47522be8e852b59176ab3e338a9717c826f28d62f607cc0bfe8d2fbea86487891c61671b41c3e395f9d47f8dce68c4 SHA512 386af88ce22730c49db024b37b6ff71ad9642b0cf9844fcff91e53b529928ff9e672414167fe50a09bf815e77184a23b8ba8b4db081970dcafb646e148e95c99
24 DIST adobe-flash-32.0.0.238-ppapi.x86_64.tar.gz 9492227 BLAKE2B 7f6c975056217cedb1b201dd159007b5182fca58999ecdd282a3b99743c721e8bc3c6ba7b28908eb04c57ad30edc0239870935869957c5ae7f9cf377aee78633 SHA512 fd5bde252400e11272d17cd8271d2455934e2565526a0526f05ecfbf141644511302fb05101bb408c5b79612b43627e19958ea4be300981473ca047a782f187a
25 +DIST adobe-flash-32.0.0.255-npapi.i386.tar.gz 8538367 BLAKE2B 2a2a1ee2afe690b78a7ef3ce8af26db823b7299ae46bc66ee6a2d0940262ca6c2b3b42c319321bcf5e91bca2f133d9d1d3faa64637dcb8a5a5fbb26bfb0fee04 SHA512 3f9f42e3eb07b7667e9b0da8582ad3687c1e082cceda34eb855c4b9a9a17b925d0d75eb2e4819fae9138e6b8313165a55fa474a45147fa907fc6286302f4bb88
26 +DIST adobe-flash-32.0.0.255-npapi.x86_64.tar.gz 9053852 BLAKE2B 4305ca7cf9171270162aed537cf8308eb4bcb6d80621a93c4c80af4093c681b84febf7927b9dba0f8b19a6f9237d4be349ef3029892e0d8166f2c59e6b841bcf SHA512 28817f6d3d2f618f750cd56f98ef0bac04e2a35498f1b259f61df1001efa4d0b1f49cd9975c8641fb4bc6c6ef32b97484d5f9ab0095261f58454b3f1d0bab7ec
27 +DIST adobe-flash-32.0.0.255-ppapi.i386.tar.gz 8574530 BLAKE2B ce413404762b43fa020bca9e7e404bdb4a8f3c8f1325824e8aca18aca6ed8256c0995229df2b693f87725869f4a45fe86dfb2624ff07046e16d309dad63fdab8 SHA512 c39377f3aabf5e7cd9838eb848021296968153cde93d50d9bc46205926ebda96bb5048be1ee0fce99d364d74548d57e77096371afe51bbb4cc4c98131169865c
28 +DIST adobe-flash-32.0.0.255-ppapi.x86_64.tar.gz 9491821 BLAKE2B 4d1a03f90413b0183d9560199e24383e252628cf6ca4a96a4da47206503461f00188647f3acb4e3715af62707bc98259654ab7b7a32ddba577fdd54fc388a9a0 SHA512 e17ba6499f823fdd7a11a805abba1655ac8683b292ce198124123ca3e2cf6cf36c5948c01b69fbd6ca7671d06e532983b31e3000a24f27ff75e62776b6b201e4
29
30 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.255.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.255.ebuild
31 new file mode 100644
32 index 00000000000..2cc1c70b340
33 --- /dev/null
34 +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.255.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 +}