Hardwire pdftk to use gcc-5.4.0, and depend on it
Bug: https://bugs.gentoo.org/562568
Package-Manager: Portage-2.3.16, Repoman-2.3.6
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
SLOT="0"
KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux"
-DEPEND="sys-devel/gcc[gcj]"
-RDEPEND="${DEPEND}"
+RDEPEND="sys-devel/gcc:5.4.0[gcj]"
+DEPEND="${RDEPEND}
+ sys-devel/gcc-config
+"
S="${WORKDIR}/${P}-dist/${PN}"
unset CLASSPATH
unset JAVA_HOME
+ # We need gcc-5 because of Java
+ export PATH="$(gcc-config -B 5.4.0):${PATH}"
+
# Parallel make fails; confirmed, still not fixed in version 2.02.
emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed."
}