1 |
armin76 09/04/28 14:05:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.9.0.10.ebuild |
5 |
Removed: xulrunner-1.9.0.9.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
(Portage version: 2.1.6.7/cvs/Linux ia64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.202 net-libs/xulrunner/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.202&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.202&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.201&r2=1.202 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
20 |
retrieving revision 1.201 |
21 |
retrieving revision 1.202 |
22 |
diff -u -r1.201 -r1.202 |
23 |
--- ChangeLog 22 Apr 2009 18:03:32 -0000 1.201 |
24 |
+++ ChangeLog 28 Apr 2009 14:05:48 -0000 1.202 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-libs/xulrunner |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.201 2009/04/22 18:03:32 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.202 2009/04/28 14:05:48 armin76 Exp $ |
30 |
+ |
31 |
+*xulrunner-1.9.0.10 (28 Apr 2009) |
32 |
+ |
33 |
+ 28 Apr 2009; Raúl Porcel <armin76@g.o> -xulrunner-1.9.0.9.ebuild, |
34 |
+ +xulrunner-1.9.0.10.ebuild: |
35 |
+ Version bump |
36 |
|
37 |
*xulrunner-1.9.0.9 (22 Apr 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-libs/xulrunner/xulrunner-1.9.0.10.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.10.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.10.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: xulrunner-1.9.0.10.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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.0.10.ebuild,v 1.1 2009/04/28 14:05:48 armin76 Exp $ |
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 python autotools |
56 |
PATCH="${P}-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}.tar.bz2 |
61 |
http://dev.gentoo.org/~armin76/dist/${P}.tar.bz2 |
62 |
mirror://gentoo/${PATCH}.tar.bz2 |
63 |
http://dev.gentoo.org/~armin76/dist/${PATCH}.tar.bz2" |
64 |
|
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
66 |
SLOT="1.9" |
67 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
68 |
IUSE="" |
69 |
|
70 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
71 |
>=sys-devel/binutils-2.16.1 |
72 |
>=dev-libs/nss-3.12.2 |
73 |
>=dev-libs/nspr-4.7.4 |
74 |
>=app-text/hunspell-1.1.9 |
75 |
>=media-libs/lcms-1.17 |
76 |
x11-libs/cairo[X] |
77 |
x11-libs/pango[X]" |
78 |
|
79 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
80 |
${RDEPEND} |
81 |
dev-util/pkgconfig" |
82 |
|
83 |
S="${WORKDIR}/mozilla" |
84 |
|
85 |
# Needed by src_compile() and src_install(). |
86 |
# Would do in pkg_setup but that loses the export attribute, they |
87 |
# become pure shell variables. |
88 |
export MOZ_CO_PROJECT=xulrunner |
89 |
export BUILD_OFFICIAL=1 |
90 |
export MOZILLA_OFFICIAL=1 |
91 |
|
92 |
pkg_setup() { |
93 |
java-pkg-opt-2_pkg_setup |
94 |
} |
95 |
|
96 |
src_prepare() { |
97 |
# Apply our patches |
98 |
cd "${S}" || die "cd failed" |
99 |
EPATCH_SUFFIX="patch" \ |
100 |
EPATCH_FORCE="yes" \ |
101 |
epatch "${WORKDIR}"/patch |
102 |
|
103 |
eautoreconf || die "failed running eautoreconf" |
104 |
|
105 |
# We need to re-patch this because autoreconf overwrites it |
106 |
epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch |
107 |
} |
108 |
|
109 |
src_configure() { |
110 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" |
111 |
|
112 |
#################################### |
113 |
# |
114 |
# mozconfig, CFLAGS and CXXFLAGS setup |
115 |
# |
116 |
#################################### |
117 |
|
118 |
mozconfig_init |
119 |
mozconfig_config |
120 |
|
121 |
MEXTENSIONS="default" |
122 |
# if use python; then |
123 |
# MEXTENSIONS="${MEXTENSIONS},python/xpcom" |
124 |
# fi |
125 |
|
126 |
# It doesn't compile on alpha without this LDFLAGS |
127 |
use alpha && append-ldflags "-Wl,--no-relax" |
128 |
|
129 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
130 |
mozconfig_annotate '' --disable-mailnews |
131 |
mozconfig_annotate 'broken' --disable-mochitest |
132 |
mozconfig_annotate 'broken' --disable-crashreporter |
133 |
mozconfig_annotate '' --enable-system-hunspell |
134 |
#mozconfig_annotate '' --enable-system-sqlite |
135 |
mozconfig_annotate '' --enable-image-encoder=all |
136 |
mozconfig_annotate '' --enable-canvas |
137 |
#mozconfig_annotate '' --enable-js-binary |
138 |
mozconfig_annotate '' --enable-embedding-tests |
139 |
mozconfig_annotate '' --with-system-nspr |
140 |
mozconfig_annotate '' --with-system-nss |
141 |
mozconfig_annotate '' --enable-system-lcms |
142 |
mozconfig_annotate '' --with-system-bz2 |
143 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
144 |
# regardless of java setting. |
145 |
mozconfig_annotate '' --enable-oji --enable-mathml |
146 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
147 |
mozconfig_annotate '' --enable-safe-browsing |
148 |
|
149 |
# Other ff-specific settings |
150 |
mozconfig_annotate '' --enable-jsd |
151 |
mozconfig_annotate '' --enable-xpctools |
152 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
153 |
|
154 |
#disable java |
155 |
if ! use java ; then |
156 |
mozconfig_annotate '-java' --disable-javaxpcom |
157 |
fi |
158 |
|
159 |
# Finalize and report settings |
160 |
mozconfig_final |
161 |
|
162 |
#################################### |
163 |
# |
164 |
# Configure and build |
165 |
# |
166 |
#################################### |
167 |
|
168 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
169 |
append-cxxflags -fno-stack-protector |
170 |
fi |
171 |
|
172 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
173 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
174 |
econf || die |
175 |
|
176 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
177 |
# to econf, but the quotes cause configure to fail. |
178 |
sed -i -e \ |
179 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
180 |
"${S}"/config/autoconf.mk \ |
181 |
"${S}"/toolkit/content/buildconfig.html |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" |
186 |
|
187 |
emake DESTDIR="${D}" install || die "emake install failed" |
188 |
|
189 |
rm "${D}"/usr/bin/xulrunner |
190 |
|
191 |
dodir /usr/bin |
192 |
dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9 |
193 |
|
194 |
# Add vendor |
195 |
echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ |
196 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
197 |
|
198 |
if use java ; then |
199 |
java-pkg_regjar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
200 |
java-pkg_regjar "${D}"${MOZILLA_FIVE_HOME}/sdk/lib/MozillaGlue.jar |
201 |
java-pkg_regjar "${D}"${MOZILLA_FIVE_HOME}/sdk/lib/MozillaInterfaces.jar |
202 |
fi |
203 |
} |