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