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: Thu, 14 Nov 2019 10:59:37
Message-Id: 1573729170.84731df8380253a5bc30db07ff140f3427f52934.jer@gentoo
1 commit: 84731df8380253a5bc30db07ff140f3427f52934
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 14 10:58:20 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 14 10:59:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84731df8
7
8 www-plugins/adobe-flash: Version 32.0.0.293
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.18
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.293.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 efc049fedce..5b35350d3bc 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.270-npapi.i386.tar.gz 8537431 BLAKE2B 807148ed3b307dfaac
22 DIST adobe-flash-32.0.0.270-npapi.x86_64.tar.gz 9053678 BLAKE2B ad4a4d89c0da9cedcfa30d8175e1e66c4e01f338fb708b2bcaf19671d624fcc222222c6315ebabf7dc524ab3b4c540a5f8f4237e0b5dcab2d3f472bb8abe6c70 SHA512 b7170a28a271d2080824727d1e2500633cef6798d38a4937656de8be99e7829a6fd8033491abe874c74c913336ab19dc013329aa51511c5a4ca9c31574b72ccf
23 DIST adobe-flash-32.0.0.270-ppapi.i386.tar.gz 8574381 BLAKE2B 83e5f472e296bb32a27ff3de273fa5b81811488b7caf574b64840910ff76b85d9860e44c952539a105ec3706a7e278fc8d3a943a74c03c329be1a974ad4bb14d SHA512 6c283b5d73f78689b465cf2302f3516059d82a0dc4542e21994dc9ff775fb8a993bd40d883919a620462b47866b38740da8f778a6c8e0b7b074fa72570d27ec2
24 DIST adobe-flash-32.0.0.270-ppapi.x86_64.tar.gz 9491644 BLAKE2B 11f0af7a9f08072cf9e6014e5f567aa29bd6d061a5f19907563944270ce41dcdfc296ea996d165ed579acfa792e6207191e8bc4a3e4ec035187942289badab23 SHA512 6245f03e72a06e912ca8cf514f7a6cec1aee1dfc1f26208ac0c8dcf60939253320cfe565de9470a64cc0a2a0cc271cdb21e9c24a4b4669ec746252e9a1fbe6a1
25 +DIST adobe-flash-32.0.0.293-npapi.i386.tar.gz 8537294 BLAKE2B f9df95e6ca0536ee6f8d49f069964522ed168243ba7304cab47205d9232c52667f6fe876ca009d76f98252319cf4c0c6ae74c771bb626ebf16996afbdf337355 SHA512 593921299b10d61cb03a2e6a22e64deea4e466a60d0f4b7291d93371ec342825fcb8078cfb85bcd4fac68616d0820ea1dcfab2bcb6f279fbe8b7da8582867e48
26 +DIST adobe-flash-32.0.0.293-npapi.x86_64.tar.gz 9245618 BLAKE2B d76dff6fff671b2f8a71ff28be53ff05dadd47517fb0b9d669991bf70f84c590fea71998902fee9d1bf3908c9233d3946f6b2d156af89c2c01f8d431b71d8a23 SHA512 3c35d667aa4e0801b3596048ae9ebf0dd3d2572764ab92bf2c78b04ce5db588445d96c490d7cd59fa399a7c71d7d6eb7cc143164ffd96a4587908884cfd30322
27 +DIST adobe-flash-32.0.0.293-ppapi.i386.tar.gz 8574626 BLAKE2B 807675f133ceae1ace0009a3047098eba3d088413496b405c3834d6479c7c715aad12a869d125dcb4bad7058c652604b437c5cc1880b98730114905a7bd8a998 SHA512 b1810d756606f5dd5e46c50446ad0961bae93cf4d66bfa5e542292e056213f0e59fa2a45741cc18c2d7f8bf61ccd7dc87c8cba5fb5cb13beec7f42d63742881c
28 +DIST adobe-flash-32.0.0.293-ppapi.x86_64.tar.gz 9491735 BLAKE2B 9d1ccaa06a152fa5a6ded4fb227287a9169f6c68ab492ed140c1981151bf5e690321793f4f943c51d75a1e822013be48cdfd8f88b6298e3ce732763aa4e1a6c1 SHA512 0eba2558a877da356d45ba9e25e308e70b93adcf6bb34f5c42661ca1b2734df945eb1bbf6f9c802984891dd6b47e562fdec7755f72dcb305e9750d6bc0fd0e95
29
30 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.293.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.293.ebuild
31 new file mode 100644
32 index 00000000000..07169b6d9ce
33 --- /dev/null
34 +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.293.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="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 + gnome2_icon_cache_update
172 +}
173 +pkg_postrm() {
174 + gnome2_icon_cache_update
175 +}