1 |
armin76 08/07/02 21:02:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.8.1.15.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.123 net-libs/xulrunner/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.123&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.123&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.122&r2=1.123 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
19 |
retrieving revision 1.122 |
20 |
retrieving revision 1.123 |
21 |
diff -u -r1.122 -r1.123 |
22 |
--- ChangeLog 29 Jun 2008 15:39:55 -0000 1.122 |
23 |
+++ ChangeLog 2 Jul 2008 21:02:09 -0000 1.123 |
24 |
@@ -1,6 +1,11 @@ |
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.122 2008/06/29 15:39:55 betelgeuse Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.123 2008/07/02 21:02:09 armin76 Exp $ |
29 |
+ |
30 |
+*xulrunner-1.8.1.15 (02 Jul 2008) |
31 |
+ |
32 |
+ 02 Jul 2008; Raúl Porcel <armin76@g.o> +xulrunner-1.8.1.15.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
29 Jun 2008; Petteri Räty <betelgeuse@g.o> |
36 |
xulrunner-1.8.1.14.ebuild, xulrunner-1.9-r2.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-libs/xulrunner/xulrunner-1.8.1.15.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.15.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.15.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: xulrunner-1.8.1.15.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 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.15.ebuild,v 1.1 2008/07/02 21:02:09 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.13-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="1.8" |
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 |
pkg_setup(){ |
86 |
if ! built_with_use x11-libs/cairo X; then |
87 |
eerror "Cairo is not built with X useflag." |
88 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
89 |
die "Cairo needs X" |
90 |
fi |
91 |
|
92 |
if ! built_with_use --missing true x11-libs/pango X; then |
93 |
eerror "Pango is not built with X useflag." |
94 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
95 |
die "Pango needs X" |
96 |
fi |
97 |
java-pkg-opt-2_pkg_setup |
98 |
} |
99 |
|
100 |
src_unpack() { |
101 |
unpack ${P}-source.tar.bz2 ${PATCH}.tar.bz2 |
102 |
|
103 |
# Apply our patches |
104 |
cd "${S}" || die "cd failed" |
105 |
EPATCH_SUFFIX="patch" \ |
106 |
EPATCH_FORCE="yes" \ |
107 |
epatch "${WORKDIR}"/patch |
108 |
|
109 |
eautoreconf || die "failed running eautoreconf" |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
114 |
|
115 |
#################################### |
116 |
# |
117 |
# mozconfig, CFLAGS and CXXFLAGS setup |
118 |
# |
119 |
#################################### |
120 |
|
121 |
mozconfig_init |
122 |
mozconfig_config |
123 |
|
124 |
mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck" |
125 |
mozconfig_annotate '' --enable-native-uconv |
126 |
mozconfig_annotate '' --enable-image-encoder=all |
127 |
mozconfig_annotate '' --enable-canvas |
128 |
#mozconfig_annotate '' --enable-js-binary |
129 |
mozconfig_annotate '' --enable-embedding-tests |
130 |
mozconfig_annotate '' --with-system-nspr |
131 |
mozconfig_annotate '' --with-system-nss |
132 |
mozconfig_annotate '' --with-system-bz2 |
133 |
mozconfig_annotate '' --enable-jsd |
134 |
mozconfig_annotate '' --enable-xpctools |
135 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
136 |
# regardless of java setting. |
137 |
mozconfig_annotate '' --enable-oji --enable-mathml |
138 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
139 |
|
140 |
#disable java |
141 |
if ! use java ; then |
142 |
mozconfig_annotate '-java' --disable-javaxpcom |
143 |
fi |
144 |
|
145 |
# Finalize and report settings |
146 |
mozconfig_final |
147 |
|
148 |
# -fstack-protector breaks us |
149 |
if gcc-version ge 4 1; then |
150 |
gcc-specs-ssp && append-flags -fno-stack-protector |
151 |
else |
152 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
153 |
fi |
154 |
filter-flags -fstack-protector -fstack-protector-all |
155 |
|
156 |
#################################### |
157 |
# |
158 |
# Configure and build |
159 |
# |
160 |
#################################### |
161 |
|
162 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
163 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
164 |
econf || die |
165 |
|
166 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
167 |
# to econf, but the quotes cause configure to fail. |
168 |
sed -i -e \ |
169 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
170 |
"${S}"/config/autoconf.mk \ |
171 |
"${S}"/toolkit/content/buildconfig.html |
172 |
|
173 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
174 |
# requirements while compiling |
175 |
edit_makefiles |
176 |
|
177 |
emake || die "emake failed" |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
182 |
emake DESTDIR="${D}" install || die "emake install failed" |
183 |
X_DATE=`date +%Y%m%d` |
184 |
|
185 |
# Add Gentoo package version to preferences - copied from debian rules |
186 |
echo // Gentoo package version \ |
187 |
> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
188 |
echo "pref(\"general.useragent.product\",\"Gecko\");" \ |
189 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
190 |
echo "pref(\"general.useragent.productSub\",\"${X_DATE}\");" \ |
191 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
192 |
echo "pref(\"general.useragent.productComment\",\"Gentoo\");" \ |
193 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
194 |
|
195 |
if use java ; then |
196 |
java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
197 |
rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar |
198 |
fi |
199 |
|
200 |
# xulrunner registration, the gentoo way |
201 |
insinto /etc/gre.d |
202 |
newins "${FILESDIR}"/${PN}.conf ${PV}.conf |
203 |
sed -i -e \ |
204 |
"s|version|${PV}| |
205 |
s|instpath|${MOZILLA_FIVE_HOME}|" \ |
206 |
"${D}"/etc/gre.d/${PV}.conf |
207 |
} |
208 |
|
209 |
pkg_postinst() { |
210 |
elog "Please remember to rebuild any packages that you have built" |
211 |
elog "against xulrunner. Some packages might be broken by the upgrade; if this" |
212 |
elog "is the case, please search at http://bugs.gentoo.org and open a new bug" |
213 |
elog "if one does not exist." |
214 |
} |
215 |
|
216 |
|
217 |
|
218 |
-- |
219 |
gentoo-commits@l.g.o mailing list |