-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="NPL-1.1"
SLOT="52"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 s390 x86"
IUSE="debug minimal +system-icu test"
-RESTRICT="ia64? ( test )"
+RESTRICT="!test? ( test ) ia64? ( test )"
S="${WORKDIR}/${MY_P%.rc*}"
BUILDDIR="${S}/jsobj"
system-icu? ( >=dev-libs/icu-58.1:= )"
DEPEND="${RDEPEND}"
-pkg_setup(){
+pkg_setup() {
[[ ${MERGE_TYPE} == "binary" ]] || \
moz_pkgsetup
eapply "${WORKDIR}/${PN}"
eapply "${FILESDIR}"/moz38-dont-hardcode-libc-soname.patch
eapply "${FILESDIR}"/${PN}-52.0-fix-alpha-bitness.patch
+ eapply "${FILESDIR}"/${PN}-52.0-gcc9-overflow.patch
eapply_user
--with-system-nspr \
--disable-optimize \
--with-intl-api \
+ --disable-gold \
$(use_with system-icu) \
$(use_enable debug) \
$(use_enable test tests) \