1 |
armin76 07/11/02 15:58:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.8.1.9.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.65 net-libs/xulrunner/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.65&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.65&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.64&r2=1.65 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
19 |
retrieving revision 1.64 |
20 |
retrieving revision 1.65 |
21 |
diff -u -r1.64 -r1.65 |
22 |
--- ChangeLog 24 Oct 2007 05:32:56 -0000 1.64 |
23 |
+++ ChangeLog 2 Nov 2007 15:58:17 -0000 1.65 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-libs/xulrunner |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.64 2007/10/24 05:32:56 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.65 2007/11/02 15:58:17 armin76 Exp $ |
29 |
+ |
30 |
+*xulrunner-1.8.1.9 (02 Nov 2007) |
31 |
+ |
32 |
+ 02 Nov 2007; Raúl Porcel <armin76@g.o> +xulrunner-1.8.1.9.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
24 Oct 2007; Jeroen Roovers <jer@g.o> xulrunner-1.8.1.8.ebuild: |
36 |
Stable for HPPA (bug #196480). Fixed quoting issues. |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-libs/xulrunner/xulrunner-1.8.1.9.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.9.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.9.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: xulrunner-1.8.1.9.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.9.ebuild,v 1.1 2007/11/02 15:58:17 armin76 Exp $ |
50 |
|
51 |
WANT_AUTOCONF="2.1" |
52 |
|
53 |
inherit flag-o-matic toolchain-funcs eutils makeedit multilib autotools mozconfig-2 java-pkg-opt-2 |
54 |
PATCH="${PN}-1.8.1.8-patches-0.1" |
55 |
|
56 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
57 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
58 |
SRC_URI="mirror://gentoo/${P}-source.tar.bz2 |
59 |
mirror://gentoo/${PATCH}.tar.bz2" |
60 |
|
61 |
SLOT="0" |
62 |
LICENSE="MPL-1.1 GPL-2 LGPL-2.1" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="" |
65 |
|
66 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
67 |
>=sys-devel/binutils-2.16.1 |
68 |
>=dev-libs/nss-3.11.5 |
69 |
>=dev-libs/nspr-4.6.5-r1 |
70 |
java? ( >=virtual/jre-1.4 )" |
71 |
|
72 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
73 |
${RDEPEND} |
74 |
dev-util/pkgconfig" |
75 |
|
76 |
S="${WORKDIR}/mozilla" |
77 |
|
78 |
# Needed by src_compile() and src_install(). |
79 |
# Would do in pkg_setup but that loses the export attribute, they |
80 |
# become pure shell variables. |
81 |
export MOZ_CO_PROJECT=xulrunner |
82 |
export BUILD_OFFICIAL=1 |
83 |
export MOZILLA_OFFICIAL=1 |
84 |
|
85 |
src_unpack() { |
86 |
unpack ${P}-source.tar.bz2 ${PATCH}.tar.bz2 |
87 |
|
88 |
# Apply our patches |
89 |
cd "${S}" || die "cd failed" |
90 |
EPATCH_SUFFIX="patch" \ |
91 |
EPATCH_FORCE="yes" \ |
92 |
epatch "${WORKDIR}"/patch |
93 |
|
94 |
eautoreconf || die "failed running eautoreconf" |
95 |
} |
96 |
|
97 |
src_compile() { |
98 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
99 |
|
100 |
#################################### |
101 |
# |
102 |
# mozconfig, CFLAGS and CXXFLAGS setup |
103 |
# |
104 |
#################################### |
105 |
|
106 |
mozconfig_init |
107 |
mozconfig_config |
108 |
|
109 |
mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck" |
110 |
mozconfig_annotate '' --enable-native-uconv |
111 |
mozconfig_annotate '' --enable-image-encoder=all |
112 |
mozconfig_annotate '' --enable-canvas |
113 |
#mozconfig_annotate '' --enable-js-binary |
114 |
mozconfig_annotate '' --enable-embedding-tests |
115 |
mozconfig_annotate '' --with-system-nspr |
116 |
mozconfig_annotate '' --with-system-nss |
117 |
mozconfig_annotate '' --with-system-bz2 |
118 |
mozconfig_annotate '' --enable-jsd |
119 |
mozconfig_annotate '' --enable-xpctools |
120 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
121 |
# regardless of java setting. |
122 |
mozconfig_annotate '' --enable-oji --enable-mathml |
123 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
124 |
|
125 |
#disable java |
126 |
if ! use java ; then |
127 |
mozconfig_annotate '-java' --disable-javaxpcom |
128 |
fi |
129 |
|
130 |
# Finalize and report settings |
131 |
mozconfig_final |
132 |
|
133 |
# -fstack-protector breaks us |
134 |
if gcc-version ge 4 1; then |
135 |
gcc-specs-ssp && append-flags -fno-stack-protector |
136 |
else |
137 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
138 |
fi |
139 |
filter-flags -fstack-protector -fstack-protector-all |
140 |
|
141 |
#################################### |
142 |
# |
143 |
# Configure and build |
144 |
# |
145 |
#################################### |
146 |
|
147 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
148 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
149 |
econf || die |
150 |
|
151 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
152 |
# to econf, but the quotes cause configure to fail. |
153 |
sed -i -e \ |
154 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
155 |
"${S}"/config/autoconf.mk \ |
156 |
"${S}"/toolkit/content/buildconfig.html |
157 |
|
158 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
159 |
# requirements while compiling |
160 |
edit_makefiles |
161 |
|
162 |
emake || die "emake failed" |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
167 |
emake DESTDIR="${D}" install || die "emake install failed" |
168 |
X_DATE=`date +%Y%m%d` |
169 |
|
170 |
# Add Gentoo package version to preferences - copied from debian rules |
171 |
echo // Gentoo package version \ |
172 |
> "${D}"/usr/$(get_libdir)/xulrunner/defaults/pref/vendor.js |
173 |
echo "pref(\"general.useragent.product\",\"Gecko\");" \ |
174 |
>> "${D}"/usr/$(get_libdir)/xulrunner/defaults/pref/vendor.js |
175 |
echo "pref(\"general.useragent.productSub\",\"${X_DATE}\");" \ |
176 |
>> "${D}"/usr/$(get_libdir)/xulrunner/defaults/pref/vendor.js |
177 |
echo "pref(\"general.useragent.productComment\",\"Gentoo\");" \ |
178 |
>> "${D}"/usr/$(get_libdir)/xulrunner/defaults/pref/vendor.js |
179 |
|
180 |
if use java ; then |
181 |
java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
182 |
rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
183 |
fi |
184 |
|
185 |
# xulrunner registration, the gentoo way |
186 |
insinto /etc/gre.d |
187 |
newins "${FILESDIR}"/${PN}.conf ${PV}.conf |
188 |
sed -i -e \ |
189 |
"s|version|${PV}| |
190 |
s|instpath|${MOZILLA_FIVE_HOME}|" \ |
191 |
"${D}"/etc/gre.d/${PV}.conf |
192 |
} |
193 |
|
194 |
pkg_postinst() { |
195 |
elog "Please remember to rebuild any packages that you have built" |
196 |
elog "against xulrunner. Some packages might be broken by the upgrade; if this" |
197 |
elog "is the case, please search at http://bugs.gentoo.org and open a new bug" |
198 |
elog "if one does not exist." |
199 |
} |
200 |
|
201 |
|
202 |
|
203 |
-- |
204 |
gentoo-commits@g.o mailing list |