Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xulrunner: ChangeLog xulrunner-1.9.1.ebuild
Date: Tue, 30 Jun 2009 17:14:19
Message-Id: E1MLguO-0003Il-Pq@stork.gentoo.org
1 nirbheek 09/06/30 17:14:16
2
3 Modified: ChangeLog
4 Added: xulrunner-1.9.1.ebuild
5 Log:
6 Bump to 1.9.1, part of firefox-3.5
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.215 net-libs/xulrunner/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.215&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.215&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.214&r2=1.215
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
19 retrieving revision 1.214
20 retrieving revision 1.215
21 diff -u -r1.214 -r1.215
22 --- ChangeLog 29 Jun 2009 16:42:04 -0000 1.214
23 +++ ChangeLog 30 Jun 2009 17:14:16 -0000 1.215
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.214 2009/06/29 16:42:04 nirbheek Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.215 2009/06/30 17:14:16 nirbheek Exp $
29 +
30 +*xulrunner-1.9.1 (30 Jun 2009)
31 +
32 + 30 Jun 2009; <nirbheek@g.o> +xulrunner-1.9.1.ebuild:
33 + Bump to 1.9.1, part of firefox-3.5
34
35 *xulrunner-1.9.0.11-r1 (29 Jun 2009)
36
37
38
39
40 1.1 net-libs/xulrunner/xulrunner-1.9.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: xulrunner-1.9.1.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.ebuild,v 1.1 2009/06/30 17:14:16 nirbheek 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.5}"
59 MAJ_PV="${PV/_*/}"
60 PATCH="${PN}-${MAJ_PV}-patches-0.1"
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 mirror://gentoo/${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="debug python" # qt-experimental
71
72 # nspr-4.8 due to BMO #499144
73 RDEPEND="java? ( >=virtual/jre-1.4 )
74 python? ( >=dev-lang/python-2.3 )
75 qt-experimental? (
76 x11-libs/qt-gui
77 x11-libs/qt-core )
78
79 >=sys-devel/binutils-2.16.1
80 >=dev-libs/nss-3.12.3
81 >=dev-libs/nspr-4.8
82 media-libs/alsa-lib
83 >=dev-db/sqlite-3.6.7
84 >=app-text/hunspell-1.2
85 >=media-libs/lcms-1.17
86
87 >=x11-libs/cairo-1.8.8[X]
88 x11-libs/pango[X]"
89
90 DEPEND="java? ( >=virtual/jdk-1.4 )
91 ${RDEPEND}
92 dev-util/pkgconfig"
93
94 S="${WORKDIR}/mozilla-${MAJ_PV}"
95
96 # Needed by src_compile() and src_install().
97 # Would do in pkg_setup but that loses the export attribute, they
98 # become pure shell variables.
99 export BUILD_OFFICIAL=1
100 export MOZILLA_OFFICIAL=1
101
102 pkg_setup(){
103 java-pkg-opt-2_pkg_setup
104 }
105
106 src_prepare() {
107 # Apply our patches
108 EPATCH_SUFFIX="patch" \
109 EPATCH_FORCE="yes" \
110 epatch "${WORKDIR}"
111
112 # Same as in config/autoconf.mk.in
113 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
114 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
115 # Gentoo install dirs
116 sed -e "s/@PV@/${MAJ_PV}/" -i "${S}/config/autoconf.mk.in" \
117 || die "\${MAJ_PV} sed failed!"
118
119 # enable gnomebreakpad by default
120 sed -i -e 's/GNOME_DISABLE_CRASH_DIALOG=1/GNOME_DISABLE_CRASH_DIALOG=0/g' \
121 "${S}/build/unix/run-mozilla.sh"
122
123 eautoreconf
124
125 cd js/src
126 eautoreconf
127
128
129 # We need to re-patch this because autoreconf overwrites it
130 # epatch "${FILESDIR}"/patch/000_flex-configure-LANG.patch
131 }
132
133 src_configure() {
134 ####################################
135 #
136 # mozconfig, CFLAGS and CXXFLAGS setup
137 #
138 ####################################
139
140 mozconfig_init
141 mozconfig_config
142
143 MEXTENSIONS="default"
144 if use python; then
145 MEXTENSIONS="${MEXTENSIONS},python/xpcom"
146 fi
147
148 # It doesn't compile on alpha without this LDFLAGS
149 use alpha && append-ldflags "-Wl,--no-relax"
150
151 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
152 mozconfig_annotate '' --enable-application=xulrunner
153 mozconfig_annotate '' --disable-mailnews
154 mozconfig_annotate 'broken' --disable-crashreporter
155 mozconfig_annotate '' --enable-image-encoder=all
156 mozconfig_annotate '' --enable-canvas
157 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
158 # regardless of java setting.
159 mozconfig_annotate '' --enable-oji --enable-mathml
160 mozconfig_annotate 'places' --enable-storage --enable-places
161 mozconfig_annotate '' --enable-safe-browsing
162
163 # System-wide install specs
164 mozconfig_annotate '' --disable-installer
165 mozconfig_annotate '' --disable-updater
166 mozconfig_annotate '' --disable-strip
167 mozconfig_annotate '' --disable-install-strip
168
169 # Use system libraries
170 mozconfig_annotate '' --enable-system-cairo
171 mozconfig_annotate '' --enable-system-hunspell
172 mozconfig_annotate '' --enable-system-sqlite
173 mozconfig_annotate '' --with-system-nspr
174 mozconfig_annotate '' --with-system-nss
175 mozconfig_annotate '' --enable-system-lcms
176 mozconfig_annotate '' --with-system-bz2
177
178 # IUSE qt-experimental
179 # if use qt-experimental; then
180 # ewarn "You are enabling the EXPERIMENTAL qt toolkit"
181 # ewarn "Usage is at your own risk"
182 # ewarn "Known to be broken. DO NOT file bugs."
183 # mozconfig_annotate '' --disable-system-cairo
184 # mozconfig_annotate 'qt-experimental' --enable-default-toolkit=cairo-qt
185 # else
186 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
187 # fi
188
189 # Other ff-specific settings
190 mozconfig_annotate '' --enable-jsd
191 mozconfig_annotate '' --enable-xpctools
192 mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
193
194 #disable java
195 if ! use java ; then
196 mozconfig_annotate '-java' --disable-javaxpcom
197 fi
198
199 # Debug
200 if use debug; then
201 mozconfig_annotate 'debug' --disable-optimize
202 mozconfig_annotate 'debug' --enable-debug=-ggdb
203 mozconfig_annotate 'debug' --enable-debug-modules=all
204 mozconfig_annotate 'debug' --enable-debugger-info-modules
205 fi
206
207 # Finalize and report settings
208 mozconfig_final
209
210 if [[ $(gcc-major-version) -lt 4 ]]; then
211 append-cxxflags -fno-stack-protector
212 fi
213
214
215 ####################################
216 #
217 # Configure and build
218 #
219 ####################################
220
221 CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
222 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
223 econf || die
224
225 # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
226 # to econf, but the quotes cause configure to fail.
227 sed -i -e \
228 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \
229 "${S}"/config/autoconf.mk \
230 "${S}"/toolkit/content/buildconfig.html
231 }
232
233 src_install() {
234 emake DESTDIR="${D}" install || die "emake install failed"
235
236 rm "${D}"/usr/bin/xulrunner
237
238 dodir /usr/bin
239 dosym "${MOZLIBDIR}/xulrunner" "${ROOT}/usr/bin/xulrunner-${MAJ_PV}"
240
241 # Install python modules
242 dosym "${MOZLIBDIR}/python/xpcom" "${ROOT}/$(python_get_sitedir)/xpcom"
243
244 # env.d file for ld search path
245 dodir /etc/env.d
246 echo "LDPATH=${MOZLIBDIR}" > "${D}"/etc/env.d/08xulrunner || die "env.d failed"
247
248 # Add vendor
249 echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \
250 >> "${D}/${MOZLIBDIR}/defaults/pref/vendor.js"
251
252 if use java ; then
253 java-pkg_regjar "${D}/${MOZLIBDIR}/javaxpcom.jar"
254 java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar"
255 java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaInterfaces.jar"
256 fi
257 }
258
259 pkg_postinst() {
260 if use python; then
261 python_need_rebuild
262 python_mod_optimize "${MOZLIBDIR}/python"
263 fi
264 }
265
266 pkg_postrm() {
267 if use python; then
268 python_mod_cleanup "${MOZLIBDIR}/python"
269 fi
270 }