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, 10 Jan 2019 15:54:16
Message-Id: 1547135643.332d5e56b5cb9c492ae20629dc3521a0037ad2bc.jer@gentoo
1 commit: 332d5e56b5cb9c492ae20629dc3521a0037ad2bc
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 10 15:51:19 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 10 15:54:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=332d5e56
7
8 www-plugins/adobe-flash: Version 32.0.0.114
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Bug: https://bugs.gentoo.org/675018
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.114.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 621623fb45d..7feebd23015 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.101-npapi.i386.tar.gz 8528897 BLAKE2B 13a4160bff61e9f012
23 DIST adobe-flash-32.0.0.101-npapi.x86_64.tar.gz 9045426 BLAKE2B d6c3decf07f03d8128c89dc82f7500902a349af8013d83237001ebda316ee68745367920f602683601cb1b02bd20456bffa1f84fe547be74cfac321c7ecb79b3 SHA512 b71ded348cd5fe58785e72c8f0feeb4730482874c9485cbbdcaa61c2a0e93ab565405d72ae4cbf0899f23eaa42e5854c576fbe465477f06e7abf46fa037598a8
24 DIST adobe-flash-32.0.0.101-ppapi.i386.tar.gz 8563433 BLAKE2B 7665b460fb57174e0222263b06fe8a8e953794644f3b918e0e8e4350acb8413312060af1ff8e8f0007373fd06b26ba2f6e7ff010baacefabc1b8130f20b8f84a SHA512 7d4f34677d389404e97b86ea84a9a97d5a01c02f3bf47cbd2f4c2da5e239d04b01f78f2c5d17011c50324f384f99a93935cc3458264bc3691da6c4d136868155
25 DIST adobe-flash-32.0.0.101-ppapi.x86_64.tar.gz 9482471 BLAKE2B 3d164f7f8421c304940bad797ee04b3417c6fe57ee16641b0c78275a980707c7bbb9f369923f96451739932660e3b2cb4d12edc0da5e2e5896a6a2c371a75b8e SHA512 39c96bc54c21c9d125daedce1a67b516dad17fdae8ac48cd8e2ac9a7bc3e6e22a34eaafe8234e998e3c9610641d5ede2a0e33f94471aa6812941d54b1f6e2f3f
26 +DIST adobe-flash-32.0.0.114-npapi.i386.tar.gz 8530200 BLAKE2B b069569484424ec5b92c62e72aecf1c7475df713e92e765a4cca2258807490b03c725abf00e8ae6a7b5b2808671f11bc40d293a6595e35bcbc81fbe6525fe66b SHA512 da6eae6879e04bc6e3fc5398fb0721061a1940f623bcd43d7deee57ad5f046a9c756b8432682940c837ff33fc2a3a2284aacec90c74e595164f3a889519ed0e1
27 +DIST adobe-flash-32.0.0.114-npapi.x86_64.tar.gz 9045986 BLAKE2B b496311016dc6b0f4912a8c5c8cd929a1b32d87300a13a90675bb9626689baccf98f56d2ce5619eda50c278b6e52c29a2ce9a08166cd48330d56034e09b65673 SHA512 41b20377570fe0ec0609b0f39432dc06114e40d97ecb791ad97928028984c4bc5a6b7b68fd14bc754f5c316842661056f716ff1c224029e8b46e4bd2a00744e5
28 +DIST adobe-flash-32.0.0.114-ppapi.i386.tar.gz 8564095 BLAKE2B e4b9f531b199d932a8041812eb7d7409efe3db39e74f8feb928e25006a4b62bde8690faef137c729a1972ed50e8182440a1e6638b3f00856cbcb502c8d337254 SHA512 7b18dff8adc2ca16ef46ac9281df840a76aaa36daa353b7233c2a2df756c603c78cbc4bb03a7abec48f4235cee8a630ae3435443dc82940c8696bb7a4fa1b787
29 +DIST adobe-flash-32.0.0.114-ppapi.x86_64.tar.gz 9482535 BLAKE2B 8f3c6cfd3ddcd1d099d7893e45c432229516bb6853abdd0774e9a29bc567e635f431a5635e6c8090d2a794d8541a2ca6382af2f8fe555331cd19d30abbc2fe2a SHA512 4d6d8dc9430e6008a945bcafcd3c4c796f5b7620d1f3bbf0c14ad4c7f151b6cf2a434184b14d061eb53c7f0cfbe10121a747624a8f6ffbec2e7b58a23e097a8a
30
31 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild
32 new file mode 100644
33 index 00000000000..2cc1c70b340
34 --- /dev/null
35 +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.114.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 +}