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