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