Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/gnash: gnash-0.8.10_p20120903-r1.ebuild gnash-0.8.10_p20120903.ebuild ChangeLog gnash-0.8.10-r2.ebuild
Date: Thu, 28 Mar 2013 22:07:03
Message-Id: 20130328220654.9EE062171D@flycatcher.gentoo.org
1 chithanh 13/03/28 22:06:54
2
3 Modified: gnash-0.8.10_p20120903.ebuild ChangeLog
4 Added: gnash-0.8.10_p20120903-r1.ebuild
5 Removed: gnash-0.8.10-r2.ebuild
6 Log:
7 Do not install eglinfo, bug #463654.
8
9 (Portage version: 2.1.11.55/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.7 www-plugins/gnash/gnash-0.8.10_p20120903.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild?rev=1.7&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild?rev=1.7&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild?r1=1.6&r2=1.7
17
18 Index: gnash-0.8.10_p20120903.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild,v
21 retrieving revision 1.6
22 retrieving revision 1.7
23 diff -u -r1.6 -r1.7
24 --- gnash-0.8.10_p20120903.ebuild 9 Mar 2013 17:37:25 -0000 1.6
25 +++ gnash-0.8.10_p20120903.ebuild 28 Mar 2013 22:06:54 -0000 1.7
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild,v 1.6 2013/03/09 17:37:25 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903.ebuild,v 1.7 2013/03/28 22:06:54 chithanh Exp $
31
32 EAPI=4
33 CMAKE_REQUIRED="never"
34 @@ -61,6 +61,7 @@
35 )
36 egl? (
37 media-libs/mesa[egl]
38 + !x11-apps/mesa-progs[egl]
39 )
40 fbcon? (
41 x11-libs/tslib
42 @@ -272,7 +273,7 @@
43 popd >& /dev/null
44 fi
45 # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory.
46 - use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so \
47 + use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so
48
49 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
50 }
51
52
53
54 1.96 www-plugins/gnash/ChangeLog
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?rev=1.96&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?rev=1.96&content-type=text/plain
58 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?r1=1.95&r2=1.96
59
60 Index: ChangeLog
61 ===================================================================
62 RCS file: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v
63 retrieving revision 1.95
64 retrieving revision 1.96
65 diff -u -r1.95 -r1.96
66 --- ChangeLog 9 Mar 2013 17:37:25 -0000 1.95
67 +++ ChangeLog 28 Mar 2013 22:06:54 -0000 1.96
68 @@ -1,6 +1,14 @@
69 # ChangeLog for www-plugins/gnash
70 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
71 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.95 2013/03/09 17:37:25 ago Exp $
72 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.96 2013/03/28 22:06:54 chithanh Exp $
73 +
74 +*gnash-0.8.10_p20120903-r1 (28 Mar 2013)
75 +
76 + 28 Mar 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
77 + +gnash-0.8.10_p20120903-r1.ebuild, -files/gnash-0.8.10-cve-2012-1175.patch,
78 + -files/gnash-0.8.10-jemalloc-aslr-fix.patch, -gnash-0.8.10-r2.ebuild,
79 + gnash-0.8.10_p20120903.ebuild:
80 + Do not install eglinfo, bug #463654.
81
82 09 Mar 2013; Agostino Sarubbo <ago@g.o> gnash-0.8.10_p20120903.ebuild:
83 Stable for x86, wrt bug #456328
84
85
86
87 1.1 www-plugins/gnash/gnash-0.8.10_p20120903-r1.ebuild
88
89 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903-r1.ebuild?rev=1.1&view=markup
90 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903-r1.ebuild?rev=1.1&content-type=text/plain
91
92 Index: gnash-0.8.10_p20120903-r1.ebuild
93 ===================================================================
94 # Copyright 1999-2013 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96 # $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.10_p20120903-r1.ebuild,v 1.1 2013/03/28 22:06:54 chithanh Exp $
97
98 EAPI=5
99 CMAKE_REQUIRED="never"
100 KDE_REQUIRED="optional"
101 AT_M4DIR="cygnal"
102 PYTHON_DEPEND="python? 2"
103 RESTRICT_PYTHON_ABIS="3.*"
104
105 inherit autotools eutils kde4-base multilib nsplugins python flag-o-matic
106
107 DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features"
108 HOMEPAGE="http://www.gnu.org/software/gnash/"
109
110 if [[ ${PV} = 9999* ]]; then
111 SRC_URI=""
112 EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git"
113 inherit git-2
114 else
115 # Release tarball is b0rked, upstream #35612
116 # SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2"
117 SRC_URI="mirror://gentoo/${P}.tar.xz"
118 fi
119
120 LICENSE="GPL-3"
121 SLOT="0"
122 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
123 IUSE="X +agg cairo cygnal dbus directfb doc dump egl fbcon +ffmpeg gconf gnome gstreamer gtk harden kde lirc mysql +nls nsplugin opengl openvg python sdl +sdl-sound ssh ssl test vaapi"
124 REQUIRED_USE="dump? ( agg ffmpeg )
125 fbcon? ( agg )
126 nsplugin? ( gtk )
127 openvg? ( egl )
128 python? ( gtk )
129 vaapi? ( agg ffmpeg )
130 || ( agg cairo opengl openvg )
131 || ( dump fbcon gtk kde sdl )
132 "
133
134 RDEPEND=">=dev-libs/boost-1.41.0
135 dev-libs/expat
136 dev-libs/libxml2
137 virtual/jpeg
138 media-libs/libpng
139 net-misc/curl
140 x11-libs/libX11
141 x11-libs/libXi
142 x11-libs/libXmu
143 x11-libs/libXt
144 media-libs/giflib
145 x11-proto/xproto
146 agg? ( x11-libs/agg )
147 cairo? ( x11-libs/cairo )
148 directfb? (
149 dev-libs/DirectFB
150 )
151 doc? (
152 >=app-text/docbook2X-0.8.8
153 app-text/docbook-sgml-utils
154 )
155 egl? (
156 media-libs/mesa[egl]
157 )
158 fbcon? (
159 x11-libs/tslib
160 )
161 ffmpeg? (
162 virtual/ffmpeg[vaapi?]
163 )
164 gconf? (
165 gnome-base/gconf
166 )
167 gstreamer? (
168 media-plugins/gst-plugins-ffmpeg
169 media-plugins/gst-plugins-mad
170 media-plugins/gst-plugins-meta
171 )
172 gtk? (
173 x11-libs/gtk+:2
174 python? ( dev-python/pygtk:2 )
175 )
176 kde? ( $(add_kdebase_dep kdebase-startkde) )
177 opengl? (
178 virtual/glu
179 virtual/opengl
180 gtk? ( x11-libs/gtkglext )
181 )
182 openvg? (
183 media-libs/mesa[openvg]
184 )
185 sdl? ( media-libs/libsdl[X] )
186 sdl-sound? ( media-libs/libsdl )
187 media-libs/speex[ogg]
188 sys-libs/zlib
189 >=sys-devel/libtool-2.2
190 mysql? ( virtual/mysql )
191 lirc? ( app-misc/lirc )
192 dbus? ( sys-apps/dbus )
193 ssh? ( >=net-libs/libssh-0.4[server] )
194 ssl? ( dev-libs/openssl )
195 vaapi? ( x11-libs/libva[opengl?] )
196 "
197 DEPEND="${RDEPEND}
198 virtual/pkgconfig
199 nls? ( sys-devel/gettext )
200 gnome? ( app-text/rarian )
201 nsplugin? ( net-misc/npapi-sdk )
202 test? ( dev-util/dejagnu )"
203 # Tests hang with sandbox, bug #321017
204 RESTRICT="test"
205
206 pkg_setup() {
207 kde4-base_pkg_setup
208
209 if use !ffmpeg && use !gstreamer; then
210 ewarn "You are trying to build Gnash without choosing a media handler."
211 ewarn "Sound and video playback will not work."
212 fi
213
214 # won't build with python-3, bug #392969
215 if use python; then
216 python_set_active_version 2
217 fi
218 }
219
220 src_unpack() {
221 default
222 # rename git snapshot directory to what portage expects
223 mv ${PN}-*/ ${P} || die
224 }
225
226 src_prepare() {
227 # Fix paths for klash, bug #339610
228 epatch "${FILESDIR}"/${PN}-0.8.9-klash.patch
229
230 # Use external dejagnu for tests, bug #321017
231 epatch "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch
232
233 # Fix building on ppc64, bug #342535
234 use ppc64 && append-flags -mminimal-toc
235
236 # Fix kde multilib library path, bug #391283
237 epatch "${FILESDIR}"/${PN}-0.8.9-kde4-libdir.patch
238
239 # Fix gettext macros build failure
240 epatch "${FILESDIR}"/${PN}-0.8.10-gettext-macro.patch
241
242 # Fix libamf includes
243 epatch "${FILESDIR}"/${PN}-0.8.10-amf-include.patch
244
245 # Allow building against npapi-sdk, bug #383071
246 epatch "${FILESDIR}"/${PN}-0.8.10-npapi-sdk.patch
247
248 # Allow building against boost-1.50, bug #425442
249 epatch "${FILESDIR}"/${PN}-0.8.10-boost-1.50.patch
250
251 # fix build with ffmpeg-1 / libav-9, bug #443184
252 epatch "${FILESDIR}/${P}-ffmpeg1.patch" \
253 "${FILESDIR}/${P}-libav9.patch" \
254 "${FILESDIR}/${P}-bytesfmt.patch"
255
256 eautoreconf
257 }
258 src_configure() {
259 local device gui input media myconf myext renderers
260
261 # Set nsplugin install directory.
262 use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/"
263
264 # Set hardware acceleration.
265 use X && device+=",x11"
266 use directfb && device+=",directfb"
267 use egl && device+=",egl"
268 use fbcon && device+=",rawfb"
269 use vaapi && device+=",vaapi"
270 [[ "${device}x" == "x" ]] && device+=",none"
271
272 # Set rendering engine.
273 use agg && renderers+=",agg"
274 use cairo && renderers+=",cairo"
275 use opengl && renderers+=",opengl"
276 use openvg && renderers+=",openvg"
277
278 # Set kde and konqueror plugin directories.
279 if use kde; then
280 myconf="${myconf}
281 --with-plugins-install=system
282 --with-kde4-incl=${KDEDIR}/include
283 --with-kde4-configdir=${KDEDIR}/share/config
284 --with-kde4-prefix=${KDEDIR}
285 --with-kde4-lib=${KDEDIR}/$(get_libdir)
286 --with-kde-appsdatadir=${KDEDIR}/share/apps/klash
287 --with-kde4-servicesdir=${KDEDIR}/share/kde4/services
288 --with-kde4-plugindir=${KDEDIR}/$(get_libdir)/kde4"
289 fi
290
291 # Set media handler.
292 use ffmpeg || use gstreamer || media+=",none"
293 use ffmpeg && media+=",ffmpeg"
294 use gstreamer && media+=",gst"
295
296 # Set gui.
297 use dump && gui="${gui},dump"
298 use fbcon && gui="${gui},fb"
299 use gtk && gui=",gtk"
300 use kde && gui="${gui},kde4"
301 use sdl && gui="${gui},sdl"
302
303 if use sdl-sound; then
304 myconf="${myconf} --enable-sound=sdl"
305 else
306 myconf="${myconf} --enable-sound=none"
307 fi
308
309 # Set extensions
310 use mysql && myext=",mysql"
311 use gtk && myext="${myext},gtk"
312 use lirc && myext="${myext},lirc"
313 use dbus && myext="${myext},dbus"
314
315 # Strip extra comma from gui, myext, hwaccel and renderers.
316 device=$( echo $device | sed -e 's/,//' )
317 gui=$( echo $gui | sed -e 's/,//' )
318 myext=$( echo $myext | sed -e 's/,//' )
319 renderers=$( echo $renderers | sed -e 's/,//' )
320 media=$( echo $media | sed -e 's/,//' )
321
322 econf \
323 --docdir=/usr/share/doc/${PF} \
324 --disable-dependency-tracking \
325 --disable-kparts3 \
326 $(use_enable cygnal) \
327 $(use_enable cygnal cgibins) \
328 $(use_enable doc docbook) \
329 $(use_enable gnome ghelp) \
330 $(use_enable harden) \
331 $(use_enable kde kparts4) \
332 $(use_enable nls) \
333 $(use_enable nsplugin npapi) \
334 $(use_enable python) \
335 $(use_enable ssh) \
336 $(use_enable ssl) \
337 $(use_enable test testsuite) \
338 $(use_with gconf) \
339 --enable-gui=${gui} \
340 --enable-device=${device} \
341 --enable-extensions=${myext} \
342 --enable-renderer=${renderers} \
343 --enable-media=${media} \
344 ${myconf}
345 }
346 src_test() {
347 local log=testsuite-results.txt
348 cd testsuite
349 emake check || die "make check failed"
350 ./anaylse-results.sh > $log || die "results analyze failed"
351 cat $log
352 }
353 src_install() {
354 emake DESTDIR="${D}" install || die "emake install failed"
355
356 # Install nsplugin in directory set by --with-npapi-plugindir.
357 if use nsplugin; then
358 emake DESTDIR="${D}" install-plugin || die "install plugins failed"
359 fi
360
361 # Install kde konqueror plugin.
362 if use kde; then
363 pushd "${S}/plugin/klash4" >& /dev/null || die
364 emake DESTDIR="${D}" install-plugin || die "install kde plugins failed"
365 popd >& /dev/null
366 fi
367 # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory.
368 use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so
369
370 # Remove eglinfo, bug #463654
371 if use egl; then
372 rm -f "${D}"/usr/bin/eglinfo || die
373 fi
374
375 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
376 }
377 pkg_postinst() {
378 if use !gnome || use !gstreamer && use !ffmpeg ; then
379 ewarn ""
380 ewarn "Gnash was built without a media handler and or http handler !"
381 ewarn ""
382 ewarn "If you want Gnash to support video then you will need to"
383 ewarn "rebuild Gnash with either the ffmpeg or gstreamer and gnome use flags set."
384 ewarn ""
385 fi
386 ewarn "${PN} is still in heavy development"
387 ewarn "Please first report bugs on upstream gnashdevs and deal with them"
388 ewarn "And then report a Gentoo bug to the maintainer"
389 use kde && kde4-base_pkg_postinst
390 }