1 |
armin76 08/09/24 17:06:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.8.1.17.ebuild xulrunner-1.9.0.2.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.141 net-libs/xulrunner/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.141&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.141&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.140&r2=1.141 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
19 |
retrieving revision 1.140 |
20 |
retrieving revision 1.141 |
21 |
diff -u -r1.140 -r1.141 |
22 |
--- ChangeLog 9 Sep 2008 14:59:45 -0000 1.140 |
23 |
+++ ChangeLog 24 Sep 2008 17:06:13 -0000 1.141 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-libs/xulrunner |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.140 2008/09/09 14:59:45 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.141 2008/09/24 17:06:13 armin76 Exp $ |
29 |
+ |
30 |
+*xulrunner-1.9.0.2 (24 Sep 2008) |
31 |
+*xulrunner-1.8.1.17 (24 Sep 2008) |
32 |
+ |
33 |
+ 24 Sep 2008; Raúl Porcel <armin76@g.o> +xulrunner-1.8.1.17.ebuild, |
34 |
+ +xulrunner-1.9.0.2.ebuild: |
35 |
+ Version bump |
36 |
|
37 |
09 Sep 2008; Raúl Porcel <armin76@g.o> xulrunner-1.9.0.1.ebuild: |
38 |
Mark -sparc, it sigbuses |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-libs/xulrunner/xulrunner-1.8.1.17.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: xulrunner-1.8.1.17.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 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.8.1.17.ebuild,v 1.1 2008/09/24 17:06:13 armin76 Exp $ |
52 |
|
53 |
WANT_AUTOCONF="2.1" |
54 |
|
55 |
inherit flag-o-matic toolchain-funcs eutils makeedit multilib autotools mozconfig-2 java-pkg-opt-2 |
56 |
PATCH="${PN}-1.8.1.13-patches-0.1" |
57 |
|
58 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
59 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
60 |
SRC_URI="mirror://gentoo/${P}-source.tar.bz2 |
61 |
mirror://gentoo/${PATCH}.tar.bz2" |
62 |
|
63 |
SLOT="1.8" |
64 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
66 |
IUSE="" |
67 |
|
68 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
69 |
>=sys-devel/binutils-2.16.1 |
70 |
>=dev-libs/nss-3.11.5 |
71 |
>=dev-libs/nspr-4.6.5-r1 |
72 |
java? ( >=virtual/jre-1.4 )" |
73 |
|
74 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
75 |
${RDEPEND} |
76 |
dev-util/pkgconfig" |
77 |
|
78 |
S="${WORKDIR}/mozilla" |
79 |
|
80 |
# Needed by src_compile() and src_install(). |
81 |
# Would do in pkg_setup but that loses the export attribute, they |
82 |
# become pure shell variables. |
83 |
export MOZ_CO_PROJECT=xulrunner |
84 |
export BUILD_OFFICIAL=1 |
85 |
export MOZILLA_OFFICIAL=1 |
86 |
|
87 |
pkg_setup(){ |
88 |
if ! built_with_use x11-libs/cairo X; then |
89 |
eerror "Cairo is not built with X useflag." |
90 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
91 |
die "Cairo needs X" |
92 |
fi |
93 |
|
94 |
if ! built_with_use --missing true x11-libs/pango X; then |
95 |
eerror "Pango is not built with X useflag." |
96 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
97 |
die "Pango needs X" |
98 |
fi |
99 |
java-pkg-opt-2_pkg_setup |
100 |
} |
101 |
|
102 |
src_unpack() { |
103 |
unpack ${P}-source.tar.bz2 ${PATCH}.tar.bz2 |
104 |
|
105 |
# Apply our patches |
106 |
cd "${S}" || die "cd failed" |
107 |
EPATCH_SUFFIX="patch" \ |
108 |
EPATCH_FORCE="yes" \ |
109 |
epatch "${WORKDIR}"/patch |
110 |
|
111 |
eautoreconf || die "failed running eautoreconf" |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
116 |
|
117 |
#################################### |
118 |
# |
119 |
# mozconfig, CFLAGS and CXXFLAGS setup |
120 |
# |
121 |
#################################### |
122 |
|
123 |
mozconfig_init |
124 |
mozconfig_config |
125 |
|
126 |
mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck" |
127 |
mozconfig_annotate '' --enable-native-uconv |
128 |
mozconfig_annotate '' --enable-image-encoder=all |
129 |
mozconfig_annotate '' --enable-canvas |
130 |
#mozconfig_annotate '' --enable-js-binary |
131 |
mozconfig_annotate '' --enable-embedding-tests |
132 |
mozconfig_annotate '' --with-system-nspr |
133 |
mozconfig_annotate '' --with-system-nss |
134 |
mozconfig_annotate '' --with-system-bz2 |
135 |
mozconfig_annotate '' --enable-jsd |
136 |
mozconfig_annotate '' --enable-xpctools |
137 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
138 |
# regardless of java setting. |
139 |
mozconfig_annotate '' --enable-oji --enable-mathml |
140 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
141 |
|
142 |
#disable java |
143 |
if ! use java ; then |
144 |
mozconfig_annotate '-java' --disable-javaxpcom |
145 |
fi |
146 |
|
147 |
# Finalize and report settings |
148 |
mozconfig_final |
149 |
|
150 |
# -fstack-protector breaks us |
151 |
if gcc-version ge 4 1; then |
152 |
gcc-specs-ssp && append-flags -fno-stack-protector |
153 |
else |
154 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
155 |
fi |
156 |
filter-flags -fstack-protector -fstack-protector-all |
157 |
|
158 |
#################################### |
159 |
# |
160 |
# Configure and build |
161 |
# |
162 |
#################################### |
163 |
|
164 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
165 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
166 |
econf || die |
167 |
|
168 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
169 |
# to econf, but the quotes cause configure to fail. |
170 |
sed -i -e \ |
171 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
172 |
"${S}"/config/autoconf.mk \ |
173 |
"${S}"/toolkit/content/buildconfig.html |
174 |
|
175 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
176 |
# requirements while compiling |
177 |
edit_makefiles |
178 |
|
179 |
emake || die "emake failed" |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
184 |
emake DESTDIR="${D}" install || die "emake install failed" |
185 |
|
186 |
# Add vendor |
187 |
echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ |
188 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
189 |
|
190 |
if use java ; then |
191 |
java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
192 |
rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
193 |
fi |
194 |
|
195 |
# xulrunner registration, the gentoo way |
196 |
insinto /etc/gre.d |
197 |
newins "${FILESDIR}"/${PN}.conf ${PV}.conf |
198 |
sed -i -e \ |
199 |
"s|version|${PV}| |
200 |
s|instpath|${MOZILLA_FIVE_HOME}|" \ |
201 |
"${D}"/etc/gre.d/${PV}.conf |
202 |
} |
203 |
|
204 |
pkg_postinst() { |
205 |
elog "Please remember to rebuild any packages that you have built" |
206 |
elog "against xulrunner. Some packages might be broken by the upgrade; if this" |
207 |
elog "is the case, please search at http://bugs.gentoo.org and open a new bug" |
208 |
elog "if one does not exist." |
209 |
} |
210 |
|
211 |
|
212 |
|
213 |
1.1 net-libs/xulrunner/xulrunner-1.9.0.2.ebuild |
214 |
|
215 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.2.ebuild?rev=1.1&view=markup |
216 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.2.ebuild?rev=1.1&content-type=text/plain |
217 |
|
218 |
Index: xulrunner-1.9.0.2.ebuild |
219 |
=================================================================== |
220 |
# Copyright 1999-2008 Gentoo Foundation |
221 |
# Distributed under the terms of the GNU General Public License v2 |
222 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.2.ebuild,v 1.1 2008/09/24 17:06:13 armin76 Exp $ |
223 |
|
224 |
WANT_AUTOCONF="2.1" |
225 |
|
226 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools |
227 |
PATCH="${P}-patches-0.1" |
228 |
|
229 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
230 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
231 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
232 |
http://dev.gentoo.org/~armin76/${P}.tar.bz2 |
233 |
mirror://gentoo/${PATCH}.tar.bz2" |
234 |
|
235 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86" |
236 |
SLOT="1.9" |
237 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
238 |
IUSE="" |
239 |
|
240 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
241 |
>=sys-devel/binutils-2.16.1 |
242 |
>=dev-libs/nss-3.12 |
243 |
>=dev-libs/nspr-4.7.1 |
244 |
>=app-text/hunspell-1.1.9 |
245 |
>=media-libs/lcms-1.17" |
246 |
|
247 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
248 |
${RDEPEND} |
249 |
dev-util/pkgconfig" |
250 |
|
251 |
S="${WORKDIR}/mozilla" |
252 |
|
253 |
# Needed by src_compile() and src_install(). |
254 |
# Would do in pkg_setup but that loses the export attribute, they |
255 |
# become pure shell variables. |
256 |
export MOZ_CO_PROJECT=xulrunner |
257 |
export BUILD_OFFICIAL=1 |
258 |
export MOZILLA_OFFICIAL=1 |
259 |
|
260 |
pkg_setup(){ |
261 |
if ! built_with_use x11-libs/cairo X; then |
262 |
eerror "Cairo is not built with X useflag." |
263 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
264 |
die "Cairo needs X" |
265 |
fi |
266 |
|
267 |
if ! built_with_use --missing true x11-libs/pango X; then |
268 |
eerror "Pango is not built with X useflag." |
269 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
270 |
die "Pango needs X" |
271 |
fi |
272 |
java-pkg-opt-2_pkg_setup |
273 |
} |
274 |
|
275 |
src_unpack() { |
276 |
unpack ${A} |
277 |
|
278 |
# Apply our patches |
279 |
cd "${S}" || die "cd failed" |
280 |
EPATCH_SUFFIX="patch" \ |
281 |
EPATCH_FORCE="yes" \ |
282 |
epatch "${WORKDIR}"/patch |
283 |
|
284 |
eautoreconf || die "failed running eautoreconf" |
285 |
|
286 |
# We need to re-patch this because autoreconf overwrites it |
287 |
epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch |
288 |
} |
289 |
|
290 |
src_compile() { |
291 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" |
292 |
|
293 |
#################################### |
294 |
# |
295 |
# mozconfig, CFLAGS and CXXFLAGS setup |
296 |
# |
297 |
#################################### |
298 |
|
299 |
mozconfig_init |
300 |
mozconfig_config |
301 |
|
302 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
303 |
mozconfig_annotate '' --disable-mailnews |
304 |
mozconfig_annotate 'broken' --disable-mochitest |
305 |
mozconfig_annotate 'broken' --disable-crashreporter |
306 |
mozconfig_annotate '' --enable-system-hunspell |
307 |
#mozconfig_annotate '' --enable-system-sqlite |
308 |
mozconfig_annotate '' --enable-image-encoder=all |
309 |
mozconfig_annotate '' --enable-canvas |
310 |
#mozconfig_annotate '' --enable-js-binary |
311 |
mozconfig_annotate '' --enable-embedding-tests |
312 |
mozconfig_annotate '' --with-system-nspr |
313 |
mozconfig_annotate '' --with-system-nss |
314 |
mozconfig_annotate '' --enable-system-lcms |
315 |
mozconfig_annotate '' --with-system-bz2 |
316 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
317 |
# regardless of java setting. |
318 |
mozconfig_annotate '' --enable-oji --enable-mathml |
319 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
320 |
mozconfig_annotate '' --enable-safe-browsing |
321 |
|
322 |
# Other ff-specific settings |
323 |
mozconfig_annotate '' --enable-jsd |
324 |
mozconfig_annotate '' --enable-xpctools |
325 |
mozconfig_annotate '' --disable-libxul |
326 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
327 |
|
328 |
#disable java |
329 |
if ! use java ; then |
330 |
mozconfig_annotate '-java' --disable-javaxpcom |
331 |
fi |
332 |
|
333 |
# Finalize and report settings |
334 |
mozconfig_final |
335 |
|
336 |
# -fstack-protector breaks us |
337 |
if gcc-version ge 4 1; then |
338 |
gcc-specs-ssp && append-flags -fno-stack-protector |
339 |
else |
340 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
341 |
fi |
342 |
filter-flags -fstack-protector -fstack-protector-all |
343 |
|
344 |
#################################### |
345 |
# |
346 |
# Configure and build |
347 |
# |
348 |
#################################### |
349 |
|
350 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
351 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
352 |
econf || die |
353 |
|
354 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
355 |
# to econf, but the quotes cause configure to fail. |
356 |
sed -i -e \ |
357 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
358 |
"${S}"/config/autoconf.mk \ |
359 |
"${S}"/toolkit/content/buildconfig.html |
360 |
|
361 |
emake || die "emake failed" |
362 |
} |
363 |
|
364 |
src_install() { |
365 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" |
366 |
|
367 |
emake DESTDIR="${D}" install || die "emake install failed" |
368 |
|
369 |
rm "${D}"/usr/bin/xulrunner |
370 |
|
371 |
dodir /usr/bin |
372 |
dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9 |
373 |
|
374 |
# Add vendor |
375 |
echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ |
376 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
377 |
|
378 |
if use java ; then |
379 |
java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
380 |
rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
381 |
fi |
382 |
} |