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