Gentoo Archives: gentoo-commits

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