Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/adobe-flash: ChangeLog adobe-flash-10.0.32.18.ebuild
Date: Sun, 02 Aug 2009 15:54:33
Message-Id: E1MXdOJ-00047V-1Q@stork.gentoo.org
1 jer 09/08/02 15:54:31
2
3 Modified: ChangeLog
4 Added: adobe-flash-10.0.32.18.ebuild
5 Log:
6 Version bump (bug #278819).
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.6 www-plugins/adobe-flash/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-plugins/adobe-flash/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 20 Jul 2009 19:21:44 -0000 1.5
23 +++ ChangeLog 2 Aug 2009 15:54:30 -0000 1.6
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-plugins/adobe-flash
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.5 2009/07/20 19:21:44 lack Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.6 2009/08/02 15:54:30 jer Exp $
29 +
30 +*adobe-flash-10.0.32.18 (02 Aug 2009)
31 +
32 + 02 Aug 2009; Jeroen Roovers <jer@g.o>
33 + +adobe-flash-10.0.32.18.ebuild:
34 + Version bump (bug #278819).
35
36 20 Jul 2009; Jim Ramsay <lack@g.o>
37 adobe-flash-10.0.22.87-r2.ebuild:
38
39
40
41 1.1 www-plugins/adobe-flash/adobe-flash-10.0.32.18.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.0.32.18.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.0.32.18.ebuild?rev=1.1&content-type=text/plain
45
46 Index: adobe-flash-10.0.32.18.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.0.32.18.ebuild,v 1.1 2009/08/02 15:54:30 jer Exp $
51
52 EAPI=1
53 inherit nsplugins rpm multilib toolchain-funcs
54
55 MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV}-release.i386.rpm"
56 MY_64B_URI="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${PV}.linux-x86_64.so.tar.gz"
57
58 DESCRIPTION="Adobe Flash Player"
59 SRC_URI="x86? ( ${MY_32B_URI} )
60 amd64? (
61 multilib? (
62 32bit? ( ${MY_32B_URI} mirror://gentoo/flash-libcompat-0.2.tar.bz2 )
63 64bit? ( ${MY_64B_URI} )
64 )
65 !multilib? ( ${MY_64B_URI} )
66 )"
67 HOMEPAGE="http://www.adobe.com/"
68 IUSE="multilib +32bit +64bit"
69 SLOT="0"
70
71 KEYWORDS="-* ~amd64 ~x86"
72 LICENSE="AdobeFlash-10"
73 RESTRICT="strip mirror"
74
75 S="${WORKDIR}"
76
77 NATIVE_DEPS="x11-libs/gtk+:2
78 media-libs/fontconfig
79 dev-libs/nss
80 net-misc/curl
81 >=sys-libs/glibc-2.4
82 || ( media-fonts/freefont-ttf media-fonts/corefonts )"
83
84 EMUL_DEPS="app-emulation/emul-linux-x86-baselibs
85 app-emulation/emul-linux-x86-gtklibs
86 app-emulation/emul-linux-x86-soundlibs
87 app-emulation/emul-linux-x86-xlibs"
88
89 RDEPEND="x86? ( $NATIVE_DEPS )
90 amd64? (
91 multilib? (
92 64bit? ( $NATIVE_DEPS )
93 32bit? ( $EMUL_DEPS )
94 )
95 !multilib? ( $NATIVE_DEPS )
96 )"
97
98 # Our new flash-libcompat suffers from the same EXESTACK problem as libcrypto
99 # from app-text/acroread, so tell QA to ignore it.
100 # Apparently the flash library itself also suffers from this issue
101 QA_EXECSTACK="opt/flash-libcompat/libcrypto.so.0.9.7
102 opt/netscape/plugins32/libflashplayer.so
103 opt/netscape/plugins/libflashplayer.so"
104
105 QA_DT_HASH="opt/flash-libcompat/lib.*
106 opt/netscape/plugins32/libflashplayer.so
107 opt/netscape/plugins/libflashplayer.so"
108
109 pkg_setup() {
110 if use x86; then
111 export native_install=1
112 elif use amd64; then
113 # amd64 users may unselect the native 64bit binary, if they choose
114 if ! use multilib || use 64bit; then
115 export native_install=1
116 # 64bit flash requires the 'lahf' instruction (bug #268336)
117 if ! grep -q lahf_lm /proc/cpuinfo; then
118 export need_lahf_wrapper=1
119 else
120 unset need_lahf_wrapper
121 fi
122 else
123 unset native_install
124 fi
125
126 if use multilib && ! use 32bit && ! use 64bit; then
127 eerror "You must select at least one library USE flag (32bit or 64bit)"
128 die "No library version selected [-32bit -64bit]"
129 fi
130 fi
131 }
132
133 src_compile() {
134 if [[ $need_lahf_wrapper ]]; then
135 # This experimental wrapper, from Maks Verver via bug #268336 should
136 # emulate the missing lahf instruction affected platforms.
137 $(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \
138 "${FILESDIR}/flashplugin-lahf-fix.c" \
139 || die "Compile of flashplugin-lahf-fix.so failed"
140 fi
141 }
142
143 src_install() {
144 if [[ $native_install ]]; then
145 # 32b RPM has things hidden in funny places
146 use x86 && pushd "${S}/usr/lib/flash-plugin"
147
148 exeinto /opt/netscape/plugins
149 doexe libflashplayer.so
150 inst_plugin /opt/netscape/plugins/libflashplayer.so
151
152 use x86 && popd
153
154 # 64b tarball has no readme file.
155 use x86 && dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt"
156 fi
157
158 if [[ $need_lahf_wrapper ]]; then
159 # This experimental wrapper, from Maks Verver via bug #268336 should
160 # emulate the missing lahf instruction affected platforms.
161 exeinto /opt/netscape/plugins
162 doexe flashplugin-lahf-fix.so
163 inst_plugin /opt/netscape/plugins/flashplugin-lahf-fix.so
164 fi
165
166 if use amd64 && has_multilib_profile && use 32bit; then
167 oldabi="${ABI}"
168 ABI="x86"
169
170 # 32b plugin
171 pushd "${S}/usr/lib/flash-plugin"
172 exeinto /opt/netscape/plugins32/
173 doexe libflashplayer.so
174 inst_plugin /opt/netscape/plugins32/libflashplayer.so
175 dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt"
176 popd
177
178 # 32b library compatibility:
179 #
180 # libcurl and libnss are not currently available in any emul-linux-x86
181 # packages, so for amd64 we provide these snarfed out of other binary
182 # packages. libcurl and its ssl dependencies come from
183 # app-text/acroread; libnss and its friends come from
184 # net-libs/xulrunner-bin
185 exeinto /opt/flash-libcompat
186 pushd "${WORKDIR}/flash-libcompat-0.2/"
187 doexe *
188 popd
189 echo 'LDPATH="/opt/flash-libcompat"' > 99flash-libcompat
190 doenvd 99flash-libcompat
191
192 ABI="${oldabi}"
193 fi
194
195 # The magic config file!
196 insinto "/etc/adobe"
197 doins "${FILESDIR}/mms.cfg"
198 }
199
200 pkg_postinst() {
201 if use amd64; then
202 if has_version 'www-plugins/nspluginwrapper'; then
203 if [[ $native_install ]]; then
204 # TODO: Perhaps parse the output of 'nspluginwrapper -l'
205 # However, the 64b flash plugin makes 'nspluginwrapper -l' segfault.
206 local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"
207 if [[ -f ${FLASH_WRAPPER} ]]; then
208 einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed"
209 nspluginwrapper -r "${FLASH_WRAPPER}"
210 fi
211 if [[ $need_lahf_wrapper ]]; then
212 ewarn "Your processor does not support the 'lahf' instruction which is used"
213 ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which"
214 ewarn "should allow this plugin to run. If you encounter problems, please"
215 ewarn "adjust your USE flags to install only the 32-bit version and reinstall:"
216 ewarn " ${CATEGORY}/$PN[+32bit -64bit]"
217 fi
218 else
219 oldabi="${ABI}"
220 ABI="x86"
221 local FLASH_SOURCE="${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}/libflashplayer.so"
222
223 einfo "nspluginwrapper detected: Installing plugin wrapper"
224 nspluginwrapper -i "${FLASH_SOURCE}"
225
226 ABI="${oldabi}"
227 fi
228 elif [[ ! $native_install ]]; then
229 einfo "To use the 32-bit flash player in a native 64-bit firefox,"
230 einfo "you must install www-plugins/nspluginwrapper"
231 fi
232 fi
233
234 ewarn "Flash player is closed-source, with a long history of security"
235 ewarn "issues. Please consider only running flash applets you know to"
236 ewarn "be safe. The 'flashblock' extension may help for mozilla users:"
237 ewarn " https://addons.mozilla.org/en-US/firefox/addon/433"
238
239 if has_version 'kde-base/konqueror'; then
240 elog "Konqueror users - You may need to follow the instructions here:"
241 elog " http://www.gentoo.org/proj/en/desktop/kde/kde-flash.xml"
242 elog "For flash to work with your browser."
243 fi
244 }