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