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