Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-www/gnash: ChangeLog gnash-0.8.1-r1.ebuild
Date: Sat, 12 Jan 2008 03:49:41
Message-Id: E1JDXN9-0003FP-CS@stork.gentoo.org
1 vapier 08/01/12 03:49:27
2
3 Modified: ChangeLog
4 Added: gnash-0.8.1-r1.ebuild
5 Log:
6 Add support for more USE flags and let the ebuild select between competing features rather than aborting #200759.
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.53 net-www/gnash/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?rev=1.53&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?rev=1.53&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/ChangeLog?r1=1.52&r2=1.53
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v
19 retrieving revision 1.52
20 retrieving revision 1.53
21 diff -u -r1.52 -r1.53
22 --- ChangeLog 21 Nov 2007 09:41:17 -0000 1.52
23 +++ ChangeLog 12 Jan 2008 03:49:26 -0000 1.53
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-www/gnash
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v 1.52 2007/11/21 09:41:17 genstef Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/ChangeLog,v 1.53 2008/01/12 03:49:26 vapier Exp $
30 +
31 +*gnash-0.8.1-r1 (12 Jan 2008)
32 +
33 + 12 Jan 2008; Mike Frysinger <vapier@g.o> +gnash-0.8.1-r1.ebuild:
34 + Add support for more USE flags and let the ebuild select between competing
35 + features rather than aborting #200759.
36
37 21 Nov 2007; Stefan Schweizer <genstef@g.o> gnash-9999.ebuild:
38 change cvs ebuild to a stub to point to the cvs ebuild overlay made by
39
40
41
42 1.1 net-www/gnash/gnash-0.8.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/gnash/gnash-0.8.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gnash-0.8.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.1-r1.ebuild,v 1.1 2008/01/12 03:49:26 vapier Exp $
52
53 inherit nsplugins kde-functions qt3 multilib
54 set-kdedir eutils
55
56 DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
57 HOMEPAGE="http://www.gnu.org/software/gnash"
58 SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2"
59
60 LICENSE="GPL-3"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
63 IUSE="agg cairo fbcon ffmpeg fltk gstreamer gtk kde mad nsplugin opengl qt sdl video_cards_i810"
64
65 RDEPEND="
66 agg? ( >=x11-libs/agg-2.5 )
67 cairo? ( x11-libs/cairo )
68 opengl? (
69 virtual/opengl
70 gtk? ( x11-libs/gtkglext )
71 )
72 !agg? ( !cairo? ( !opengl? ( >=x11-libs/agg-2.5 ) ) )
73 gtk? (
74 >x11-libs/gtk+-2
75 x11-libs/pango
76 dev-libs/glib
77 dev-libs/atk
78 )
79 kde? ( kde-base/kdelibs )
80 qt? ( x11-libs/qt )
81 sdl? ( media-libs/libsdl )
82 fltk? ( x11-libs/fltk )
83 !gtk? ( !kde? ( !qt? ( !sdl? ( !fltk? ( !fbcon? (
84 >x11-libs/gtk+-2
85 x11-libs/pango
86 dev-libs/glib
87 dev-libs/atk
88 kde-base/kdelibs
89 ) ) ) ) ) )
90 dev-libs/libxml2
91 sys-libs/zlib
92 media-libs/jpeg
93 media-libs/libpng
94 net-misc/curl
95 ffmpeg? (
96 media-libs/libsdl
97 media-video/ffmpeg
98 )
99 gstreamer? (
100 media-plugins/gst-plugins-ffmpeg
101 media-plugins/gst-plugins-mad
102 )
103 mad? ( media-libs/libmad )
104 dev-libs/boost
105 x11-libs/libX11
106 x11-libs/libXi
107 x11-libs/libXmu
108 x11-libs/libXt
109 x11-proto/xproto
110 "
111 DEPEND="${RDEPEND}
112 dev-util/pkgconfig"
113
114 pkg_setup() {
115 if ! use agg && ! use opengl && use cairo && use kde ; then
116 eerror "The cairo renderer and the kde gui were selected"
117 eerror "They are incompatible with each other"
118 eerror "Disable one of them through the respective USE flag"
119 die "cairo and kde USE flags enabled at the same time"
120 fi
121
122 if ! use agg && use opengl && ( use fbcon || use fltk ) ; then
123 eerror "The opengl renderer and the fb/fltk guis were selected"
124 eerror "They are incompatible with each other"
125 eerror "Disable one of them through the respective USE flag"
126 die "opengl and fbcon/fltk USE flags enabled at the same time"
127 fi
128
129 if use nsplugin && use !gtk ; then
130 eerror "The Firefox plugin was selected but not the GTK frontend."
131 eerror "Disable the nsplugin USE flag or enable the gtk USE flag"
132 die "nsplugin USE flag enabled with required gtk USE flag disabled"
133 fi
134
135 if has_version '<dev-libs/boost-1.34' && ! built_with_use dev-libs/boost threads ; then
136 eerror "dev-libs/boost must have been built with the 'threads' USE flag enabled"
137 die "dev-libs/boost not built with threads USE flag enabled"
138 fi
139 }
140
141 src_compile() {
142 local myconf
143
144 if use nsplugin ; then
145 myconf="${myconf} --with-plugindir=/opt/netscape/plugins"
146 else
147 myconf="${myconf} --disable-nsapi"
148 fi
149
150 if use agg ; then
151 myconf="${myconf} --enable-renderer=agg"
152 elif use opengl ; then
153 myconf="${myconf} --enable-renderer=ogl"
154 elif use cairo ; then
155 myconf="${myconf} --enable-renderer=cairo"
156 else
157 ewarn "You did not select a renderer from: agg cairo opengl"
158 ewarn " - Default of agg has been selected for you"
159 myconf="${myconf} --enable-renderer=agg"
160 fi
161
162 local gui=""
163 use fbcon && gui="${gui},fb"
164 use fltk && gui="${gui},fltk"
165 use gtk && gui="${gui},gtk"
166 use kde && gui="${gui},kde"
167 use qt && gui="${gui},qt"
168 use sdl && gui="${gui},sdl"
169 gui=${gui#,}
170 if [[ -z ${gui} ]] ; then
171 ewarn "You did not select a gui from: fbcon fltk gtk kde qt sdl"
172 ewarn " - Default of gtk,kde has been selected for you"
173 gui="gtk,kde"
174 fi
175
176 if use ffmpeg ; then
177 myconf="${myconf} --enable-media=ffmpeg"
178 elif use gstreamer ; then
179 myconf="${myconf} --enable-media=gst"
180 elif use mad ; then
181 myconf="${myconf} --enable-media=mad"
182 else
183 ewarn "You did not select media: ffmpeg gstreamer mad"
184 ewarn " - You will not have sound"
185 myconf="${myconf} --enable-media=ffmpeg"
186 fi
187
188 econf \
189 $(use_enable video_cards_i810 i810-lod-bias) \
190 --enable-gui=${gui} \
191 ${myconf} \
192 || die "econf failed"
193 emake || die "emake failed"
194 }
195
196 src_install() {
197 emake DESTDIR="${D}" install || die "emake install failed"
198 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
199 || rm -rf "${D}/opt"
200 dodoc AUTHORS ChangeLog NEWS README
201 }
202
203 pkg_postinst() {
204 ewarn "ALPHA"
205 ewarn "gnash is still in heavy development"
206 ewarn "please report gnash bugs upstream to the gnash devs"
207 }
208
209
210
211 --
212 gentoo-commits@l.g.o mailing list