1 |
anarchy 10/02/18 03:16:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.9.1.8.ebuild |
5 |
Removed: xulrunner-1.9.1.5.ebuild xulrunner-1.9.1.4.ebuild |
6 |
xulrunner-1.9.1.7.ebuild |
7 |
Log: |
8 |
Security Bump |
9 |
(Portage version: 2.1.7.17/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.291 net-libs/xulrunner/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.291&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.291&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.290&r2=1.291 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
21 |
retrieving revision 1.290 |
22 |
retrieving revision 1.291 |
23 |
diff -u -r1.290 -r1.291 |
24 |
--- ChangeLog 12 Feb 2010 20:47:45 -0000 1.290 |
25 |
+++ ChangeLog 18 Feb 2010 03:16:34 -0000 1.291 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for net-libs/xulrunner |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.290 2010/02/12 20:47:45 anarchy Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.291 2010/02/18 03:16:34 anarchy Exp $ |
31 |
+ |
32 |
+*xulrunner-1.9.1.8 (18 Feb 2010) |
33 |
+ |
34 |
+ 18 Feb 2010; <anarchy@g.o> -xulrunner-1.9.1.4.ebuild, |
35 |
+ -xulrunner-1.9.1.5.ebuild, -xulrunner-1.9.1.7.ebuild, |
36 |
+ +xulrunner-1.9.1.8.ebuild: |
37 |
+ Security Bump |
38 |
|
39 |
*xulrunner-1.9.2-r2 (12 Feb 2010) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-libs/xulrunner/xulrunner-1.9.1.8.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.8.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.8.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: xulrunner-1.9.1.8.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.1.8.ebuild,v 1.1 2010/02/18 03:16:34 anarchy Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
WANT_AUTOCONF="2.1" |
57 |
|
58 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools |
59 |
|
60 |
MY_PV="${PV/_beta/b}" # Handle betas |
61 |
MY_PV="${PV/_/}" # Handle rc1, rc2 etc |
62 |
MY_PV="${MY_PV/1.9.1.8/3.5.8}" |
63 |
MAJ_PV="1.9.1" # from mozilla-* branch name |
64 |
PATCH="${PN}-1.9.1.5-patches-0.1" |
65 |
|
66 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
67 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
68 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 |
69 |
http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2" |
70 |
|
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
72 |
SLOT="1.9" |
73 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
74 |
IUSE="+alsa debug python sqlite" # qt-experimental |
75 |
|
76 |
# qt-experimental? ( |
77 |
# x11-libs/qt-gui |
78 |
# x11-libs/qt-core ) |
79 |
|
80 |
# nspr-4.8 due to BMO #499144 |
81 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
82 |
>=dev-lang/python-2.3[threads] |
83 |
>=sys-devel/binutils-2.16.1 |
84 |
>=dev-libs/nss-3.12.3 |
85 |
>=dev-libs/nspr-4.8 |
86 |
sqlite? ( >=dev-db/sqlite-3.6.20-r1[fts3] ) |
87 |
alsa? ( media-libs/alsa-lib ) |
88 |
>=app-text/hunspell-1.2 |
89 |
>=media-libs/lcms-1.17 |
90 |
>=x11-libs/cairo-1.8.8[X] |
91 |
x11-libs/pango[X] |
92 |
x11-libs/libXt" |
93 |
|
94 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
95 |
${RDEPEND} |
96 |
dev-util/pkgconfig" |
97 |
|
98 |
S="${WORKDIR}/mozilla-${MAJ_PV}" |
99 |
|
100 |
pkg_setup() { |
101 |
java-pkg-opt-2_pkg_setup |
102 |
|
103 |
if use sqlite ; then |
104 |
elog "You are enabling system sqlite. Do not file a bug with gentoo if you have" |
105 |
elog "issues that arise from enabling system sqlite. All bugs will be considered" |
106 |
elog "invalid. All patches are welcomed to fix any issues that might be found with" |
107 |
elog "system sqlite. If you are starting with a fresh profile you can enable sqlite" |
108 |
elog "without any major issues." |
109 |
epause 10 |
110 |
fi |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
# Apply our patches |
115 |
EPATCH_EXCLUDE="136-fix_ftbfs_with_cairo_fb.patch" \ |
116 |
EPATCH_SUFFIX="patch" \ |
117 |
EPATCH_FORCE="yes" \ |
118 |
epatch "${WORKDIR}" |
119 |
|
120 |
# Same as in config/autoconf.mk.in |
121 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
122 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
123 |
|
124 |
# Gentoo install dirs |
125 |
sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \ |
126 |
|| die "${MAJ_PV} sed failed!" |
127 |
|
128 |
# Enable gnomebreakpad |
129 |
if use debug ; then |
130 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
131 |
"${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
132 |
fi |
133 |
|
134 |
eautoreconf |
135 |
|
136 |
cd js/src |
137 |
eautoreconf |
138 |
|
139 |
# Patch in support to reset all LANG variables to C |
140 |
# Do NOT add to patchset as it must be applied after eautoreconf |
141 |
cd "${S}" |
142 |
epatch "${FILESDIR}/000_flex-configure-LANG.patch" |
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 |
if use python ; then |
157 |
MEXTENSIONS="${MEXTENSIONS},python/xpcom" |
158 |
fi |
159 |
|
160 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
161 |
|
162 |
# It doesn't compile on alpha without this LDFLAGS |
163 |
use alpha && append-ldflags "-Wl,--no-relax" |
164 |
|
165 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
166 |
mozconfig_annotate '' --enable-application=xulrunner |
167 |
mozconfig_annotate '' --disable-mailnews |
168 |
mozconfig_annotate 'broken' --disable-crashreporter |
169 |
mozconfig_annotate '' --enable-image-encoder=all |
170 |
mozconfig_annotate '' --enable-canvas |
171 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
172 |
# regardless of java setting. |
173 |
mozconfig_annotate '' --enable-oji --enable-mathml |
174 |
mozconfig_annotate 'places' --enable-storage --enable-places |
175 |
mozconfig_annotate '' --enable-safe-browsing |
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 |
if use sqlite ; then |
192 |
mozconfig_annotate 'sqlite' --enable-system-sqlite |
193 |
else |
194 |
mozconfig_annotate '-sqlite' --disable-system-sqlite |
195 |
fi |
196 |
|
197 |
# IUSE qt-experimental |
198 |
# if use qt-experimental ; then |
199 |
# ewarn "You are enabling the EXPERIMENTAL qt toolkit" |
200 |
# ewarn "Usage is at your own risk" |
201 |
# ewarn "Known to be broken. DO NOT file bugs." |
202 |
# mozconfig_annotate '' --disable-system-cairo |
203 |
# mozconfig_annotate 'qt-experimental' --enable-default-toolkit=cairo-qt |
204 |
# else |
205 |
mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 |
206 |
# fi |
207 |
|
208 |
# Other ff-specific settings |
209 |
mozconfig_annotate '' --enable-jsd |
210 |
mozconfig_annotate '' --enable-xpctools |
211 |
mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" |
212 |
|
213 |
# Disable/Enable audio support based on USE |
214 |
mozconfig_use_enable alsa ogg |
215 |
mozconfig_use_enable alsa wave |
216 |
|
217 |
# Disable java |
218 |
if ! use java ; then |
219 |
mozconfig_annotate '-java' --disable-javaxpcom |
220 |
fi |
221 |
|
222 |
# Debug |
223 |
if use debug ; then |
224 |
mozconfig_annotate 'debug' --disable-optimize |
225 |
mozconfig_annotate 'debug' --enable-debug=-ggdb |
226 |
mozconfig_annotate 'debug' --enable-debug-modules=all |
227 |
mozconfig_annotate 'debug' --enable-debugger-info-modules |
228 |
fi |
229 |
|
230 |
# Finalize and report settings |
231 |
mozconfig_final |
232 |
|
233 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
234 |
append-flags -fno-stack-protector |
235 |
fi |
236 |
|
237 |
#################################### |
238 |
# |
239 |
# Configure and build |
240 |
# |
241 |
#################################### |
242 |
|
243 |
# Disable no-print-directory |
244 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
245 |
|
246 |
# Ensure that are plugins dir is enabled as default |
247 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
248 |
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
249 |
|
250 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf |
251 |
} |
252 |
|
253 |
src_install() { |
254 |
emake DESTDIR="${D}" install || die "emake install failed" |
255 |
|
256 |
rm "${D}"/usr/bin/xulrunner |
257 |
|
258 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
259 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
260 |
|
261 |
dodir /usr/bin |
262 |
dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die |
263 |
|
264 |
# Install python modules |
265 |
dosym "${MOZLIBDIR}/python/xpcom" "/$(python_get_sitedir)/xpcom" || die |
266 |
|
267 |
# env.d file for ld search path |
268 |
dodir /etc/env.d |
269 |
echo "LDPATH=${MOZLIBDIR}" > "${D}"/etc/env.d/08xulrunner || die "env.d failed" |
270 |
|
271 |
# Add our defaults to xulrunner and out of firefox |
272 |
cp "${FILESDIR}"/xulrunner-default-prefs.js \ |
273 |
"${D}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || die "failed to cp xulrunner-default-prefs.js" |
274 |
|
275 |
if use java ; then |
276 |
java-pkg_regjar "${D}/${MOZLIBDIR}/javaxpcom.jar" |
277 |
java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar" |
278 |
java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaInterfaces.jar" |
279 |
fi |
280 |
} |
281 |
|
282 |
pkg_postinst() { |
283 |
|
284 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
285 |
|
286 |
if use python ; then |
287 |
python_need_rebuild |
288 |
python_mod_optimize "${MOZLIBDIR}/python" |
289 |
fi |
290 |
|
291 |
ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild" |
292 |
ewarn "If that does not fix the problem, rebuild dev-libs/nss" |
293 |
ewarn "Try dev-util/lafilefixer if you get build failures related to .la files" |
294 |
|
295 |
einfo |
296 |
einfo "All prefs can be overridden by the user. The preferences are to make" |
297 |
einfo "use of xulrunner out of the box on an average system without the user" |
298 |
einfo "having to go through and enable the basics." |
299 |
|
300 |
einfo |
301 |
ewarn "Please remember to rebuild your browser(s) after update to prevent an xpcom error." |
302 |
ewarn "This bump is needed in order to bring icecat to the tree to replace iceweasel useflag." |
303 |
} |
304 |
|
305 |
pkg_postrm() { |
306 |
|
307 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
308 |
|
309 |
if use python ; then |
310 |
python_mod_cleanup "${MOZLIBDIR}/python" |
311 |
fi |
312 |
} |