Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/adobe-flash: ChangeLog adobe-flash-11.2.202.233.ebuild
Date: Wed, 02 May 2012 18:44:40
Message-Id: 20120502184427.ADF1E2004B@flycatcher.gentoo.org
1 lack 12/05/02 18:44:27
2
3 Modified: ChangeLog
4 Added: adobe-flash-11.2.202.233.ebuild
5 Log:
6 Version bump (Bug #414039)
7
8 (Portage version: 2.1.10.57/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.129 www-plugins/adobe-flash/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.129&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.129&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?r1=1.128&r2=1.129
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v
20 retrieving revision 1.128
21 retrieving revision 1.129
22 diff -u -r1.128 -r1.129
23 --- ChangeLog 24 Apr 2012 21:37:20 -0000 1.128
24 +++ ChangeLog 2 May 2012 18:44:27 -0000 1.129
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-plugins/adobe-flash
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.128 2012/04/24 21:37:20 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.129 2012/05/02 18:44:27 lack Exp $
30 +
31 +*adobe-flash-11.2.202.233 (02 May 2012)
32 +
33 + 02 May 2012; Jim Ramsay <jim_ramsay@g.o>
34 + +adobe-flash-11.2.202.233.ebuild:
35 + Version bump (Bug #414039)
36
37 24 Apr 2012; Diego E. Pettenò <flameeyes@g.o>
38 adobe-flash-11.2.202.228.ebuild:
39
40
41
42 1.1 www-plugins/adobe-flash/adobe-flash-11.2.202.233.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-11.2.202.233.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-11.2.202.233.ebuild?rev=1.1&content-type=text/plain
46
47 Index: adobe-flash-11.2.202.233.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-11.2.202.233.ebuild,v 1.1 2012/05/02 18:44:27 lack Exp $
52
53 EAPI=4
54 inherit nsplugins multilib toolchain-funcs versionator
55
56 MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc/${PV}/install_flash_player_$(get_major_version)_linux.i386.tar.gz -> ${P}.i386.tar.gz"
57 MY_64B_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc/${PV}/install_flash_player_$(get_major_version)_linux.x86_64.tar.gz -> ${P}.x86_64.tar.gz"
58
59 DESCRIPTION="Adobe Flash Player"
60 SRC_URI="x86? ( ${MY_32B_URI} )
61 amd64? (
62 multilib? (
63 32bit? ( ${MY_32B_URI} )
64 64bit? ( ${MY_64B_URI} )
65 )
66 !multilib? ( ${MY_64B_URI} )
67 )"
68 HOMEPAGE="http://www.adobe.com/products/flashplayer.html"
69 IUSE="multilib -32bit +64bit vdpau kde +sse2check"
70 SLOT="0"
71
72 KEYWORDS="-* ~amd64 ~x86"
73 LICENSE="AdobeFlash-10.3"
74 RESTRICT="strip mirror"
75
76 S="${WORKDIR}"
77
78 NATIVE_DEPS="x11-libs/gtk+:2
79 media-libs/fontconfig
80 dev-libs/nss
81 net-misc/curl
82 vdpau? ( x11-libs/libvdpau )
83 kde? ( kde-base/kcmshell )
84 >=sys-libs/glibc-2.4"
85
86 EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 )
87 >=app-emulation/emul-linux-x86-gtklibs-20100409-r1
88 app-emulation/emul-linux-x86-soundlibs"
89
90 DEPEND="amd64? ( multilib? ( !64bit? ( www-plugins/nspluginwrapper ) ) )"
91 RDEPEND="x86? ( $NATIVE_DEPS )
92 amd64? (
93 multilib? (
94 64bit? ( $NATIVE_DEPS )
95 32bit? ( $EMUL_DEPS )
96 )
97 !multilib? ( $NATIVE_DEPS )
98 )
99 || ( media-fonts/liberation-fonts media-fonts/corefonts )
100 ${DEPEND}"
101
102 # Where should this all go? (Bug #328639)
103 INSTALL_BASE="opt/Adobe/flash-player"
104
105 # Ignore QA warnings in these closed-source binaries, since we can't fix them:
106 QA_PREBUILT="opt/*"
107
108 any_cpu_missing_flag() {
109 local value=$1
110 grep '^flags' /proc/cpuinfo | grep -qv "$value"
111 }
112
113 pkg_pretend() {
114 if any_cpu_missing_flag 'sse2'; then
115 eerror "This version of adobe-flash requires a CPU that supports the"
116 eerror "SSE2 instruction set, and at least one of your CPUs does not"
117 eerror "support this feature."
118 eerror ""
119 if use sse2check; then
120 eerror "You should mask this version and use adobe-flash-10.3.* instead."
121 eerror "To do so, add the following line to your package.mask file:"
122 eerror " =${CATEGORY}/${P}"
123 eerror ""
124 eerror "Or if you are trying to build a binary package for another host"
125 eerror "that does support SSE2 instructions, you may override this"
126 eerror "check by setting USE=\"-sse2check\""
127 eerror ""
128 die "${P} requires CPU with SSE2"
129 else
130 eerror "Continuing anyway due to USE=\"-sse2check\", but be aware that flash"
131 eerror "will not function unless all of the CPUs on the system where it"
132 eerror "is installed support the SSE2 instruction set."
133 fi
134 fi
135 }
136
137 pkg_setup() {
138 if use x86; then
139 export native_install=1
140 elif use amd64; then
141 # amd64 users may unselect the native 64bit binary, if they choose
142 # TODO: In future revisions, remove this ability now that 64-bit
143 # binaries are officially released and working.
144 if ! use multilib || use 64bit; then
145 export native_install=1
146 else
147 unset native_install
148 fi
149
150 if use multilib && use 32bit; then
151 export amd64_32bit=1
152 else
153 unset amd64_32bit
154 fi
155
156 if use multilib && ! use 32bit && ! use 64bit; then
157 eerror "You must select at least one architecture USE flag (32bit or 64bit)"
158 die "No library version selected [-32bit -64bit]"
159 fi
160
161 unset need_lahf_wrapper
162 if [[ $native_install ]]; then
163 # 64bit flash requires the 'lahf' instruction (bug #268336)
164 if any_cpu_missing_flag 'lahf_lm'; then
165 export need_lahf_wrapper=1
166 fi
167 fi
168 fi
169 }
170
171 src_unpack() {
172 if [[ $amd64_32bit ]]; then
173 # Since the 32-bit and 64-bit packages collide, put the 32-bit one
174 # elsewhere:
175 local my_32b_src=${MY_32B_URI##*>}
176 local my_64b_src=${MY_64B_URI##*>}
177 if [[ $native_install ]]; then
178 unpack $my_64b_src
179 fi
180 mkdir 32bit
181 pushd 32bit >/dev/null
182 unpack $my_32b_src
183 popd >/dev/null
184 else
185 default_src_unpack
186 fi
187 }
188
189 src_compile() {
190 if [[ $need_lahf_wrapper ]]; then
191 # This experimental wrapper, from Maks Verver via bug #268336 should
192 # emulate the missing lahf instruction affected platforms.
193 $(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \
194 "${FILESDIR}/flashplugin-lahf-fix.c" \
195 || die "Compile of flashplugin-lahf-fix.so failed"
196 fi
197 }
198
199 src_install() {
200 if [[ $native_install ]]; then
201 if use x86; then
202 local PKGLIB=lib
203 else
204 local PKGLIB=lib64
205 fi
206 local BASE=${INSTALL_BASE}
207
208 # The plugin itself
209 exeinto /${BASE}/flash-plugin
210 doexe libflashplayer.so
211 inst_plugin /${BASE}/flash-plugin/libflashplayer.so
212
213 # The optional KDE4 KCM plugin
214 if use kde; then
215 exeinto /${BASE}/kde4
216 doexe usr/${PKGLIB}/kde4/kcm_adobe_flash_player.so
217 dosym /${BASE}/kde4/kcm_adobe_flash_player.so \
218 /usr/$(get_libdir)/kde4/kcm_adobe_flash_player.so
219 insinto /usr/share/kde4/services
220 doins usr/share/kde4/services/kcm_adobe_flash_player.desktop
221 else
222 # No KDE applet, so allow the GTK utility to show up in KDE:
223 sed -i usr/share/applications/flash-player-properties.desktop \
224 -e "/^NotShowIn=KDE;/d" || die "sed of .desktop file failed"
225 fi
226
227 # The userland 'flash-player-properties' standalone app:
228 exeinto /${BASE}/bin
229 doexe usr/bin/flash-player-properties
230 dosym /${BASE}/bin/flash-player-properties \
231 usr/bin/flash-player-properties
232
233 # Icon and .desktop for 'flash-player-properties'
234 for icon in $(find usr/share/icons/ -name '*.png'); do
235 insinto /$(dirname $icon)
236 doins $icon
237 done
238 dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \
239 usr/share/pixmaps/flash-player-properties.png
240 insinto usr/share/applications
241 sed -i usr/share/applications/flash-player-properties.desktop \
242 -e "s:^Exec=:Exec=/${BASE}/bin/:" || die "sed of .desktop file failed"
243 doins usr/share/applications/flash-player-properties.desktop
244 fi
245
246 if [[ $need_lahf_wrapper ]]; then
247 # This experimental wrapper, from Maks Verver via bug #268336 should
248 # emulate the missing lahf instruction affected platforms.
249 exeinto /${INSTALL_BASE}
250 doexe flashplugin-lahf-fix.so
251 inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so
252 fi
253
254 if [[ $amd64_32bit ]]; then
255 # Only install the plugin, nothing else for 32-bit.
256 local oldabi="${ABI}"
257 ABI="x86"
258
259 # 32b plugin
260 pushd "${S}/32bit"
261 exeinto /${INSTALL_BASE}32
262 doexe libflashplayer.so
263 inst_plugin /${INSTALL_BASE}32/libflashplayer.so
264 popd
265
266 ABI="${oldabi}"
267 fi
268
269 # The magic config file!
270 insinto "/etc/adobe"
271 doins "${FILESDIR}/mms.cfg"
272 }
273
274 pkg_postinst() {
275 if use amd64; then
276 if [[ $need_lahf_wrapper ]]; then
277 ewarn "Your processor does not support the 'lahf' instruction which is used"
278 ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which"
279 ewarn "should allow this plugin to run. If you encounter problems, please"
280 ewarn "adjust your USE flags to install only the 32-bit version and reinstall:"
281 ewarn " ${CATEGORY}/$PN[+32bit -64bit]"
282 elog
283 fi
284 if has_version 'www-plugins/nspluginwrapper'; then
285 if [[ $native_install ]]; then
286 # TODO: Perhaps parse the output of 'nspluginwrapper -l'
287 # However, the 64b flash plugin makes
288 # 'nspluginwrapper -l' segfault.
289 local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"
290 if [[ -f ${FLASH_WRAPPER} ]]; then
291 einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed"
292 nspluginwrapper -r "${FLASH_WRAPPER}"
293 fi
294 else
295 einfo "nspluginwrapper detected: Installing plugin wrapper"
296 local oldabi="${ABI}"
297 ABI="x86"
298 local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so"
299 nspluginwrapper -i "${FLASH_SOURCE}"
300 ABI="${oldabi}"
301 fi
302 elif [[ ! $native_install ]]; then
303 elog "To use the 32-bit flash player in a native 64-bit browser,"
304 elog "you must install www-plugins/nspluginwrapper"
305 fi
306 fi
307
308 ewarn "Flash player is closed-source, with a long history of security"
309 ewarn "issues. Please consider only running flash applets you know to"
310 ewarn "be safe. The 'flashblock' extension may help for mozilla users:"
311 ewarn " https://addons.mozilla.org/en-US/firefox/addon/433"
312 }