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