1 |
polynomial-c 15/02/07 23:52:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.32.1.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
9 |
|
10 |
Revision Changes Path |
11 |
1.509 www-client/seamonkey/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.509&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.509&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.508&r2=1.509 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
20 |
retrieving revision 1.508 |
21 |
retrieving revision 1.509 |
22 |
diff -u -r1.508 -r1.509 |
23 |
--- ChangeLog 7 Feb 2015 16:44:09 -0000 1.508 |
24 |
+++ ChangeLog 7 Feb 2015 23:52:04 -0000 1.509 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/seamonkey |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.508 2015/02/07 16:44:09 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.509 2015/02/07 23:52:04 polynomial-c Exp $ |
30 |
+ |
31 |
+*seamonkey-2.32.1 (07 Feb 2015) |
32 |
+ |
33 |
+ 07 Feb 2015; Lars Wendler <polynomial-c@g.o> +seamonkey-2.32.1.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
07 Feb 2015; Agostino Sarubbo <ago@g.o> seamonkey-2.32.ebuild: |
37 |
Stable for x86/amd64, wrt bug #539242 |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/seamonkey/seamonkey-2.32.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.32.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.32.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: seamonkey-2.32.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2015 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.32.1.ebuild,v 1.1 2015/02/07 23:52:04 polynomial-c Exp $ |
51 |
|
52 |
EAPI=5 |
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 |
57 |
pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
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="${P}" |
64 |
MY_MOZ_P="${PN}-${MOZ_PV}" |
65 |
|
66 |
if [[ ${PV} == *_pre* ]] ; then |
67 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
68 |
MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
69 |
# And the langpack stuff stays at eclass defaults |
70 |
else |
71 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
72 |
MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
73 |
MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
74 |
fi |
75 |
|
76 |
MOZCONFIG_OPTIONAL_WIFI=1 |
77 |
MOZCONFIG_OPTIONAL_JIT="enabled" |
78 |
inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v5.34 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
79 |
|
80 |
PATCHFF="firefox-35.0-patches-0.1" |
81 |
PATCH="${PN}-2.32-patches-01" |
82 |
EMVER="1.7.2" |
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-2.0 GPL-2 LGPL-2.1" |
99 |
IUSE="+chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test" |
100 |
|
101 |
SRC_URI="${SRC_URI} |
102 |
${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
103 |
http://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz |
104 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
105 |
crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )" |
106 |
|
107 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
108 |
|
109 |
RDEPEND=">=dev-libs/nss-3.17.2 |
110 |
>=dev-libs/nspr-4.10.7 |
111 |
crypt? ( || ( |
112 |
( >=app-crypt/gnupg-2.0 |
113 |
|| ( |
114 |
app-crypt/pinentry[gtk] |
115 |
app-crypt/pinentry[qt4] |
116 |
) |
117 |
) |
118 |
=app-crypt/gnupg-1.4* ) ) |
119 |
system-sqlite? ( >=dev-db/sqlite-3.8.5:3[secure-delete,debug=] )" |
120 |
|
121 |
DEPEND="${RDEPEND} |
122 |
!elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
123 |
crypt? ( dev-lang/perl ) |
124 |
amd64? ( ${ASM_DEPEND} |
125 |
virtual/opengl ) |
126 |
x86? ( ${ASM_DEPEND} |
127 |
virtual/opengl )" |
128 |
|
129 |
if [[ ${PV} == *beta* ]] ; then |
130 |
S="${WORKDIR}/comm-beta" |
131 |
else |
132 |
S="${WORKDIR}/comm-release" |
133 |
fi |
134 |
|
135 |
BUILD_OBJ_DIR="${S}/seamonk" |
136 |
|
137 |
pkg_setup() { |
138 |
if [[ ${PV} == *_pre* ]] ; then |
139 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
140 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
141 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
142 |
fi |
143 |
|
144 |
moz_pkgsetup |
145 |
} |
146 |
|
147 |
pkg_pretend() { |
148 |
# Ensure we have enough disk space to compile |
149 |
if use debug || use test ; then |
150 |
CHECKREQS_DISK_BUILD="8G" |
151 |
else |
152 |
CHECKREQS_DISK_BUILD="4G" |
153 |
fi |
154 |
check-reqs_pkg_setup |
155 |
} |
156 |
|
157 |
src_unpack() { |
158 |
unpack ${A} |
159 |
|
160 |
# Unpack language packs |
161 |
mozlinguas_src_unpack |
162 |
} |
163 |
|
164 |
src_prepare() { |
165 |
# Apply our patches |
166 |
EPATCH_SUFFIX="patch" \ |
167 |
EPATCH_FORCE="yes" \ |
168 |
epatch "${WORKDIR}/seamonkey" |
169 |
|
170 |
epatch "${FILESDIR}"/${PN}-2.30-jemalloc-configure.patch |
171 |
|
172 |
# browser patches go here |
173 |
pushd "${S}"/mozilla &>/dev/null || die |
174 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
175 |
8002_jemalloc_configure_unbashify.patch" \ |
176 |
EPATCH_SUFFIX="patch" \ |
177 |
EPATCH_FORCE="yes" \ |
178 |
epatch "${WORKDIR}/firefox" |
179 |
popd &>/dev/null || die |
180 |
# drop -Wl,--build-id from LDFLAGS, bug #465466 |
181 |
|
182 |
# Shell scripts sometimes contain DOS line endings; bug 391889 |
183 |
grep -rlZ --include="*.sh" $'\r$' . | |
184 |
while read -r -d $'\0' file ; do |
185 |
einfo edos2unix "${file}" |
186 |
edos2unix "${file}" |
187 |
done |
188 |
|
189 |
# Allow user to apply any additional patches without modifing ebuild |
190 |
epatch_user |
191 |
|
192 |
local ms="${S}/mozilla" |
193 |
|
194 |
# Enable gnomebreakpad |
195 |
if use debug ; then |
196 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
197 |
"${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
198 |
fi |
199 |
|
200 |
# Ensure that are plugins dir is enabled as default |
201 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
202 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
203 |
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
204 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
205 |
|
206 |
# Don't exit with error when some libs are missing which we have in |
207 |
# system. |
208 |
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
209 |
-i "${S}"/suite/installer/Makefile.in || die |
210 |
# Don't error out when there's no files to be removed: |
211 |
sed 's@\(xargs rm\)$@\1 -f@' \ |
212 |
-i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
213 |
|
214 |
eautoreconf |
215 |
cd "${S}"/mozilla || die |
216 |
eautoconf |
217 |
cd "${S}"/mozilla/js/src || die |
218 |
eautoconf |
219 |
cd "${S}"/mozilla/memory/jemalloc/src || die |
220 |
WANT_AUTOCONF= eautoconf |
221 |
} |
222 |
|
223 |
src_configure() { |
224 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
225 |
MEXTENSIONS="default" |
226 |
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
227 |
# Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
228 |
# get your own set of keys. |
229 |
_google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
230 |
|
231 |
#################################### |
232 |
# |
233 |
# mozconfig, CFLAGS and CXXFLAGS setup |
234 |
# |
235 |
#################################### |
236 |
|
237 |
mozconfig_init |
238 |
mozconfig_config |
239 |
|
240 |
# It doesn't compile on alpha without this LDFLAGS |
241 |
use alpha && append-ldflags "-Wl,--no-relax" |
242 |
|
243 |
if use chatzilla ; then |
244 |
MEXTENSIONS+=",irc" |
245 |
else |
246 |
MEXTENSIONS+=",-irc" |
247 |
fi |
248 |
if ! use roaming ; then |
249 |
MEXTENSIONS+=",-sroaming" |
250 |
fi |
251 |
|
252 |
# Setup api key for location services |
253 |
echo -n "${_google_api_key}" > "${S}"/google-api-key |
254 |
mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
255 |
|
256 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
257 |
mozconfig_annotate '' --enable-jsd |
258 |
mozconfig_annotate '' --enable-canvas |
259 |
|
260 |
# Other sm-specific settings |
261 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
262 |
|
263 |
mozconfig_annotate '' --enable-safe-browsing |
264 |
|
265 |
# Use an objdir to keep things organized. |
266 |
echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \ |
267 |
>> "${S}"/.mozconfig |
268 |
|
269 |
# Finalize and report settings |
270 |
mozconfig_final |
271 |
|
272 |
if use crypt ; then |
273 |
pushd "${WORKDIR}"/enigmail &>/dev/null || die |
274 |
econf |
275 |
popd &>/dev/null || die |
276 |
fi |
277 |
|
278 |
# Work around breakage in makeopts with --no-print-directory |
279 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
280 |
|
281 |
if [[ $(gcc-major-version) -lt 4 ]] ; then |
282 |
append-cxxflags -fno-stack-protector |
283 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
284 |
if use amd64 || use x86 ; then |
285 |
append-flags -mno-avx |
286 |
fi |
287 |
fi |
288 |
|
289 |
emake V=1 -f client.mk configure |
290 |
} |
291 |
|
292 |
src_compile() { |
293 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
294 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
295 |
emake V=1 -f client.mk |
296 |
|
297 |
# Only build enigmail extension if conditions are met. |
298 |
if use crypt ; then |
299 |
einfo "Building enigmail" |
300 |
pushd "${WORKDIR}"/enigmail &>/dev/null || die |
301 |
emake -j1 |
302 |
emake xpi |
303 |
popd &>/dev/null || die |
304 |
fi |
305 |
} |
306 |
|
307 |
src_install() { |
308 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
309 |
DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
310 |
|
311 |
local emid |
312 |
cd "${BUILD_OBJ_DIR}" || die |
313 |
|
314 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
315 |
pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell" |
316 |
|
317 |
# Copy our preference before omnijar is created. |
318 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
319 |
"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
320 |
|| die |
321 |
|
322 |
# Set default path to search for dictionaries. |
323 |
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
324 |
>> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
325 |
|| die |
326 |
|
327 |
echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
328 |
"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
329 |
|| die |
330 |
|
331 |
local plugin |
332 |
if ! use gmp-autoupdate ; then |
333 |
for plugin in gmp-gmpopenh264 ; do |
334 |
echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
335 |
"${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
336 |
|| dir |
337 |
done |
338 |
fi |
339 |
|
340 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
341 |
emake DESTDIR="${D}" install |
342 |
cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
343 |
|
344 |
if use crypt ; then |
345 |
local em_dir="${WORKDIR}/enigmail/build" |
346 |
pushd "${T}" &>/dev/null || die |
347 |
unzip "${em_dir}"/enigmail*.xpi install.rdf || die |
348 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
349 |
#' |
350 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
351 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
352 |
unzip "${em_dir}"/enigmail*.xpi || die |
353 |
|
354 |
popd &>/dev/null || die |
355 |
fi |
356 |
|
357 |
sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
358 |
-i "${T}"/${PN}.desktop || die |
359 |
sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
360 |
|| die |
361 |
|
362 |
# Install language packs |
363 |
mozlinguas_src_install |
364 |
|
365 |
# Add StartupNotify=true bug 290401 |
366 |
if use startup-notification ; then |
367 |
echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
368 |
fi |
369 |
|
370 |
# Install icon and .desktop for menu entry |
371 |
newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
372 |
domenu "${T}"/${PN}.desktop |
373 |
|
374 |
# Required in order to use plugins and even run seamonkey on hardened. |
375 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
376 |
|
377 |
if use minimal ; then |
378 |
rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
379 |
fi |
380 |
|
381 |
# Handle plugins dir through nsplugins.eclass |
382 |
share_plugins_dir |
383 |
|
384 |
#doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1" |
385 |
|
386 |
# revdep-rebuild entry |
387 |
insinto /etc/revdep-rebuild |
388 |
echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
389 |
doins "${T}"/11${PN} |
390 |
} |
391 |
|
392 |
pkg_preinst() { |
393 |
MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
394 |
|
395 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
396 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
397 |
fi |
398 |
} |
399 |
|
400 |
pkg_postinst() { |
401 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
402 |
|
403 |
# Update mimedb for the new .desktop file |
404 |
fdo-mime_desktop_database_update |
405 |
|
406 |
if use chatzilla ; then |
407 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
408 |
elog "the Add-on manager." |
409 |
fi |
410 |
} |