Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xulrunner: ChangeLog xulrunner-1.9.2.17.ebuild xulrunner-1.9.2.15.ebuild
Date: Fri, 29 Apr 2011 14:25:44
Message-Id: 20110429142532.7654A20054@flycatcher.gentoo.org
1 polynomial-c 11/04/29 14:25:32
2
3 Modified: ChangeLog
4 Added: xulrunner-1.9.2.17.ebuild
5 Removed: xulrunner-1.9.2.15.ebuild
6 Log:
7 Version bump. Removed old
8
9 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.410 net-libs/xulrunner/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.410&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.410&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.409&r2=1.410
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
21 retrieving revision 1.409
22 retrieving revision 1.410
23 diff -u -r1.409 -r1.410
24 --- ChangeLog 17 Apr 2011 23:47:46 -0000 1.409
25 +++ ChangeLog 29 Apr 2011 14:25:32 -0000 1.410
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-libs/xulrunner
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.409 2011/04/17 23:47:46 anarchy Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.410 2011/04/29 14:25:32 polynomial-c Exp $
31 +
32 +*xulrunner-1.9.2.17 (29 Apr 2011)
33 +
34 + 29 Apr 2011; Lars Wendler <polynomial-c@g.o>
35 + -xulrunner-1.9.2.15.ebuild, +xulrunner-1.9.2.17.ebuild:
36 + Version bump. Removed old.
37
38 17 Apr 2011; Jory A. Pratt <anarchy@g.o> xulrunner-2.0-r1.ebuild:
39 Update patchset to support libpng-1.5 and gcc-4.6
40
41
42
43 1.1 net-libs/xulrunner/xulrunner-1.9.2.17.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.17.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.17.ebuild?rev=1.1&content-type=text/plain
47
48 Index: xulrunner-1.9.2.17.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.17.ebuild,v 1.1 2011/04/29 14:25:32 polynomial-c Exp $
53
54 EAPI="3"
55 WANT_AUTOCONF="2.1"
56
57 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools python prefix pax-utils
58
59 MY_PV="${PV/_rc/rc}" # Handle beta
60 MY_PV="${MY_PV/1.9.2/3.6}"
61 MAJ_PV="1.9.2" # from mozilla-* branch name
62 PATCH="${PN}-1.9.2-patches-0.9"
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.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
68
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
70 SLOT="1.9"
71 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
72 IUSE="+alsa debug gnome +ipc libnotify system-sqlite wifi"
73
74 RDEPEND="
75 >=sys-devel/binutils-2.16.1
76 >=dev-libs/nss-3.12.8
77 >=dev-libs/nspr-4.8.6
78 system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete] )
79 alsa? ( media-libs/alsa-lib )
80 >=app-text/hunspell-1.2
81 >=x11-libs/cairo-1.8.8[X]
82 x11-libs/pango[X]
83 x11-libs/libXt
84 x11-libs/pixman
85 >=dev-libs/libevent-1.4.7
86 gnome? ( >=gnome-base/gnome-vfs-2.16.3
87 >=gnome-base/libgnomeui-2.16.1
88 >=gnome-base/gconf-2.16.0
89 >=gnome-base/libgnome-2.16.0 )
90 wifi? ( net-wireless/wireless-tools )
91 libnotify? ( >=x11-libs/libnotify-0.4 )"
92
93 DEPEND="java? ( >=virtual/jdk-1.4 )
94 ${RDEPEND}
95 =dev-lang/python-2*[threads]
96 dev-util/pkgconfig"
97
98 # virtual/jre should not be in DEPEND. bug 325981
99 RDEPEND="java? ( >=virtual/jre-1.4 ) ${RDEPEND}"
100
101 S="${WORKDIR}/mozilla-${MAJ_PV}"
102
103 pkg_setup() {
104 # Ensure we always build with C locale.
105 export LANG="C"
106 export LC_ALL="C"
107 export LC_MESSAGES="C"
108 export LC_CTYPE="C"
109
110 java-pkg-opt-2_pkg_setup
111
112 python_set_active_version 2
113 }
114
115 src_prepare() {
116 # Apply our patches
117 EPATCH_SUFFIX="patch" \
118 EPATCH_FORCE="yes" \
119 epatch "${WORKDIR}"
120
121 epatch "${FILESDIR}/bug-606109.patch"
122
123 eprefixify \
124 extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \
125 xpcom/build/nsXPCOMPrivate.h \
126 xulrunner/installer/Makefile.in \
127 xulrunner/app/nsRegisterGREUnix.cpp
128
129 # fix double symbols due to double -ljemalloc
130 sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \
131 xulrunner/stub/Makefile.in || die
132
133 # Allow user to apply additional patches without modifing ebuild
134 epatch_user
135
136 # Same as in config/autoconf.mk.in
137 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
138 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
139
140 # Gentoo install dirs
141 sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \
142 || die "${MAJ_PV} sed failed!"
143
144 # Enable gnomebreakpad
145 if use debug ; then
146 sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
147 "${S}"/build/unix/run-mozilla.sh || die "sed failed!"
148 fi
149
150 eautoreconf
151
152 cd js/src
153 eautoreconf
154 }
155
156 src_configure() {
157 ####################################
158 #
159 # mozconfig, CFLAGS and CXXFLAGS setup
160 #
161 ####################################
162
163 mozconfig_init
164 mozconfig_config
165
166 MEXTENSIONS="default"
167
168 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
169
170 # It doesn't compile on alpha without this LDFLAGS
171 use alpha && append-ldflags "-Wl,--no-relax"
172
173 mozconfig_annotate '' --enable-crypto
174 mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
175 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
176 mozconfig_annotate '' --enable-application=xulrunner
177 mozconfig_annotate '' --disable-mailnews
178 mozconfig_annotate 'broken' --disable-crashreporter
179 mozconfig_annotate '' --enable-image-encoder=all
180 mozconfig_annotate '' --enable-canvas
181 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
182 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
183 # regardless of java setting.
184 mozconfig_annotate '' --enable-oji --enable-mathml
185 mozconfig_annotate 'places' --enable-storage --enable-places
186 mozconfig_annotate '' --enable-safe-browsing
187
188 # Build mozdevelop permately
189 mozconfig_annotate '' --enable-jsd --enable-xpctools
190
191 # System-wide install specs
192 mozconfig_annotate '' --disable-installer
193 mozconfig_annotate '' --disable-updater
194 mozconfig_annotate '' --disable-strip
195 mozconfig_annotate '' --disable-install-strip
196
197 # Use system libraries
198 mozconfig_annotate '' --enable-system-cairo
199 mozconfig_annotate '' --enable-system-hunspell
200 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
201 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
202 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
203 mozconfig_annotate '' --with-system-bz2
204 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
205
206 mozconfig_use_enable gnome gnomevfs
207 mozconfig_use_enable gnome gnomeui
208 mozconfig_use_enable ipc # +ipc, upstream default
209 mozconfig_use_enable libnotify
210 mozconfig_use_enable java javaxpcom
211 mozconfig_use_enable wifi necko-wifi
212 mozconfig_use_enable alsa ogg
213 mozconfig_use_enable alsa wave
214 mozconfig_use_enable system-sqlite
215
216 # Debug
217 if use debug ; then
218 mozconfig_annotate 'debug' --disable-optimize
219 mozconfig_annotate 'debug' --enable-debug=-ggdb
220 mozconfig_annotate 'debug' --enable-debug-modules=all
221 mozconfig_annotate 'debug' --enable-debugger-info-modules
222 fi
223
224 # Finalize and report settings
225 mozconfig_final
226
227 if [[ $(gcc-major-version) -lt 4 ]]; then
228 append-flags -fno-stack-protector
229 fi
230
231 ####################################
232 #
233 # Configure and build
234 #
235 ####################################
236
237 # Disable no-print-directory
238 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
239
240 # Ensure that are plugins dir is enabled as default
241 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
242 "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
243
244 # hack added to workaround bug 299905 on hosts with libc that doesn't
245 # support tls, (probably will only hit this condition with Gentoo Prefix)
246 tc-has-tls -l || export ac_cv_thread_keyword=no
247
248 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
249 }
250
251 src_install() {
252 emake DESTDIR="${D}" install || die "emake install failed"
253
254 rm "${ED}"/usr/bin/xulrunner
255
256 MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
257 SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
258
259 if has_multilib_profile; then
260 local config
261 for config in "${ED}"/etc/gre.d/*.system.conf ; do
262 mv "${config}" "${config%.conf}.${CHOST}.conf"
263 done
264 fi
265
266 dodir /usr/bin
267 dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die
268
269 # env.d file for ld search path
270 dodir /etc/env.d
271 echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed"
272
273 # Add our defaults to xulrunner and out of firefox
274 cp "${FILESDIR}"/xulrunner-default-prefs.js \
275 "${ED}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \
276 die "failed to cp xulrunner-default-prefs.js"
277
278 pax-mark m "${D}"/${MOZLIBDIR}/plugin-container
279
280 if use java ; then
281 java-pkg_regjar "${ED}/${MOZLIBDIR}/javaxpcom.jar"
282 java-pkg_regso "${ED}/${MOZLIBDIR}/libjavaxpcomglue.so"
283 java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaGlue.jar"
284 java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaInterfaces.jar"
285 fi
286 }
287
288 pkg_postinst() {
289 ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild"
290 ewarn "If that does not fix the problem, rebuild dev-libs/nss"
291 ewarn "Try dev-util/lafilefixer if you get build failures related to .la files"
292
293 einfo
294 einfo "All prefs can be overridden by the user. The preferences are to make"
295 einfo "use of xulrunner out of the box on an average system without the user"
296 einfo "having to go through and enable the basics."
297
298 einfo
299 ewarn "Any package that requires xulrunner:1.9 slot could and most likely will"
300 ewarn "have issues. These issues should be reported to maintainer, and mozilla herd"
301 ewarn "should be cc'd on the bug report. Thank you anarchy@g.o ."
302 }