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.6.ebuild
Date: Wed, 04 Feb 2009 11:30:13
Message-Id: E1LUfxK-0003ll-4z@stork.gentoo.org
1 armin76 09/02/04 11:30:10
2
3 Modified: ChangeLog
4 Added: xulrunner-1.9.0.6.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.6.4/cvs/Linux 2.6.26-gentoo-r2 ia64)
8
9 Revision Changes Path
10 1.179 net-libs/xulrunner/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.179&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.179&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.178&r2=1.179
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v
19 retrieving revision 1.178
20 retrieving revision 1.179
21 diff -u -r1.178 -r1.179
22 --- ChangeLog 21 Jan 2009 06:34:50 -0000 1.178
23 +++ ChangeLog 4 Feb 2009 11:30:10 -0000 1.179
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.178 2009/01/21 06:34:50 gengor Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.179 2009/02/04 11:30:10 armin76 Exp $
29 +
30 +*xulrunner-1.9.0.6 (04 Feb 2009)
31 +
32 + 04 Feb 2009; Raúl Porcel <armin76@g.o> +xulrunner-1.9.0.6.ebuild:
33 + Version bump
34
35 21 Jan 2009; Gordon Malm <gengor@g.o> xulrunner-1.9.0.5.ebuild:
36 Append fno-stack-protector on all ARCHes for CXX only. Bugs 253639, 253737.
37
38
39
40 1.1 net-libs/xulrunner/xulrunner-1.9.0.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: xulrunner-1.9.0.6.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.6.ebuild,v 1.1 2009/02/04 11:30:10 armin76 Exp $
50
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.5-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.2
71 >=dev-libs/nspr-4.7.3
72 >=app-text/hunspell-1.1.9
73 >=media-libs/lcms-1.17"
74
75 DEPEND="java? ( >=virtual/jdk-1.4 )
76 ${RDEPEND}
77 dev-util/pkgconfig"
78
79 S="${WORKDIR}/mozilla"
80
81 # Needed by src_compile() and src_install().
82 # Would do in pkg_setup but that loses the export attribute, they
83 # become pure shell variables.
84 export MOZ_CO_PROJECT=xulrunner
85 export BUILD_OFFICIAL=1
86 export MOZILLA_OFFICIAL=1
87
88 pkg_setup(){
89 if ! built_with_use x11-libs/cairo X; then
90 eerror "Cairo is not built with X useflag."
91 eerror "Please add 'X' to your USE flags, and re-emerge cairo."
92 die "Cairo needs X"
93 fi
94
95 if ! built_with_use --missing true x11-libs/pango X; then
96 eerror "Pango is not built with X useflag."
97 eerror "Please add 'X' to your USE flags, and re-emerge pango."
98 die "Pango needs X"
99 fi
100 java-pkg-opt-2_pkg_setup
101 }
102
103 src_unpack() {
104 unpack ${A}
105
106 # Apply our patches
107 cd "${S}" || die "cd failed"
108 EPATCH_SUFFIX="patch" \
109 EPATCH_FORCE="yes" \
110 epatch "${WORKDIR}"/patch
111
112 eautoreconf || die "failed running eautoreconf"
113
114 # We need to re-patch this because autoreconf overwrites it
115 epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch
116 }
117
118 src_compile() {
119 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9"
120
121 ####################################
122 #
123 # mozconfig, CFLAGS and CXXFLAGS setup
124 #
125 ####################################
126
127 mozconfig_init
128 mozconfig_config
129
130 MEXTENSIONS="default"
131 # if use python; then
132 # MEXTENSIONS="${MEXTENSIONS},python/xpcom"
133 # fi
134
135 # It doesn't compile on alpha without this LDFLAGS
136 use alpha && append-ldflags "-Wl,--no-relax"
137
138 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
139 mozconfig_annotate '' --disable-mailnews
140 mozconfig_annotate 'broken' --disable-mochitest
141 mozconfig_annotate 'broken' --disable-crashreporter
142 mozconfig_annotate '' --enable-system-hunspell
143 #mozconfig_annotate '' --enable-system-sqlite
144 mozconfig_annotate '' --enable-image-encoder=all
145 mozconfig_annotate '' --enable-canvas
146 #mozconfig_annotate '' --enable-js-binary
147 mozconfig_annotate '' --enable-embedding-tests
148 mozconfig_annotate '' --with-system-nspr
149 mozconfig_annotate '' --with-system-nss
150 mozconfig_annotate '' --enable-system-lcms
151 mozconfig_annotate '' --with-system-bz2
152 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
153 # regardless of java setting.
154 mozconfig_annotate '' --enable-oji --enable-mathml
155 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
156 mozconfig_annotate '' --enable-safe-browsing
157
158 # Other ff-specific settings
159 mozconfig_annotate '' --enable-jsd
160 mozconfig_annotate '' --enable-xpctools
161 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
162
163 #disable java
164 if ! use java ; then
165 mozconfig_annotate '-java' --disable-javaxpcom
166 fi
167
168 # Finalize and report settings
169 mozconfig_final
170
171 if [[ $(gcc-major-version) -lt 4 ]]; then
172 append-cxxflags -fno-stack-protector
173 fi
174
175 ####################################
176 #
177 # Configure and build
178 #
179 ####################################
180
181 CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
182 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
183 econf || die
184
185 # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
186 # to econf, but the quotes cause configure to fail.
187 sed -i -e \
188 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \
189 "${S}"/config/autoconf.mk \
190 "${S}"/toolkit/content/buildconfig.html
191
192 emake || die "emake failed"
193 }
194
195 src_install() {
196 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9"
197
198 emake DESTDIR="${D}" install || die "emake install failed"
199
200 rm "${D}"/usr/bin/xulrunner
201
202 dodir /usr/bin
203 dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9
204
205 # Add vendor
206 echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \
207 >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js
208
209 if use java ; then
210 java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar
211 rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar
212 fi
213 }