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