Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xulrunner: ChangeLog xulrunner-1.8.1.17.ebuild xulrunner-1.9.0.3.ebuild xulrunner-1.8.1.11.ebuild xulrunner-1.9.0.2.ebuild xulrunner-1.9.0.1.ebuild
Date: Sat, 27 Sep 2008 10:17:09
Message-Id: E1KjWrK-00022t-6m@stork.gentoo.org
1 armin76 08/09/27 10:17:06
2
3 Modified: ChangeLog xulrunner-1.8.1.17.ebuild
4 Added: xulrunner-1.9.0.3.ebuild
5 Removed: xulrunner-1.8.1.11.ebuild xulrunner-1.9.0.2.ebuild
6 xulrunner-1.9.0.1.ebuild
7 Log:
8 Version bump, add ~arm, alpha/arm/ia64/sparc/x86 stable, remove old
9 (Portage version: 2.1.4.4)
10
11 Revision Changes Path
12 1.144 net-libs/xulrunner/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.144&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.144&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.143&r2=1.144
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
21 retrieving revision 1.143
22 retrieving revision 1.144
23 diff -u -r1.143 -r1.144
24 --- ChangeLog 26 Sep 2008 15:04:33 -0000 1.143
25 +++ ChangeLog 27 Sep 2008 10:17:05 -0000 1.144
26 @@ -1,6 +1,13 @@
27 # ChangeLog for net-libs/xulrunner
28 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.143 2008/09/26 15:04:33 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.144 2008/09/27 10:17:05 armin76 Exp $
31 +
32 +*xulrunner-1.9.0.3 (27 Sep 2008)
33 +
34 + 27 Sep 2008; Raúl Porcel <armin76@g.o> -xulrunner-1.8.1.11.ebuild,
35 + xulrunner-1.8.1.17.ebuild, -xulrunner-1.9.0.1.ebuild,
36 + -xulrunner-1.9.0.2.ebuild, +xulrunner-1.9.0.3.ebuild:
37 + Version bump, add ~arm, alpha/arm/ia64/sparc/x86 stable, remove old
38
39 26 Sep 2008; Jeroen Roovers <jer@g.o> xulrunner-1.8.1.17.ebuild:
40 Stable for HPPA (bug #238535).
41
42
43
44 1.4 net-libs/xulrunner/xulrunner-1.8.1.17.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild?rev=1.4&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild?rev=1.4&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild?r1=1.3&r2=1.4
49
50 Index: xulrunner-1.8.1.17.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild,v
53 retrieving revision 1.3
54 retrieving revision 1.4
55 diff -u -r1.3 -r1.4
56 --- xulrunner-1.8.1.17.ebuild 26 Sep 2008 15:04:33 -0000 1.3
57 +++ xulrunner-1.8.1.17.ebuild 27 Sep 2008 10:17:05 -0000 1.4
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2008 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild,v 1.3 2008/09/26 15:04:33 jer Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.1.17.ebuild,v 1.4 2008/09/27 10:17:05 armin76 Exp $
63
64 WANT_AUTOCONF="2.1"
65
66 @@ -14,7 +14,7 @@
67
68 SLOT="1.8"
69 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
70 -KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc ~x86 ~x86-fbsd"
71 +KEYWORDS="alpha ~amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
72 IUSE=""
73
74 RDEPEND=">=sys-libs/zlib-1.1.4
75
76
77
78 1.1 net-libs/xulrunner/xulrunner-1.9.0.3.ebuild
79
80 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.3.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.3.ebuild?rev=1.1&content-type=text/plain
82
83 Index: xulrunner-1.9.0.3.ebuild
84 ===================================================================
85 # Copyright 1999-2008 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.3.ebuild,v 1.1 2008/09/27 10:17:05 armin76 Exp $
88
89 WANT_AUTOCONF="2.1"
90
91 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools
92 PATCH="${PN}-1.9.0.1-patches-0.1"
93
94 DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications"
95 HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner"
96 SRC_URI="mirror://gentoo/${P}.tar.bz2
97 http://dev.gentoo.org/~armin76/${P}.tar.bz2
98 mirror://gentoo/${PATCH}.tar.bz2"
99
100 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86"
101 SLOT="1.9"
102 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
103 IUSE=""
104
105 RDEPEND="java? ( >=virtual/jre-1.4 )
106 >=sys-devel/binutils-2.16.1
107 >=dev-libs/nss-3.12
108 >=dev-libs/nspr-4.7.1
109 >=app-text/hunspell-1.1.9
110 >=media-libs/lcms-1.17"
111
112 DEPEND="java? ( >=virtual/jdk-1.4 )
113 ${RDEPEND}
114 dev-util/pkgconfig"
115
116 S="${WORKDIR}/mozilla"
117
118 # Needed by src_compile() and src_install().
119 # Would do in pkg_setup but that loses the export attribute, they
120 # become pure shell variables.
121 export MOZ_CO_PROJECT=xulrunner
122 export BUILD_OFFICIAL=1
123 export MOZILLA_OFFICIAL=1
124
125 pkg_setup(){
126 if ! built_with_use x11-libs/cairo X; then
127 eerror "Cairo is not built with X useflag."
128 eerror "Please add 'X' to your USE flags, and re-emerge cairo."
129 die "Cairo needs X"
130 fi
131
132 if ! built_with_use --missing true x11-libs/pango X; then
133 eerror "Pango is not built with X useflag."
134 eerror "Please add 'X' to your USE flags, and re-emerge pango."
135 die "Pango needs X"
136 fi
137 java-pkg-opt-2_pkg_setup
138 }
139
140 src_unpack() {
141 unpack ${A}
142
143 # Apply our patches
144 cd "${S}" || die "cd failed"
145 EPATCH_SUFFIX="patch" \
146 EPATCH_FORCE="yes" \
147 epatch "${WORKDIR}"/patch
148
149 eautoreconf || die "failed running eautoreconf"
150
151 # We need to re-patch this because autoreconf overwrites it
152 epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch
153 }
154
155 src_compile() {
156 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9"
157
158 ####################################
159 #
160 # mozconfig, CFLAGS and CXXFLAGS setup
161 #
162 ####################################
163
164 mozconfig_init
165 mozconfig_config
166
167 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
168 mozconfig_annotate '' --disable-mailnews
169 mozconfig_annotate 'broken' --disable-mochitest
170 mozconfig_annotate 'broken' --disable-crashreporter
171 mozconfig_annotate '' --enable-system-hunspell
172 #mozconfig_annotate '' --enable-system-sqlite
173 mozconfig_annotate '' --enable-image-encoder=all
174 mozconfig_annotate '' --enable-canvas
175 #mozconfig_annotate '' --enable-js-binary
176 mozconfig_annotate '' --enable-embedding-tests
177 mozconfig_annotate '' --with-system-nspr
178 mozconfig_annotate '' --with-system-nss
179 mozconfig_annotate '' --enable-system-lcms
180 mozconfig_annotate '' --with-system-bz2
181 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
182 # regardless of java setting.
183 mozconfig_annotate '' --enable-oji --enable-mathml
184 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
185 mozconfig_annotate '' --enable-safe-browsing
186
187 # Other ff-specific settings
188 mozconfig_annotate '' --enable-jsd
189 mozconfig_annotate '' --enable-xpctools
190 mozconfig_annotate '' --disable-libxul
191 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
192
193 #disable java
194 if ! use java ; then
195 mozconfig_annotate '-java' --disable-javaxpcom
196 fi
197
198 # Finalize and report settings
199 mozconfig_final
200
201 # -fstack-protector breaks us
202 if gcc-version ge 4 1; then
203 gcc-specs-ssp && append-flags -fno-stack-protector
204 else
205 gcc-specs-ssp && append-flags -fno-stack-protector-all
206 fi
207 filter-flags -fstack-protector -fstack-protector-all
208
209 ####################################
210 #
211 # Configure and build
212 #
213 ####################################
214
215 CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
216 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
217 econf || die
218
219 # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
220 # to econf, but the quotes cause configure to fail.
221 sed -i -e \
222 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \
223 "${S}"/config/autoconf.mk \
224 "${S}"/toolkit/content/buildconfig.html
225
226 emake || die "emake failed"
227 }
228
229 src_install() {
230 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9"
231
232 emake DESTDIR="${D}" install || die "emake install failed"
233
234 rm "${D}"/usr/bin/xulrunner
235
236 dodir /usr/bin
237 dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9
238
239 # Add vendor
240 echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \
241 >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js
242
243 if use java ; then
244 java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar
245 rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar
246 fi
247 }