Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/seamonkey: seamonkey-2.9.1-r2.ebuild ChangeLog seamonkey-2.9.1-r1.ebuild
Date: Tue, 29 May 2012 08:16:19
Message-Id: 20120529081603.A85BB2004B@flycatcher.gentoo.org
1 polynomial-c 12/05/29 08:16:03
2
3 Modified: ChangeLog
4 Added: seamonkey-2.9.1-r2.ebuild
5 Removed: seamonkey-2.9.1-r1.ebuild
6 Log:
7 Incorporate gcc-4.7 fixes and a better patch for system-cairo support
8
9 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.382 www-client/seamonkey/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.382&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.382&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.381&r2=1.382
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
21 retrieving revision 1.381
22 retrieving revision 1.382
23 diff -u -r1.381 -r1.382
24 --- ChangeLog 24 May 2012 22:48:24 -0000 1.381
25 +++ ChangeLog 29 May 2012 08:16:03 -0000 1.382
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-client/seamonkey
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.381 2012/05/24 22:48:24 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.382 2012/05/29 08:16:03 polynomial-c Exp $
31 +
32 +*seamonkey-2.9.1-r2 (29 May 2012)
33 +
34 + 29 May 2012; Lars Wendler <polynomial-c@g.o>
35 + -seamonkey-2.9.1-r1.ebuild, +seamonkey-2.9.1-r2.ebuild:
36 + Revision bump to incorporate gcc-4.7 fixes and a better patch for
37 + system-cairo support.
38
39 24 May 2012; Mike Gilbert <floppym@g.o> seamonkey-2.9.1-r1.ebuild,
40 seamonkey-2.9.ebuild:
41
42
43
44 1.1 www-client/seamonkey/seamonkey-2.9.1-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.9.1-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.9.1-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: seamonkey-2.9.1-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.9.1-r2.ebuild,v 1.1 2012/05/29 08:16:03 polynomial-c Exp $
54
55 EAPI="3"
56 WANT_AUTOCONF="2.1"
57
58 # This list can be updated with scripts/get_langs.sh from the mozilla overlay
59 MOZ_LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl
60 pt-PT ru sk sv-SE tr zh-CN)
61
62 MOZ_PV="${PV/_pre*}"
63 MOZ_PV="${MOZ_PV/_alpha/a}"
64 MOZ_PV="${MOZ_PV/_beta/b}"
65 MOZ_PV="${MOZ_PV/_rc/rc}"
66 MOZ_P="${PN}-${MOZ_PV}"
67
68 if [[ ${PV} == *_pre* ]] ; then
69 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/nightly/${MOZ_PV}-candidates/build${PV##*_pre}"
70 MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
71 # And the langpack stuff stays at eclass defaults
72 else
73 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
74 MOZ_LANGPACK_PREFIX="langpack/${MOZ_P}."
75 MOZ_LANGPACK_SUFFIX=".langpack.xpi"
76 fi
77
78 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension python nsplugins mozlinguas
79
80 PATCHFF="firefox-12.0-patches-0.5"
81 PATCH="${PN}-2.7-patches-03"
82 EMVER="1.4.1"
83
84 DESCRIPTION="Seamonkey Web Browser"
85 HOMEPAGE="http://www.seamonkey-project.org"
86
87 if [[ ${PV} == *_pre* ]] ; then
88 # pre-releases. No need for arch teams to change KEYWORDS here.
89
90 KEYWORDS=""
91 else
92 # This is where arch teams should change the KEYWORDS.
93
94 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
95 fi
96
97 SLOT="0"
98 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
99 IUSE="+alsa +chatzilla +crypt +ipc +jit +roaming system-sqlite +webm"
100
101 SRC_URI+="${SRC_URI}
102 ${MOZ_FTP_URI}/source/${MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2
103 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
104 http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
105 http://dev.gentoo.org/~polynomial-c/mozilla/${PN}-2.9-revert-system-cairo-breakage.patch.bz2
106 crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )"
107
108 ASM_DEPEND=">=dev-lang/yasm-1.1"
109
110 # Mesa 7.10 needed for WebGL + bugfixes
111 RDEPEND=">=sys-devel/binutils-2.16.1
112 >=dev-libs/nss-3.13.2
113 >=dev-libs/nspr-4.9
114 >=dev-libs/glib-2.26
115 >=media-libs/mesa-7.10
116 >=media-libs/libpng-1.4.1[apng]
117 >=x11-libs/cairo-1.10
118 >=x11-libs/pango-1.14.0
119 >=x11-libs/gtk+-2.14
120 virtual/libffi
121 system-sqlite? ( >=dev-db/sqlite-3.7.10[fts3,secure-delete,threadsafe,unlock-notify,debug=] )
122 crypt? ( >=app-crypt/gnupg-1.4 )
123 webm? ( >=media-libs/libvpx-1.0.0
124 media-libs/alsa-lib )"
125
126 DEPEND="${RDEPEND}
127 virtual/pkgconfig
128 webm? ( amd64? ( ${ASM_DEPEND} )
129 x86? ( ${ASM_DEPEND} ) )"
130
131 if [[ ${PV} == *beta* ]] ; then
132 S="${WORKDIR}/comm-beta"
133 else
134 S="${WORKDIR}/comm-release"
135 fi
136
137 src_unpack() {
138 unpack ${A}
139
140 # Unpack language packs
141 mozlinguas_src_unpack
142 }
143
144 pkg_setup() {
145 if [[ ${PV} == *_pre* ]] ; then
146 ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
147 ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
148 ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
149 fi
150
151 moz_pkgsetup
152 }
153
154 src_prepare() {
155 # Apply our patches
156 EPATCH_SUFFIX="patch" \
157 EPATCH_FORCE="yes" \
158 epatch "${WORKDIR}/seamonkey"
159
160 # browser patches go here
161 pushd "${S}"/mozilla &>/dev/null || die
162 EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \
163 EPATCH_SUFFIX="patch" \
164 EPATCH_FORCE="yes" \
165 epatch "${WORKDIR}/firefox"
166 popd &>/dev/null || die
167
168 # Shell scripts sometimes contain DOS line endings; bug 391889
169 grep -rlZ --include="*.sh" $'\r$' . |
170 while read -r -d $'\0' file ; do
171 einfo edos2unix "${file}"
172 edos2unix "${file}" || die
173 done
174
175 # Allow user to apply any additional patches without modifing ebuild
176 epatch_user
177
178 if use crypt ; then
179 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
180 #cd "${S}"/mailnews/extensions/enigmail || die
181 #cd "${S}"
182 fi
183
184 #Ensure we disable javaxpcom by default to prevent configure breakage
185 sed -i -e s:MOZ_JAVAXPCOM\=1::g "${S}"/mozilla/xulrunner/confvars.sh \
186 || die "sed javaxpcom"
187
188 # Disable gnomevfs extension
189 sed -i -e "s:gnomevfs::" "${S}/"suite/confvars.sh \
190 || die "Failed to remove gnomevfs extension"
191
192 eautoreconf
193 cd "${S}"/mozilla
194 eautoconf
195 }
196
197 src_configure() {
198 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
199 MEXTENSIONS=""
200
201 ####################################
202 #
203 # mozconfig, CFLAGS and CXXFLAGS setup
204 #
205 ####################################
206
207 mozconfig_init
208 mozconfig_config
209
210 # It doesn't compile on alpha without this LDFLAGS
211 use alpha && append-ldflags "-Wl,--no-relax"
212
213 if use chatzilla ; then
214 MEXTENSIONS+=",irc"
215 else
216 MEXTENSIONS+=",-irc"
217 fi
218 if ! use roaming ; then
219 MEXTENSIONS+=",-sroaming"
220 fi
221
222 mozconfig_annotate '' --prefix="${EPREFIX}"/usr
223 mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
224 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
225 mozconfig_annotate '' --disable-gconf
226 mozconfig_annotate '' --enable-jsd
227 mozconfig_annotate '' --enable-canvas
228 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
229 mozconfig_annotate '' --enable-system-ffi
230 mozconfig_annotate '' --with-system-png
231 mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
232
233 mozconfig_use_enable system-sqlite
234 # Both methodjit and tracejit conflict with PaX
235 mozconfig_use_enable jit methodjit
236 mozconfig_use_enable jit tracejit
237
238 # Use an objdir to keep things organized.
239 echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \
240 >> "${S}"/.mozconfig
241
242 # Finalize and report settings
243 mozconfig_final
244
245 # Work around breakage in makeopts with --no-print-directory
246 MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
247
248 if [[ $(gcc-major-version) -lt 4 ]] ; then
249 append-cxxflags -fno-stack-protector
250 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then
251 if use amd64 || use x86 ; then
252 append-flags -mno-avx
253 fi
254 fi
255 }
256
257 src_compile() {
258 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
259 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
260 emake -f client.mk || die
261
262 # Only build enigmail extension if conditions are met.
263 if use crypt ; then
264 cd "${S}"/mailnews/extensions/enigmail || die
265 ./makemake -r 2&> /dev/null
266 cd "${S}"/seamonk/mailnews/extensions/enigmail
267 emake || die "make enigmail failed"
268 emake xpi || die "make enigmail xpi failed"
269 fi
270 }
271
272 src_install() {
273 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
274 declare emid
275 local obj_dir="seamonk"
276 cd "${S}/${obj_dir}"
277
278 # Copy our preference before omnijar is created.
279 sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
280 "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
281 || die
282
283 # Without methodjit and tracejit there's no conflict with PaX
284 if use jit ; then
285 # Pax mark xpcshell for hardened support, only used for startupcache creation.
286 pax-mark m "${S}"/dist/bin/xpcshell
287 fi
288
289 emake DESTDIR="${D}" install || die "emake install failed"
290 cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die
291
292 if use crypt ; then
293 cd "${T}" || die
294 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die
295 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
296
297 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
298 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
299 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die
300
301 cd "${S}" || die
302 fi
303
304 sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
305 -i "${T}"/${PN}.desktop || die
306 sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
307 || die
308
309 # Install language packs
310 mozlinguas_src_install
311
312 # Add StartupNotify=true bug 290401
313 if use startup-notification ; then
314 echo "StartupNotify=true" >> "${T}"/${PN}.desktop
315 fi
316
317 # Install icon and .desktop for menu entry
318 newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \
319 || die
320 domenu "${T}"/${PN}.desktop || die
321
322 # Without methodjit and tracejit there's no conflict with PaX
323 if use jit ; then
324 # Required in order to use plugins and even run firefox on hardened.
325 pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin}
326 fi
327
328 # Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash
329 # continue to work as expected.
330 pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container
331
332 # Handle plugins dir through nsplugins.eclass
333 share_plugins_dir
334
335 doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die
336 }
337
338 pkg_preinst() {
339 declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
340
341 if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
342 rm ${MOZILLA_FIVE_HOME}/plugins -rf
343 fi
344 }
345
346 pkg_postinst() {
347 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
348
349 # Update mimedb for the new .desktop file
350 fdo-mime_desktop_database_update
351
352 if use chatzilla ; then
353 elog "chatzilla is now an extension which can be en-/disabled and configured via"
354 elog "the Add-on manager."
355 fi
356 }