1 |
anarchy 10/04/05 05:07:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.9.2.3.ebuild |
5 |
Log: |
6 |
Security Bump |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.304 net-libs/xulrunner/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.304&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.304&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.303&r2=1.304 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
19 |
retrieving revision 1.303 |
20 |
retrieving revision 1.304 |
21 |
diff -u -r1.303 -r1.304 |
22 |
--- ChangeLog 5 Apr 2010 04:18:25 -0000 1.303 |
23 |
+++ ChangeLog 5 Apr 2010 05:07:05 -0000 1.304 |
24 |
@@ -1,6 +1,11 @@ |
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.303 2010/04/05 04:18:25 anarchy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.304 2010/04/05 05:07:05 anarchy Exp $ |
29 |
+ |
30 |
+*xulrunner-1.9.2.3 (05 Apr 2010) |
31 |
+ |
32 |
+ 05 Apr 2010; <anarchy@g.o> +xulrunner-1.9.2.3.ebuild: |
33 |
+ Security Bump |
34 |
|
35 |
*xulrunner-1.9.2.2-r2 (05 Apr 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 net-libs/xulrunner/xulrunner-1.9.2.3.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.3.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.3.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: xulrunner-1.9.2.3.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 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.2.3.ebuild,v 1.1 2010/04/05 05:07:05 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 autotools |
55 |
|
56 |
MY_PV="${PV/_rc/rc}" # Handle beta |
57 |
MY_PV="${MY_PV/1.9.2/3.6}" |
58 |
MAJ_PV="1.9.2" # from mozilla-* branch name |
59 |
PATCH="${PN}-1.9.2-patches-0.4" |
60 |
|
61 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
62 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
63 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 |
64 |
http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2" |
65 |
|
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
SLOT="1.9" |
68 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
69 |
IUSE="+alsa debug libnotify system-sqlite wifi" |
70 |
|
71 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
72 |
>=dev-lang/python-2.3[threads] |
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 |
>=media-libs/lcms-1.17 |
80 |
>=x11-libs/cairo-1.8.8[X] |
81 |
x11-libs/pango[X] |
82 |
x11-libs/libXt |
83 |
wifi? ( net-wireless/wireless-tools ) |
84 |
libnotify? ( >=x11-libs/libnotify-0.4 )" |
85 |
|
86 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
87 |
${RDEPEND} |
88 |
dev-util/pkgconfig" |
89 |
|
90 |
S="${WORKDIR}/mozilla-${MAJ_PV}" |
91 |
|
92 |
pkg_setup() { |
93 |
# Ensure we always build with C locale. |
94 |
export LANG="C" |
95 |
export LC_ALL="C" |
96 |
export LC_MESSAGES="C" |
97 |
export LC_CTYPE="C" |
98 |
|
99 |
java-pkg-opt-2_pkg_setup |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
# Apply our patches |
104 |
EPATCH_SUFFIX="patch" \ |
105 |
EPATCH_FORCE="yes" \ |
106 |
epatch "${WORKDIR}" |
107 |
|
108 |
# Fix build error for xpctools |
109 |
epatch "${FILESDIR}/301-xulrunner-xpctools.diff" |
110 |
|
111 |
# Fix broken mozilla-plugin.pc |
112 |
epatch "${FILESDIR}/${PN}-1.9.2-fix-pkgconfig-file.patch" |
113 |
|
114 |
# Fix broken media support |
115 |
epatch "${FILESDIR}/${PN}-1.9.2-noalsa-fixup.patch" |
116 |
|
117 |
# Fix broken alignment |
118 |
epatch "${FILESDIR}/1000_fix_alignment.patch" |
119 |
|
120 |
# Ensure we find myspell dict. |
121 |
epatch "${FILESDIR}/1001_fix-system-hunspell.patch" |
122 |
|
123 |
# Same as in config/autoconf.mk.in |
124 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
125 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
126 |
|
127 |
# Gentoo install dirs |
128 |
sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \ |
129 |
|| die "${MAJ_PV} sed failed!" |
130 |
|
131 |
# Enable gnomebreakpad |
132 |
if use debug ; then |
133 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
134 |
"${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
135 |
fi |
136 |
|
137 |
eautoreconf |
138 |
|
139 |
cd js/src |
140 |
eautoreconf |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
#################################### |
145 |
# |
146 |
# mozconfig, CFLAGS and CXXFLAGS setup |
147 |
# |
148 |
#################################### |
149 |
|
150 |
mozconfig_init |
151 |
mozconfig_config |
152 |
|
153 |
MEXTENSIONS="default" |
154 |
|
155 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
156 |
|
157 |
# It doesn't compile on alpha without this LDFLAGS |
158 |
use alpha && append-ldflags "-Wl,--no-relax" |
159 |
|
160 |
mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" |
161 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
162 |
mozconfig_annotate '' --enable-application=xulrunner |
163 |
mozconfig_annotate '' --disable-mailnews |
164 |
mozconfig_annotate 'broken' --disable-crashreporter |
165 |
mozconfig_annotate '' --enable-image-encoder=all |
166 |
mozconfig_annotate '' --enable-canvas |
167 |
mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 |
168 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
169 |
# regardless of java setting. |
170 |
mozconfig_annotate '' --enable-oji --enable-mathml |
171 |
mozconfig_annotate 'places' --enable-storage --enable-places |
172 |
mozconfig_annotate '' --enable-safe-browsing |
173 |
|
174 |
# Build mozdevelop permately |
175 |
mozconfig_annotate '' --enable-jsd --enable-xpctools |
176 |
|
177 |
# System-wide install specs |
178 |
mozconfig_annotate '' --disable-installer |
179 |
mozconfig_annotate '' --disable-updater |
180 |
mozconfig_annotate '' --disable-strip |
181 |
mozconfig_annotate '' --disable-install-strip |
182 |
|
183 |
# Use system libraries |
184 |
mozconfig_annotate '' --enable-system-cairo |
185 |
mozconfig_annotate '' --enable-system-hunspell |
186 |
mozconfig_annotate '' --with-system-nspr |
187 |
mozconfig_annotate '' --with-system-nss |
188 |
mozconfig_annotate '' --enable-system-lcms |
189 |
mozconfig_annotate '' --with-system-bz2 |
190 |
|
191 |
mozconfig_use_enable libnotify |
192 |
mozconfig_use_enable java javaxpcom |
193 |
mozconfig_use_enable wifi necko-wifi |
194 |
mozconfig_use_enable alsa ogg |
195 |
mozconfig_use_enable alsa wave |
196 |
mozconfig_use_enable system-sqlite |
197 |
|
198 |
# Debug |
199 |
if use debug ; then |
200 |
mozconfig_annotate 'debug' --disable-optimize |
201 |
mozconfig_annotate 'debug' --enable-debug=-ggdb |
202 |
mozconfig_annotate 'debug' --enable-debug-modules=all |
203 |
mozconfig_annotate 'debug' --enable-debugger-info-modules |
204 |
fi |
205 |
|
206 |
# Finalize and report settings |
207 |
mozconfig_final |
208 |
|
209 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
210 |
append-flags -fno-stack-protector |
211 |
fi |
212 |
|
213 |
#################################### |
214 |
# |
215 |
# Configure and build |
216 |
# |
217 |
#################################### |
218 |
|
219 |
# Disable no-print-directory |
220 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
221 |
|
222 |
# Ensure that are plugins dir is enabled as default |
223 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
224 |
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
225 |
|
226 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf |
227 |
} |
228 |
|
229 |
src_install() { |
230 |
emake DESTDIR="${D}" install || die "emake install failed" |
231 |
|
232 |
rm "${D}"/usr/bin/xulrunner |
233 |
|
234 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
235 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
236 |
|
237 |
dodir /usr/bin |
238 |
dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die |
239 |
|
240 |
# env.d file for ld search path |
241 |
dodir /etc/env.d |
242 |
echo "LDPATH=${MOZLIBDIR}" > "${D}"/etc/env.d/08xulrunner || die "env.d failed" |
243 |
|
244 |
# Add our defaults to xulrunner and out of firefox |
245 |
cp "${FILESDIR}"/xulrunner-default-prefs.js \ |
246 |
"${D}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \ |
247 |
die "failed to cp xulrunner-default-prefs.js" |
248 |
|
249 |
if use java ; then |
250 |
java-pkg_regjar "${D}/${MOZLIBDIR}/javaxpcom.jar" |
251 |
java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar" |
252 |
java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaInterfaces.jar" |
253 |
fi |
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild" |
258 |
ewarn "If that does not fix the problem, rebuild dev-libs/nss" |
259 |
ewarn "Try dev-util/lafilefixer if you get build failures related to .la files" |
260 |
|
261 |
einfo |
262 |
einfo "All prefs can be overridden by the user. The preferences are to make" |
263 |
einfo "use of xulrunner out of the box on an average system without the user" |
264 |
einfo "having to go through and enable the basics." |
265 |
|
266 |
einfo |
267 |
ewarn "Any package that requires xulrunner:1.9 slot could and most likely will" |
268 |
ewarn "have issues. These issues should be reported to maintainer, and mozilla herd" |
269 |
ewarn "should be cc'd on the bug report. Thank you anarchy@g.o ." |
270 |
} |