Gentoo Archives: gentoo-commits

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