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