Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xulrunner: ChangeLog xulrunner-1.9.2.12-r1.ebuild
Date: Fri, 03 Dec 2010 12:56:14
Message-Id: 20101203125600.50CE620057@flycatcher.gentoo.org
1 anarchy 10/12/03 12:55:59
2
3 Modified: ChangeLog
4 Added: xulrunner-1.9.2.12-r1.ebuild
5 Log:
6 Resovle anitmated gif rendering when using cairo-1.10.0, bug #337813
7
8 (Portage version: 2.2.0_alpha6/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.379 net-libs/xulrunner/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.379&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.379&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.378&r2=1.379
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
20 retrieving revision 1.378
21 retrieving revision 1.379
22 diff -u -r1.378 -r1.379
23 --- ChangeLog 14 Nov 2010 12:44:53 -0000 1.378
24 +++ ChangeLog 3 Dec 2010 12:55:59 -0000 1.379
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-libs/xulrunner
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.378 2010/11/14 12:44:53 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.379 2010/12/03 12:55:59 anarchy Exp $
30 +
31 +*xulrunner-1.9.2.12-r1 (03 Dec 2010)
32 +
33 + 03 Dec 2010; Jory A. Pratt <anarchy@g.o>
34 + +xulrunner-1.9.2.12-r1.ebuild, +files/fix-animated-gifs.patch:
35 + Resovle anitmated gif rendering when using cairo-1.10.0, bug #337813
36
37 14 Nov 2010; Raúl Porcel <armin76@g.o> xulrunner-1.9.2.12.ebuild:
38 alpha/ia64/sparc stable wrt #342847
39
40
41
42 1.1 net-libs/xulrunner/xulrunner-1.9.2.12-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.12-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.12-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xulrunner-1.9.2.12-r1.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/net-libs/xulrunner/xulrunner-1.9.2.12-r1.ebuild,v 1.1 2010/12/03 12:55:59 anarchy Exp $
52
53 EAPI="3"
54 WANT_AUTOCONF="2.1"
55
56 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools python prefix pax-utils
57
58 MY_PV="${PV/_rc/rc}" # Handle beta
59 MY_PV="${MY_PV/1.9.2/3.6}"
60 MAJ_PV="1.9.2" # from mozilla-* branch name
61 PATCH="${PN}-1.9.2-patches-0.7"
62
63 DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications"
64 HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner"
65 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2
66 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
67
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
69 SLOT="1.9"
70 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
71 IUSE="+alsa debug +ipc libnotify system-sqlite wifi"
72
73 RDEPEND="
74 >=sys-devel/binutils-2.16.1
75 >=dev-libs/nss-3.12.8
76 >=dev-libs/nspr-4.8.6
77 system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete] )
78 alsa? ( media-libs/alsa-lib )
79 >=app-text/hunspell-1.2
80 >=x11-libs/cairo-1.8.8[X]
81 x11-libs/pango[X]
82 x11-libs/libXt
83 x11-libs/pixman
84 >=dev-libs/libevent-1.4.7
85 wifi? ( net-wireless/wireless-tools )
86 libnotify? ( >=x11-libs/libnotify-0.4 )"
87
88 DEPEND="java? ( >=virtual/jdk-1.4 )
89 ${RDEPEND}
90 =dev-lang/python-2*[threads]
91 dev-util/pkgconfig"
92
93 # virtual/jre should not be in DEPEND. bug 325981
94 RDEPEND="java? ( >=virtual/jre-1.4 ) ${RDEPEND}"
95
96 S="${WORKDIR}/mozilla-${MAJ_PV}"
97
98 pkg_setup() {
99 # Ensure we always build with C locale.
100 export LANG="C"
101 export LC_ALL="C"
102 export LC_MESSAGES="C"
103 export LC_CTYPE="C"
104
105 java-pkg-opt-2_pkg_setup
106
107 python_set_active_version 2
108 }
109
110 src_prepare() {
111 # Apply our patches
112 EPATCH_EXCLUDE="2001_mozilla_ps_pdf_simplify_operators.patch" \
113 EPATCH_SUFFIX="patch" \
114 EPATCH_FORCE="yes" \
115 epatch "${WORKDIR}"
116
117 epatch "${FILESDIR}/bug-606109.patch"
118 epatch "${FILESDIR}/${PN}-1.9.2-gtk+-2.21.patch"
119 epatch "${FILESDIR}/fix-animated-gifs.patch"
120
121 eprefixify \
122 extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \
123 xpcom/build/nsXPCOMPrivate.h \
124 xulrunner/installer/Makefile.in \
125 xulrunner/app/nsRegisterGREUnix.cpp
126
127 # fix double symbols due to double -ljemalloc
128 sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \
129 xulrunner/stub/Makefile.in || die
130
131 # Allow user to apply additional patches without modifing ebuild
132 epatch_user
133
134 # Same as in config/autoconf.mk.in
135 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
136 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
137
138 # Gentoo install dirs
139 sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \
140 || die "${MAJ_PV} sed failed!"
141
142 # Enable gnomebreakpad
143 if use debug ; then
144 sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
145 "${S}"/build/unix/run-mozilla.sh || die "sed failed!"
146 fi
147
148 eautoreconf
149
150 cd js/src
151 eautoreconf
152 }
153
154 src_configure() {
155 ####################################
156 #
157 # mozconfig, CFLAGS and CXXFLAGS setup
158 #
159 ####################################
160
161 mozconfig_init
162 mozconfig_config
163
164 MEXTENSIONS="default"
165
166 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
167
168 # It doesn't compile on alpha without this LDFLAGS
169 use alpha && append-ldflags "-Wl,--no-relax"
170
171 mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
172 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
173 mozconfig_annotate '' --enable-application=xulrunner
174 mozconfig_annotate '' --disable-mailnews
175 mozconfig_annotate 'broken' --disable-crashreporter
176 mozconfig_annotate '' --enable-image-encoder=all
177 mozconfig_annotate '' --enable-canvas
178 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
179 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
180 # regardless of java setting.
181 mozconfig_annotate '' --enable-oji --enable-mathml
182 mozconfig_annotate 'places' --enable-storage --enable-places
183 mozconfig_annotate '' --enable-safe-browsing
184
185 # Build mozdevelop permately
186 mozconfig_annotate '' --enable-jsd --enable-xpctools
187
188 # System-wide install specs
189 mozconfig_annotate '' --disable-installer
190 mozconfig_annotate '' --disable-updater
191 mozconfig_annotate '' --disable-strip
192 mozconfig_annotate '' --disable-install-strip
193
194 # Use system libraries
195 mozconfig_annotate '' --enable-system-cairo
196 mozconfig_annotate '' --enable-system-hunspell
197 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
198 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
199 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
200 mozconfig_annotate '' --with-system-bz2
201 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
202
203 mozconfig_use_enable ipc # +ipc, upstream default
204 mozconfig_use_enable libnotify
205 mozconfig_use_enable java javaxpcom
206 mozconfig_use_enable wifi necko-wifi
207 mozconfig_use_enable alsa ogg
208 mozconfig_use_enable alsa wave
209 mozconfig_use_enable system-sqlite
210
211 # Debug
212 if use debug ; then
213 mozconfig_annotate 'debug' --disable-optimize
214 mozconfig_annotate 'debug' --enable-debug=-ggdb
215 mozconfig_annotate 'debug' --enable-debug-modules=all
216 mozconfig_annotate 'debug' --enable-debugger-info-modules
217 fi
218
219 # Finalize and report settings
220 mozconfig_final
221
222 if [[ $(gcc-major-version) -lt 4 ]]; then
223 append-flags -fno-stack-protector
224 fi
225
226 ####################################
227 #
228 # Configure and build
229 #
230 ####################################
231
232 # Disable no-print-directory
233 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
234
235 # Ensure that are plugins dir is enabled as default
236 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
237 "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
238
239 # hack added to workaround bug 299905 on hosts with libc that doesn't
240 # support tls, (probably will only hit this condition with Gentoo Prefix)
241 tc-has-tls -l || export ac_cv_thread_keyword=no
242
243 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
244 }
245
246 src_install() {
247 emake DESTDIR="${D}" install || die "emake install failed"
248
249 rm "${ED}"/usr/bin/xulrunner
250
251 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
252 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
253
254 if has_multilib_profile; then
255 local config
256 for config in "${ED}"/etc/gre.d/*.system.conf ; do
257 mv "${config}" "${config%.conf}.${CHOST}.conf"
258 done
259 fi
260
261 dodir /usr/bin
262 dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die
263
264 # env.d file for ld search path
265 dodir /etc/env.d
266 echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed"
267
268 # Add our defaults to xulrunner and out of firefox
269 cp "${FILESDIR}"/xulrunner-default-prefs.js \
270 "${ED}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \
271 die "failed to cp xulrunner-default-prefs.js"
272
273 pax-mark m "${D}"/${MOZLIBDIR}/plugin-container
274
275 if use java ; then
276 java-pkg_regjar "${ED}/${MOZLIBDIR}/javaxpcom.jar"
277 java-pkg_regso "${ED}/${MOZLIBDIR}/libjavaxpcomglue.so"
278 java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaGlue.jar"
279 java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaInterfaces.jar"
280 fi
281 }
282
283 pkg_postinst() {
284 ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild"
285 ewarn "If that does not fix the problem, rebuild dev-libs/nss"
286 ewarn "Try dev-util/lafilefixer if you get build failures related to .la files"
287
288 einfo
289 einfo "All prefs can be overridden by the user. The preferences are to make"
290 einfo "use of xulrunner out of the box on an average system without the user"
291 einfo "having to go through and enable the basics."
292
293 einfo
294 ewarn "Any package that requires xulrunner:1.9 slot could and most likely will"
295 ewarn "have issues. These issues should be reported to maintainer, and mozilla herd"
296 ewarn "should be cc'd on the bug report. Thank you anarchy@g.o ."
297 }