Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-www/gnash: ChangeLog gnash-0.8.3.ebuild gnash-0.8.4.ebuild
Date: Sun, 19 Oct 2008 11:49:15
Message-Id: E1KrWmV-0002Vh-18@stork.gentoo.org
1 loki_val 08/10/19 11:49:11
2
3 Modified: ChangeLog gnash-0.8.3.ebuild
4 Added: gnash-0.8.4.ebuild
5 Log:
6 Fix bug 242656 by restricting 0.8.3 to ffmpeg 20080326. Bump to 0.8.4, bug 241874, thanks to Mounir Lamouri. This version works much better than 0.8.3, but tests fail to compile.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc8 x86_64)
8
9 Revision Changes Path
10 1.64 net-www/gnash/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 12 Oct 2008 16:05:34 -0000 1.63
23 +++ ChangeLog 19 Oct 2008 11:49:10 -0000 1.64
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-www/gnash
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v 1.63 2008/10/12 16:05:34 bluebird Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v 1.64 2008/10/19 11:49:10 loki_val Exp $
29 +
30 +*gnash-0.8.4 (19 Oct 2008)
31 +
32 + 19 Oct 2008; Peter Alfredsen <loki_val@g.o> gnash-0.8.3.ebuild,
33 + +gnash-0.8.4.ebuild:
34 + Fix bug 242656 by restricting 0.8.3 to ffmpeg 20080326. Bump to 0.8.4, bug
35 + 241874, thanks to Mounir Lamouri. This version works much better than
36 + 0.8.3, but tests fail to compile.
37
38 12 Oct 2008; Friedrich Oslage <bluebird@g.o> gnash-0.8.3.ebuild:
39 Drop ~sparc keyword, until bug #240470 is fixed
40
41
42
43 1.7 net-www/gnash/gnash-0.8.3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild?rev=1.7&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild?rev=1.7&content-type=text/plain
47 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild?r1=1.6&r2=1.7
48
49 Index: gnash-0.8.3.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild,v
52 retrieving revision 1.6
53 retrieving revision 1.7
54 diff -u -r1.6 -r1.7
55 --- gnash-0.8.3.ebuild 12 Oct 2008 16:05:34 -0000 1.6
56 +++ gnash-0.8.3.ebuild 19 Oct 2008 11:49:10 -0000 1.7
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2008 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild,v 1.6 2008/10/12 16:05:34 bluebird Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.3.ebuild,v 1.7 2008/10/19 11:49:10 loki_val Exp $
62
63 EAPI=1
64
65 @@ -59,7 +59,7 @@
66 ffmpeg? (
67 !gstreamer? (
68 media-libs/libsdl
69 - >=media-video/ffmpeg-0.4.9_p20080326
70 + =media-video/ffmpeg-0.4.9_p20080326
71 )
72 )
73
74 @@ -183,7 +183,7 @@
75 use ${gui/-*} && guis="${guis},${gui/*-}"
76 done
77 guis=${guis#,}
78 - if [ -z ${gui} ]
79 + if [ -z "${guis}" ]
80 then
81 guis="GTK2,KDE"
82 fi
83
84
85
86 1.1 net-www/gnash/gnash-0.8.4.ebuild
87
88 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.4.ebuild?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.4.ebuild?rev=1.1&content-type=text/plain
90
91 Index: gnash-0.8.4.ebuild
92 ===================================================================
93 # Copyright 1999-2008 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95 # $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.4.ebuild,v 1.1 2008/10/19 11:49:10 loki_val Exp $
96
97 EAPI=1
98
99 inherit autotools nsplugins kde-functions qt3 multilib
100
101 set-kdedir 3.5
102
103 DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
104 HOMEPAGE="http://www.gnu.org/software/gnash"
105 SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2"
106
107 LICENSE="GPL-3"
108 SLOT="0"
109 KEYWORDS="~amd64 ~ppc ~x86"
110 IUSE="+agg -cairo dbus -fbcon -ffmpeg +gstreamer +gtk +kde +nsplugin -opengl -qt3 -sdl video_cards_i810"
111
112 RDEPEND="
113 agg? ( >=x11-libs/agg-2.5 )
114 opengl? (
115 !agg? (
116 virtual/opengl
117 gtk? ( x11-libs/gtkglext )
118 )
119 )
120 cairo? (
121 !opengl? (
122 !agg? (
123 x11-libs/cairo
124 )
125 )
126 )
127
128 !agg? ( !cairo? ( !opengl? ( >=x11-libs/agg-2.5 ) ) )
129 gtk? (
130 x11-libs/gtk+:2
131 x11-libs/pango
132 dev-libs/glib
133 dev-libs/atk
134 )
135 kde? ( kde-base/kdelibs:3.5 )
136 qt3? ( x11-libs/qt:3 )
137 sdl? ( media-libs/libsdl )
138 !gtk? ( !kde? ( !qt3? ( !sdl? ( !fbcon? (
139 x11-libs/gtk+:2
140 x11-libs/pango
141 dev-libs/glib
142 dev-libs/atk
143 kde-base/kdelibs:3.5
144 ) ) ) ) )
145 dev-libs/libxml2
146 sys-libs/zlib
147 media-libs/jpeg
148 media-libs/libpng
149 net-misc/curl
150 ffmpeg? (
151 !gstreamer? (
152 media-libs/libsdl
153 >=media-video/ffmpeg-0.4.9_p20080326
154 )
155 )
156
157 gstreamer? (
158 media-plugins/gst-plugins-ffmpeg
159 media-plugins/gst-plugins-mad
160 )
161 >=dev-libs/boost-1.35.0
162 x11-libs/libX11
163 x11-libs/libXi
164 x11-libs/libXmu
165 x11-libs/libXt
166 x11-proto/xproto
167 dbus? ( sys-apps/dbus )
168 sys-devel/libtool
169 "
170 DEPEND="${RDEPEND}
171 dev-util/pkgconfig"
172
173 #Tests currently not functional. Compilation fails. Use youtube instead.
174 RESTRICT="test"
175
176 pkg_setup() {
177 if use !gtk && use !kde && use !fbcon && use !qt3
178 then
179 einfo "No Graphical User Interface selected. Enabling kde and gtk"
180 einfo "since they are the defaults."
181 export defaultguis=1
182 fi
183
184 if use !agg && use !opengl && use cairo && use kde
185 then
186 eerror "The cairo renderer and the kde gui were selected"
187 eerror "They are incompatible with each other"
188 eerror "Disable one of them through the respective USE flag"
189 die "cairo and kde USE flags enabled at the same time"
190 fi
191
192 if use !agg && use opengl && use fbcon
193 then
194 eerror "The opengl renderer and the fbcon gui were selected"
195 eerror "They are incompatible with each other"
196 eerror "Disable one of them through the respective USE flag"
197 die "opengl and fbcon USE flags enabled at the same time"
198 fi
199
200 if use nsplugin && use !gtk && [ -z ${defaultguis} ]
201 then
202 eerror "The Firefox plugin was selected but not the GTK frontend."
203 eerror "Disable the nsplugin USE flag or enable the gtk USE flag"
204 die "nsplugin USE flag enabled with required gtk USE flag disabled"
205 fi
206
207 if use ffmpeg && use gstreamer
208 then
209 einfo "Only 1 audio output source can be compiled into ${PN}."
210 einfo "Selecting gstreamer, since that's upstream default."
211 einfo "To enable ffmpeg you must also disable gstreamer."
212 fi
213
214 if use agg
215 then
216 if use opengl || use cairo
217 then
218 einfo "Only 1 renderer can be activated at any one time."
219 einfo "If more than one renderer is activated, the order of preference is:"
220 einfo "agg > opengl > cairo"
221 fi
222 else
223 if use !opengl && use !cairo
224 then
225 einfo "No renderer selected from agg, opengl, cairo"
226 einfo "Default renderer agg selected."
227 fi
228 fi
229
230 if use !ffmpeg && use !gstreamer
231 then
232 ewarn "You did not select any media: ffmpeg gstreamer"
233 ewarn "You will not have sound!"
234 fi
235
236 }
237
238 src_unpack() {
239 unpack ${A}
240 cd "${S}"
241 epatch "${FILESDIR}"/${PN}-0.8.3-boost-dynamic-link.patch
242 eautoreconf
243 }
244
245 src_compile() {
246 local myconf
247
248 if use nsplugin ; then
249 myconf="${myconf} --enable-npapi --with-npapi-plugindir=/opt/netscape/plugins"
250 else
251 myconf="${myconf} --disable-npapi"
252 fi
253
254 #Select renderer.
255 if use agg ; then
256 myconf="${myconf} --enable-renderer=agg"
257 elif use opengl ; then
258 myconf="${myconf} --enable-renderer=ogl"
259 elif use cairo ; then
260 myconf="${myconf} --enable-renderer=cairo"
261 else
262 myconf="${myconf} --enable-renderer=agg"
263 fi
264
265 #Select which Graphical User Interfaces to build.
266 local guis="" \
267 gui=""
268 for gui in fbcon-FB gtk-GTK2 kde-KDE qt3-QT sdl-SDL
269 do
270 use ${gui/-*} && guis="${guis},${gui/*-}"
271 done
272 guis=${guis#,}
273 if [ -z "${guis}" ]
274 then
275 guis="GTK2,KDE"
276 fi
277
278 #Select which extensions to build.
279 local extensions="FILEIO" \
280 extension=""
281 for extension in dbus-DBUS gtk-GTK2 test-DEJAGNU
282 do
283 use ${extension%-*} && extensions="${extensions},${extension#*-}"
284 done
285
286 #Select audio output extension.
287 if use gstreamer
288 then
289 myconf="${myconf} --enable-media=gst"
290 elif use ffmpeg
291 then
292 myconf="${myconf} --enable-media=ffmpeg"
293 else
294 myconf="${myconf} --enable-media=none"
295 fi
296
297 econf \
298 $(use_enable video_cards_i810 i810-lod-bias) \
299 --disable-testsuite \
300 --enable-shared \
301 --disable-allstatic \
302 --enable-sdkinstall \
303 --enable-gui=${guis} \
304 --enable-extensions=${extensions} \
305 --with-ffmpeg-incl=/usr/include \
306 --with-kde-pluginprefix=${KDEDIR} \
307 --without-included-ltdl \
308 --with-ltdl-include=/usr/include \
309 --with-ltdl-lib=/usr/$(get_libdir) \
310 --with-plugins-install=system \
311 ${myconf} \
312 || die "econf failed"
313 emake || die "emake failed"
314 }
315
316 src_test() {
317 cd testsuite
318 make check || die "make check failed"
319 ./anaylse-results.sh > TESTRESULTS.txt
320 cat TESTRESULTS.txt
321 }
322
323 src_install() {
324 emake DESTDIR="${D}" install || die "emake install failed"
325
326 if use nsplugin
327 then
328 emake DESTDIR="${D}" install-plugin \
329 || die "emake install-plugin failed"
330 inst_plugin /opt/netscape/plugins/libgnashplugin.so
331 else
332 rm -rf "${D}/opt"
333 fi
334
335 if use kde
336 then
337 pushd plugin/klash &> /dev/null
338 make DESTDIR="${D}" install-plugin
339 popd &> /dev/null
340 fi
341
342 dodoc AUTHORS ChangeLog* NEWS README
343
344 }
345
346 pkg_postinst() {
347 ewarn "BETA"
348 ewarn "gnash is still in heavy development"
349 ewarn "please report gnash bugs upstream to the gnash devs"
350 }