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: ChangeLog gnash-0.8.9-r2.ebuild gnash-0.8.9-r1.ebuild
Date: Fri, 25 Nov 2011 17:39:29
Message-Id: 20111125173919.9C8FD2004B@flycatcher.gentoo.org
1 chithanh 11/11/25 17:39:19
2
3 Modified: ChangeLog
4 Added: gnash-0.8.9-r2.ebuild
5 Removed: gnash-0.8.9-r1.ebuild
6 Log:
7 Fix kde multilib library path, bug #391283.
8
9 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.68 www-plugins/gnash/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?rev=1.68&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?rev=1.68&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/ChangeLog?r1=1.67&r2=1.68
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v
21 retrieving revision 1.67
22 retrieving revision 1.68
23 diff -u -r1.67 -r1.68
24 --- ChangeLog 21 Nov 2011 21:30:22 -0000 1.67
25 +++ ChangeLog 25 Nov 2011 17:39:19 -0000 1.68
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-plugins/gnash
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.67 2011/11/21 21:30:22 chithanh Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.68 2011/11/25 17:39:19 chithanh Exp $
31 +
32 +*gnash-0.8.9-r2 (25 Nov 2011)
33 +
34 + 25 Nov 2011; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
35 + -gnash-0.8.9-r1.ebuild, +gnash-0.8.9-r2.ebuild,
36 + +files/gnash-0.8.9-kde4-libdir.patch:
37 + Fix kde multilib library path, bug #391283.
38
39 *gnash-0.8.9-r1 (21 Nov 2011)
40
41
42
43
44 1.1 www-plugins/gnash/gnash-0.8.9-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.9-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/gnash-0.8.9-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gnash-0.8.9-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.9-r2.ebuild,v 1.1 2011/11/25 17:39:19 chithanh Exp $
54
55 EAPI=3
56 CMAKE_REQUIRED="never"
57 KDE_REQUIRED="optional"
58 AT_M4DIR="cygnal"
59
60 inherit autotools eutils kde4-base multilib nsplugins python flag-o-matic
61
62 DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features"
63 HOMEPAGE="http://www.gnu.org/software/gnash/"
64
65 if [[ ${PV} = 9999* ]]; then
66 SRC_URI=""
67 EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git"
68 inherit git-2
69 else
70 SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2"
71 fi
72
73 LICENSE="GPL-3"
74 SLOT="0"
75 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
76 IUSE="+agg cairo cygnal dbus doc fbcon +ffmpeg gnome gstreamer gtk kde lirc mysql +nls nsplugin opengl openvg python sdl +sdl-sound ssh ssl test vaapi"
77
78 # gnash fails if obsolete boost is installed, bug #334259
79 RDEPEND=">=dev-libs/boost-1.41.0
80 !!dev-libs/boost:0
81 dev-libs/expat
82 dev-libs/libxml2
83 virtual/jpeg
84 media-libs/libpng
85 net-misc/curl
86 x11-libs/libX11
87 x11-libs/libXi
88 x11-libs/libXmu
89 x11-libs/libXt
90 media-libs/giflib
91 x11-proto/xproto
92 agg? ( x11-libs/agg )
93 cairo? ( x11-libs/cairo )
94 doc? (
95 >=app-text/docbook2X-0.8.8
96 app-text/docbook-sgml-utils
97 )
98 fbcon? (
99 x11-libs/tslib
100 )
101 ffmpeg? (
102 virtual/ffmpeg[vaapi?]
103 )
104 gstreamer? (
105 media-plugins/gst-plugins-ffmpeg
106 media-plugins/gst-plugins-mad
107 media-plugins/gst-plugins-meta
108 )
109 gtk? (
110 x11-libs/gtk+:2
111 net-libs/xulrunner:1.9
112 python? ( dev-python/pygtk:2 )
113 )
114 kde? ( $(add_kdebase_dep kdebase-startkde) )
115 opengl? (
116 virtual/opengl
117 gtk? ( x11-libs/gtkglext )
118 )
119 openvg? (
120 virtual/opengl
121 )
122 nsplugin? ( >=net-libs/xulrunner-1.9.2:1.9 )
123 sdl? ( media-libs/libsdl[X] )
124 sdl-sound? ( media-libs/libsdl )
125 media-libs/speex[ogg]
126 sys-libs/zlib
127 >=sys-devel/libtool-2.2
128 mysql? ( virtual/mysql )
129 lirc? ( app-misc/lirc )
130 dbus? ( sys-apps/dbus )
131 ssh? ( >=net-libs/libssh-0.4[server] )
132 ssl? ( dev-libs/openssl )
133 vaapi? ( x11-libs/libva[opengl?] )
134 "
135 DEPEND="${RDEPEND}
136 dev-util/pkgconfig
137 nls? ( sys-devel/gettext )
138 gnome? ( app-text/rarian )
139 test? ( dev-util/dejagnu )"
140 # Tests hang with sandbox, bug #321017
141 RESTRICT="test"
142
143 pkg_setup() {
144 if has_version ">=dev-libs/boost-1.46" && has_version "<dev-libs/boost-1.46"; then
145 ewarn "If you have multiple versions of boost installed, gnash may attempt to"
146 ewarn "compile against the older version and link against newer version, which can"
147 ewarn "cause the build to fail. Unmerge of the old version of boost is recommended."
148 fi
149
150 if use !ffmpeg && use !gstreamer; then
151 ewarn "You are trying to build Gnash without choosing a media handler."
152 ewarn "Sound and video playback will not work."
153 fi
154
155 if use vaapi && use !ffmpeg; then
156 eerror "Support for VAAPI currently requires the ffmpeg media handler."
157 die "vaapi requires the ffmpeg USE flag."
158 fi
159
160 if use vaapi && use !agg; then
161 eerror "Support for VAAPI currently requires the agg renderer."
162 die "vaapi requires the agg USE flag."
163 fi
164
165 if use !agg && use !cairo && use !opengl && !use openvg; then
166 eerror "You are trying to build Gnash without choosing a renderer [agg|cairo|opengl|openvg]."
167 die "Please enable a renderer"
168 fi
169
170 if use !fbcon && use !kde && use !gtk && use !sdl; then
171 ewarn "You are trying to build Gnash without choosing a gui frontend [fbcon,gtk,kde,sdl]."
172 die "Please enable at least one of these USE flags."
173 fi
174
175 if use python && use !gtk; then
176 eerror "Building gnash with python support requires gtk."
177 die "python requires the gtk USE flag."
178 fi
179
180 if use nsplugin && use !gtk; then
181 eerror "Building gnash with nsplugin requires the gtk gui."
182 die "Nsplugin requires the gtk gui."
183 fi
184
185 if use fbcon && use !agg; then
186 eerror "Building gnash with fbcon requires the agg renderer."
187 die "fbcon requires the agg USE flag."
188 fi
189
190 kde4-base_pkg_setup
191 }
192
193 src_prepare() {
194 # TODO: Patch no longer applies
195 # epatch "${FILESDIR}"/${PN}-0.8.7-amf-include.patch
196
197 # Look for openvg.h in correct path
198 epatch "${FILESDIR}"/${PN}-0.8.9-find-openvg.patch
199
200 # Fix paths for klash, bug #339610
201 epatch "${FILESDIR}"/${PN}-0.8.9-klash.patch
202
203 # Install documentation into the proper directories, bug #296110
204 epatch "${FILESDIR}"/${PN}-0.8.9-documentation-paths.patch
205
206 # Use external dejagnu for tests, bug #321017
207 epatch "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch
208
209 # Fix detection of recent ffmpeg, bug #362683
210 epatch "${FILESDIR}"/${PN}-0.8.9-ffmpeg-detection.patch
211 epatch "${FILESDIR}"/${PN}-0.8.9-libavcodec-version.patch
212 epatch "${FILESDIR}"/${PN}-0.8.9-look-harder-for-version_h.patch
213
214 # Fix building against ffmpeg-0.8, bug #362949, upstream #33696
215 epatch "${FILESDIR}"/${PN}-0.8.9-no-deprecated-avcodec-audio-resample.patch
216 epatch "${FILESDIR}"/${PN}-0.8.9-no-deprecated-avcodec-decode-audio.patch
217 epatch "${FILESDIR}"/${PN}-0.8.9-no-deprecated-avcodec-decode-video.patch
218 epatch "${FILESDIR}"/${PN}-0.8.9-no-deprecated-avcodec-parser.patch
219 epatch "${FILESDIR}"/${PN}-0.8.9-no-deprecated-avformat-metadata.patch
220
221 # Fix building on ppc64, bug #342535
222 use ppc64 && append-flags -mminimal-toc
223
224 # Fix kde multilib library path, bug #391283
225 epatch "${FILESDIR}"/${PN}-0.8.9-kde4-libdir.patch
226
227 # Fix security bug #391283
228 epatch "${FILESDIR}"/${PN}-0.8.9-cve-2011-4328.patch
229
230 eautoreconf
231 }
232 src_configure() {
233 local gui hwaccel input media myconf myext renderers
234
235 # Set nsplugin install directory.
236 use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/"
237
238 # Set hardware acceleration.
239 if use vaapi; then
240 hwaccel="vaapi"
241 else
242 hwaccel="none"
243 fi
244
245 # Set rendering engine.
246 use agg && renderers+=",agg"
247 use cairo && renderers+=",cairo"
248 use opengl && renderers+=",opengl"
249 use openvg && renderers+=",openvg"
250
251 # Set kde and konqueror plugin directories.
252 if use kde; then
253 myconf="${myconf}
254 --with-plugins-install=system
255 --with-kde4-incl=${KDEDIR}/include
256 --with-kde4-configdir=${KDEDIR}/share/config
257 --with-kde4-prefix=${KDEDIR}
258 --with-kde4-lib=${KDEDIR}/$(get_libdir)
259 --with-kde-appsdatadir=${KDEDIR}/share/apps/klash
260 --with-kde4-servicesdir=${KDEDIR}/share/kde4/services"
261 fi
262
263 # Set media handler.
264 use ffmpeg || use gstreamer || media+=",none"
265 use ffmpeg && media+=",ffmpeg"
266 use gstreamer && media+=",gst"
267
268 # Set gui.
269 use gtk && gui=",gtk"
270 use fbcon && gui="${gui},fb"
271 use kde && gui="${gui},kde4"
272 use sdl && gui="${gui},sdl"
273
274 if use sdl-sound; then
275 myconf="${myconf} --enable-sound=sdl"
276 else
277 myconf="${myconf} --enable-sound=none"
278 fi
279
280 # Set extensions
281 use mysql && myext=",mysql"
282 use gtk && myext="${myext},gtk"
283 use lirc && myext="${myext},lirc"
284 use dbus && myext="${myext},dbus"
285
286 # Strip extra comma from gui, myext, hwaccel and renderers.
287 gui=$( echo $gui | sed -e 's/,//' )
288 hwaccel=$( echo $hwaccel | sed -e 's/,//' )
289 myext=$( echo $myext | sed -e 's/,//' )
290 renderers=$( echo $renderers | sed -e 's/,//' )
291 media=$( echo $media | sed -e 's/,//' )
292
293 econf \
294 --docdir=/usr/share/doc/${PF} \
295 --disable-dependency-tracking \
296 --disable-kparts3 \
297 $(use_enable cygnal) \
298 $(use_enable cygnal cgibins) \
299 $(use_enable doc docbook) \
300 $(use_enable gnome ghelp) \
301 $(use_enable kde kparts4) \
302 $(use_enable lirc) \
303 $(use_enable nls) \
304 $(use_enable nsplugin npapi) \
305 $(use_enable python) \
306 $(use_enable ssh) \
307 $(use_enable ssl) \
308 $(use_enable test testsuite) \
309 --enable-gui=${gui} \
310 --enable-extensions=${myext} \
311 --enable-renderer=${renderers} \
312 --enable-hwaccel=${hwaccel} \
313 --enable-media=${media} \
314 ${myconf}
315 }
316 src_test() {
317 local log=testsuite-results.txt
318 cd testsuite
319 emake check || die "make check failed"
320 ./anaylse-results.sh > $log || die "results analyze failed"
321 cat $log
322 }
323 src_install() {
324 emake DESTDIR="${D}" install || die "emake install failed"
325
326 # Install nsplugin in directory set by --with-npapi-plugindir.
327 if use nsplugin; then
328 emake DESTDIR="${D}" install-plugin || die "install plugins failed"
329 fi
330
331 # Install kde konqueror plugin.
332 if use kde; then
333 pushd "${S}/plugin/klash4" >& /dev/null || die
334 emake DESTDIR="${D}" install-plugin || die "install kde plugins failed"
335 popd >& /dev/null
336 fi
337 # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory.
338 use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so \
339
340 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
341 }
342 pkg_postinst() {
343 if use !gnome || use !gstreamer && use !ffmpeg ; then
344 ewarn ""
345 ewarn "Gnash was built without a media handler and or http handler !"
346 ewarn ""
347 ewarn "If you want Gnash to support video then you will need to"
348 ewarn "rebuild Gnash with either the ffmpeg or gstreamer and gnome use flags set."
349 ewarn ""
350 fi
351 ewarn "${PN} is still in heavy development"
352 ewarn "Please first report bugs on upstream gnashdevs and deal with them"
353 ewarn "And then report a Gentoo bug to the maintainer"
354 use kde && kde4-base_pkg_postinst
355 }