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