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