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: xulrunner-1.9.1.7.ebuild ChangeLog
Date: Fri, 08 Jan 2010 02:58:49
Message-Id: E1NT53h-0008Hz-Ss@stork.gentoo.org
1 anarchy 10/01/08 02:58:41
2
3 Modified: ChangeLog
4 Added: xulrunner-1.9.1.7.ebuild
5 Log:
6 stability bump
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.286 net-libs/xulrunner/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.286&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.286&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.285&r2=1.286
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
19 retrieving revision 1.285
20 retrieving revision 1.286
21 diff -u -r1.285 -r1.286
22 --- ChangeLog 2 Jan 2010 18:29:55 -0000 1.285
23 +++ ChangeLog 8 Jan 2010 02:58:41 -0000 1.286
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-libs/xulrunner
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.285 2010/01/02 18:29:55 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.286 2010/01/08 02:58:41 anarchy Exp $
29 +
30 +*xulrunner-1.9.1.7 (08 Jan 2010)
31 +
32 + 08 Jan 2010; <anarchy@g.o> +xulrunner-1.9.1.7.ebuild:
33 + Update for stability issues
34
35 02 Jan 2010; Raúl Porcel <armin76@g.o> xulrunner-1.9.1.6.ebuild:
36 alpha/arm/ia64/sparc stable
37
38
39
40 1.1 net-libs/xulrunner/xulrunner-1.9.1.7.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.7.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.7.ebuild?rev=1.1&content-type=text/plain
44
45 Index: xulrunner-1.9.1.7.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.7.ebuild,v 1.1 2010/01/08 02:58:41 anarchy Exp $
50
51 EAPI="2"
52 WANT_AUTOCONF="2.1"
53
54 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools
55
56 MY_PV="${PV/_beta/b}" # Handle betas
57 MY_PV="${PV/_/}" # Handle rc1, rc2 etc
58 MY_PV="${MY_PV/1.9.1.7/3.5.7}"
59 MAJ_PV="1.9.1" # from mozilla-* branch name
60 PATCH="${PN}-1.9.1.5-patches-0.1"
61
62 DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications"
63 HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner"
64 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2
65 http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2"
66
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
68 SLOT="1.9"
69 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
70 IUSE="+alsa debug python sqlite" # qt-experimental
71
72 # qt-experimental? (
73 # x11-libs/qt-gui
74 # x11-libs/qt-core )
75
76 # nspr-4.8 due to BMO #499144
77 RDEPEND="java? ( >=virtual/jre-1.4 )
78 >=dev-lang/python-2.3[threads]
79 >=sys-devel/binutils-2.16.1
80 >=dev-libs/nss-3.12.3
81 >=dev-libs/nspr-4.8
82 sqlite? ( >=dev-db/sqlite-3.6.20-r1[fts3] )
83 alsa? ( media-libs/alsa-lib )
84 >=app-text/hunspell-1.2
85 >=media-libs/lcms-1.17
86 >=x11-libs/cairo-1.8.8[X]
87 x11-libs/pango[X]
88 x11-libs/libXt"
89
90 DEPEND="java? ( >=virtual/jdk-1.4 )
91 ${RDEPEND}
92 dev-util/pkgconfig"
93
94 S="${WORKDIR}/mozilla-${MAJ_PV}"
95
96 pkg_setup() {
97 java-pkg-opt-2_pkg_setup
98
99 if use sqlite ; then
100 elog "You are enabling system sqlite. Do not file a bug with gentoo if you have"
101 elog "issues that arise from enabling system sqlite. All bugs will be considered"
102 elog "invalid. All patches are welcomed to fix any issues that might be found with"
103 elog "system sqlite. If you are starting with a fresh profile you can enable sqlite"
104 elog "without any major issues."
105 epause 10
106 fi
107 }
108
109 src_prepare() {
110 # Apply our patches
111 EPATCH_EXCLUDE="136-fix_ftbfs_with_cairo_fb.patch" \
112 EPATCH_SUFFIX="patch" \
113 EPATCH_FORCE="yes" \
114 epatch "${WORKDIR}"
115
116 # Same as in config/autoconf.mk.in
117 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
118 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
119
120 # Gentoo install dirs
121 sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \
122 || die "${MAJ_PV} sed failed!"
123
124 # Enable gnomebreakpad
125 if use debug ; then
126 sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
127 "${S}"/build/unix/run-mozilla.sh || die "sed failed!"
128 fi
129
130 eautoreconf
131
132 cd js/src
133 eautoreconf
134
135 # Patch in support to reset all LANG variables to C
136 # Do NOT add to patchset as it must be applied after eautoreconf
137 cd "${S}"
138 epatch "${FILESDIR}/000_flex-configure-LANG.patch"
139 }
140
141 src_configure() {
142 ####################################
143 #
144 # mozconfig, CFLAGS and CXXFLAGS setup
145 #
146 ####################################
147
148 mozconfig_init
149 mozconfig_config
150
151 MEXTENSIONS="default"
152 if use python ; then
153 MEXTENSIONS="${MEXTENSIONS},python/xpcom"
154 fi
155
156 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
157
158 # It doesn't compile on alpha without this LDFLAGS
159 use alpha && append-ldflags "-Wl,--no-relax"
160
161 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
162 mozconfig_annotate '' --enable-application=xulrunner
163 mozconfig_annotate '' --disable-mailnews
164 mozconfig_annotate 'broken' --disable-crashreporter
165 mozconfig_annotate '' --enable-image-encoder=all
166 mozconfig_annotate '' --enable-canvas
167 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
168 # regardless of java setting.
169 mozconfig_annotate '' --enable-oji --enable-mathml
170 mozconfig_annotate 'places' --enable-storage --enable-places
171 mozconfig_annotate '' --enable-safe-browsing
172
173 # System-wide install specs
174 mozconfig_annotate '' --disable-installer
175 mozconfig_annotate '' --disable-updater
176 mozconfig_annotate '' --disable-strip
177 mozconfig_annotate '' --disable-install-strip
178
179 # Use system libraries
180 mozconfig_annotate '' --enable-system-cairo
181 mozconfig_annotate '' --enable-system-hunspell
182 mozconfig_annotate '' --with-system-nspr
183 mozconfig_annotate '' --with-system-nss
184 mozconfig_annotate '' --enable-system-lcms
185 mozconfig_annotate '' --with-system-bz2
186
187 if use sqlite ; then
188 mozconfig_annotate 'sqlite' --enable-system-sqlite
189 else
190 mozconfig_annotate '-sqlite' --disable-system-sqlite
191 fi
192
193 # IUSE qt-experimental
194 # if use qt-experimental ; then
195 # ewarn "You are enabling the EXPERIMENTAL qt toolkit"
196 # ewarn "Usage is at your own risk"
197 # ewarn "Known to be broken. DO NOT file bugs."
198 # mozconfig_annotate '' --disable-system-cairo
199 # mozconfig_annotate 'qt-experimental' --enable-default-toolkit=cairo-qt
200 # else
201 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
202 # fi
203
204 # Other ff-specific settings
205 mozconfig_annotate '' --enable-jsd
206 mozconfig_annotate '' --enable-xpctools
207 mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
208
209 # Disable/Enable audio support based on USE
210 mozconfig_use_enable alsa ogg
211 mozconfig_use_enable alsa wave
212
213 # Disable java
214 if ! use java ; then
215 mozconfig_annotate '-java' --disable-javaxpcom
216 fi
217
218 # Debug
219 if use debug ; then
220 mozconfig_annotate 'debug' --disable-optimize
221 mozconfig_annotate 'debug' --enable-debug=-ggdb
222 mozconfig_annotate 'debug' --enable-debug-modules=all
223 mozconfig_annotate 'debug' --enable-debugger-info-modules
224 fi
225
226 # Finalize and report settings
227 mozconfig_final
228
229 if [[ $(gcc-major-version) -lt 4 ]]; then
230 append-flags -fno-stack-protector
231 fi
232
233 ####################################
234 #
235 # Configure and build
236 #
237 ####################################
238
239 # Disable no-print-directory
240 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
241
242 # Ensure that are plugins dir is enabled as default
243 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
244 "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
245
246 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
247 }
248
249 src_install() {
250 emake DESTDIR="${D}" install || die "emake install failed"
251
252 rm "${D}"/usr/bin/xulrunner
253
254 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
255 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
256
257 dodir /usr/bin
258 dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die
259
260 # Install python modules
261 dosym "${MOZLIBDIR}/python/xpcom" "/$(python_get_sitedir)/xpcom" || die
262
263 # env.d file for ld search path
264 dodir /etc/env.d
265 echo "LDPATH=${MOZLIBDIR}" > "${D}"/etc/env.d/08xulrunner || die "env.d failed"
266
267 # Add our defaults to xulrunner and out of firefox
268 cp "${FILESDIR}"/xulrunner-default-prefs.js \
269 "${D}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || die "failed to cp xulrunner-default-prefs.js"
270
271 if use java ; then
272 java-pkg_regjar "${D}/${MOZLIBDIR}/javaxpcom.jar"
273 java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar"
274 java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaInterfaces.jar"
275 fi
276 }
277
278 pkg_postinst() {
279
280 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
281
282 if use python ; then
283 python_need_rebuild
284 python_mod_optimize "${MOZLIBDIR}/python"
285 fi
286
287 ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild"
288 ewarn "If that does not fix the problem, rebuild dev-libs/nss"
289 ewarn "Try dev-util/lafilefixer if you get build failures related to .la files"
290
291 einfo
292 einfo "All prefs can be overridden by the user. The preferences are to make"
293 einfo "use of xulrunner out of the box on an average system without the user"
294 einfo "having to go through and enable the basics."
295
296 einfo
297 ewarn "Please remember to rebuild your browser(s) after update to prevent an xpcom error."
298 ewarn "This bump is needed in order to bring icecat to the tree to replace iceweasel useflag."
299 }
300
301 pkg_postrm() {
302
303 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
304
305 if use python ; then
306 python_mod_cleanup "${MOZLIBDIR}/python"
307 fi
308 }