From d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 29 Jan 2021 18:03:51 +0000 Subject: gentoo resync : 29.01.2021 --- www-client/seamonkey/seamonkey-2.53.6.ebuild | 43 ++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'www-client/seamonkey/seamonkey-2.53.6.ebuild') diff --git a/www-client/seamonkey/seamonkey-2.53.6.ebuild b/www-client/seamonkey/seamonkey-2.53.6.ebuild index f2fc86ef1b5a..ba28bfdffecd 100644 --- a/www-client/seamonkey/seamonkey-2.53.6.ebuild +++ b/www-client/seamonkey/seamonkey-2.53.6.ebuild @@ -39,12 +39,12 @@ PATCH="${PN}-2.53.6_beta1-patches-01" DESCRIPTION="Seamonkey Web Browser" HOMEPAGE="http://www.seamonkey-project.org" -KEYWORDS="~amd64 ~ppc64 ~x86" +KEYWORDS="amd64 ~ppc64 x86" SLOT="0" LICENSE="MPL-2.0 GPL-2 LGPL-2.1" SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,sqlite} ) -IUSE="+chatzilla +crypt dbus debug +gmp-autoupdate +ipc jack minimal +IUSE="+chatzilla +crypt dbus debug +gmp-autoupdate +ipc jack lto minimal neon pulseaudio +roaming selinux startup-notification ${SYSTEM_IUSE[@]} test wifi" RESTRICT="!test? ( test )" @@ -68,12 +68,13 @@ DEPEND=" amd64? ( ${ASM_DEPEND} ) + lto? ( sys-devel/binutils[gold] ) x86? ( ${ASM_DEPEND} ) " -CDEPEND=" +COMMON_DEPEND=" >=app-text/hunspell-1.5.4:= dev-libs/atk >=dev-libs/glib-2.26:2 @@ -134,10 +135,10 @@ CDEPEND=" ) " RDEPEND=" - ${CDEPEND} + ${COMMON_DEPEND} selinux? ( sec-policy/selinux-mozilla ) " -DEPEND+="${CDEPEND} +DEPEND+="${COMMON_DEPEND} amd64? ( virtual/opengl ) x86? ( virtual/opengl ) " @@ -162,7 +163,17 @@ pkg_setup() { pkg_pretend() { # Ensure we have enough disk space to compile - if use debug || use test ; then + if use debug || use lto || use test ; then + CHECKREQS_DISK_BUILD="16G" + else + CHECKREQS_DISK_BUILD="12G" + fi + check-reqs_pkg_setup +} + +spkg_setup() { + # Ensure we have enough disk space to compile + if use debug || use lto || use test ; then CHECKREQS_DISK_BUILD="16G" else CHECKREQS_DISK_BUILD="12G" @@ -236,11 +247,11 @@ src_configure() { # get your own set of keys. _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc - #################################### + ###################################### # # mozconfig, CFLAGS and CXXFLAGS setup # - #################################### + ###################################### mozconfig_init @@ -351,6 +362,22 @@ src_configure() { media/libvpx/moz.build || die fi fi + + if use lto ; then + # Linking only works when using ld.gold when LTO is enabled + mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_annotate '+lto' --enable-lto=full + else + if tc-ld-is-gold ; then + mozconfig_annotate "linker is set to gold" --enable-linker=gold + else + mozconfig_annotate "linker is set to bfd" --enable-linker=bfd + fi + fi + # LTO flag was handled via configure + filter-flags '-flto*' + ################################## # Former mozconfig_config() end # ################################## -- cgit v1.2.3