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