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