1 |
anarchy 11/05/02 23:28:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-2.0.1.ebuild |
5 |
Removed: xulrunner-2.0-r1.ebuild |
6 |
Log: |
7 |
Security bump on xulrunner-2.x |
8 |
|
9 |
(Portage version: 2.1.9.46/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.415 net-libs/xulrunner/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.415&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.415&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.414&r2=1.415 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
21 |
retrieving revision 1.414 |
22 |
retrieving revision 1.415 |
23 |
diff -u -r1.414 -r1.415 |
24 |
--- ChangeLog 2 May 2011 15:37:47 -0000 1.414 |
25 |
+++ ChangeLog 2 May 2011 23:28:36 -0000 1.415 |
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.414 2011/05/02 15:37:47 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.415 2011/05/02 23:28:36 anarchy Exp $ |
31 |
+ |
32 |
+*xulrunner-2.0.1 (02 May 2011) |
33 |
+ |
34 |
+ 02 May 2011; Jory A. Pratt <anarchy@g.o> -xulrunner-2.0-r1.ebuild, |
35 |
+ +xulrunner-2.0.1.ebuild: |
36 |
+ Security bump on xul-2.x |
37 |
|
38 |
02 May 2011; Jeroen Roovers <jer@g.o> xulrunner-1.9.2.17.ebuild: |
39 |
Stable for HPPA (bug #365323). |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-libs/xulrunner/xulrunner-2.0.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-2.0.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-2.0.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: xulrunner-2.0.1.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-2.0.1.ebuild,v 1.1 2011/05/02 23:28:36 anarchy Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
WANT_AUTOCONF="2.1" |
56 |
|
57 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib autotools python versionator pax-utils prefix |
58 |
|
59 |
MAJ_XUL_PV="$(get_version_component_range 1-2)" # from mozilla-* branch name |
60 |
MAJ_FF_PV="4.0" |
61 |
FF_PV="${PV/${MAJ_XUL_PV}/${MAJ_FF_PV}}" # 3.7_alpha6, 3.6.3, etc. |
62 |
FF_PV="${FF_PV/_alpha/a}" # Handle alpha for SRC_URI |
63 |
FF_PV="${FF_PV/_beta/b}" # Handle beta for SRC_URI |
64 |
FF_PV="${FF_PV/_rc/rc}" # Handle rc for SRC_URI |
65 |
CHANGESET="e56ecd8b3a68" |
66 |
PATCH="${PN}-2.0-patches-1.7" |
67 |
|
68 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
69 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
70 |
|
71 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
72 |
SLOT="1.9" |
73 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
74 |
IUSE="+crashreporter gconf +ipc system-sqlite +webm" |
75 |
|
76 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases" |
77 |
# More URIs appended below... |
78 |
SRC_URI="http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2" |
79 |
|
80 |
RDEPEND=" |
81 |
>=sys-devel/binutils-2.16.1 |
82 |
>=dev-libs/nss-3.12.9 |
83 |
>=dev-libs/nspr-4.8.7 |
84 |
>=dev-libs/glib-2.26 |
85 |
gconf? ( >=gnome-base/gconf-1.2.1:2 ) |
86 |
x11-libs/pango[X] |
87 |
media-libs/libpng[apng] |
88 |
system-sqlite? ( >=dev-db/sqlite-3.7.4[fts3,secure-delete,unlock-notify,debug=] ) |
89 |
webm? ( media-libs/libvpx |
90 |
media-libs/alsa-lib ) |
91 |
!www-plugins/weave" |
92 |
|
93 |
DEPEND="${RDEPEND} |
94 |
dev-util/pkgconfig |
95 |
dev-lang/yasm" |
96 |
|
97 |
if [[ ${PV} =~ alpha|beta ]]; then |
98 |
# hg snapshot tarball |
99 |
SRC_URI="${SRC_URI} |
100 |
http://dev.gentoo.org/~anarchy/mozilla/firefox/firefox-${FF_PV}_${CHANGESET}.source.tar.bz2" |
101 |
S="${WORKDIR}/mozilla-central" |
102 |
else |
103 |
SRC_URI="${SRC_URI} |
104 |
${REL_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2" |
105 |
S="${WORKDIR}/mozilla-${MAJ_XUL_PV}" |
106 |
fi |
107 |
|
108 |
pkg_setup() { |
109 |
moz_pkgsetup |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
# Apply our patches |
114 |
EPATCH_SUFFIX="patch" \ |
115 |
EPATCH_FORCE="yes" \ |
116 |
epatch "${WORKDIR}" |
117 |
|
118 |
# Allow user to apply any additional patches without modifing ebuild |
119 |
epatch_user |
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 |
# Same as in config/autoconf.mk.in |
132 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}" |
133 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_XUL_PV}/sdk" |
134 |
|
135 |
# Gentoo install dirs |
136 |
sed -i -e "s:@PV@:${MAJ_XUL_PV}:" "${S}"/config/autoconf.mk.in \ |
137 |
|| die "${MAJ_XUL_PV} sed failed!" |
138 |
|
139 |
# Enable gnomebreakpad |
140 |
if use debug ; then |
141 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
142 |
"${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
143 |
fi |
144 |
|
145 |
# Disable gnomevfs extension |
146 |
sed -i -e "s:gnomevfs::" "${S}/"xulrunner/confvars.sh \ |
147 |
|| die "Failed to remove gnomevfs extension" |
148 |
|
149 |
eautoreconf |
150 |
|
151 |
cd js/src |
152 |
eautoreconf |
153 |
} |
154 |
|
155 |
src_configure() { |
156 |
#################################### |
157 |
# |
158 |
# mozconfig, CFLAGS and CXXFLAGS setup |
159 |
# |
160 |
#################################### |
161 |
|
162 |
mozconfig_init |
163 |
mozconfig_config |
164 |
|
165 |
MEXTENSIONS="default" |
166 |
|
167 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}" |
168 |
|
169 |
# It doesn't compile on alpha without this LDFLAGS |
170 |
use alpha && append-ldflags "-Wl,--no-relax" |
171 |
|
172 |
mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" |
173 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
174 |
mozconfig_annotate '' --disable-mailnews |
175 |
mozconfig_annotate '' --enable-canvas |
176 |
mozconfig_annotate '' --enable-safe-browsing |
177 |
mozconfig_annotate '' --with-system-png |
178 |
mozconfig_use_enable system-sqlite |
179 |
mozconfig_use_enable gconf |
180 |
|
181 |
# Finalize and report settings |
182 |
mozconfig_final |
183 |
|
184 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
185 |
append-flags -fno-stack-protector |
186 |
fi |
187 |
|
188 |
#################################### |
189 |
# |
190 |
# Configure and build |
191 |
# |
192 |
#################################### |
193 |
|
194 |
# Disable no-print-directory |
195 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
196 |
|
197 |
# Ensure that are plugins dir is enabled as default |
198 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
199 |
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
200 |
|
201 |
# hack added to workaround bug 299905 on hosts with libc that doesn't |
202 |
# support tls, (probably will only hit this condition with Gentoo Prefix) |
203 |
tc-has-tls -l || export ac_cv_thread_keyword=no |
204 |
|
205 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
# Add our defaults to xulrunner and out of firefox |
210 |
cp "${FILESDIR}"/xulrunner-default-prefs.js \ |
211 |
"${S}/dist/bin/defaults/pref/all-gentoo.js" || \ |
212 |
die "failed to cp xulrunner-default-prefs.js" |
213 |
|
214 |
emake DESTDIR="${D}" install || die "emake install failed" |
215 |
|
216 |
rm "${ED}"/usr/bin/xulrunner |
217 |
|
218 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}" |
219 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_XUL_PV}/sdk" |
220 |
|
221 |
if has_multilib_profile; then |
222 |
local config |
223 |
for config in "${ED}"/etc/gre.d/*.system.conf ; do |
224 |
mv "${config}" "${config%.conf}.${CHOST}.conf" |
225 |
done |
226 |
fi |
227 |
|
228 |
dodir /usr/bin |
229 |
dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_XUL_PV}" || die |
230 |
|
231 |
# env.d file for ld search path |
232 |
dodir /etc/env.d |
233 |
echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed" |
234 |
|
235 |
pax-mark m "${ED}"/${MOZLIBDIR}/plugin-container |
236 |
} |