-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
KEYWORDS="alpha amd64 ppc sparc x86"
IUSE=""
-RDEPEND="app-admin/gkrellm[X]"
+RDEPEND="app-admin/gkrellm:2[X]"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/${PN}-makefile.patch" )
-
S="${WORKDIR}/${P/a/A}"
+PATCHES=( "${FILESDIR}"/${PN}-makefile.patch )
+
+src_prepare() {
+ default
-src_compile() {
# The tarball contains a pre-compiled x86 object that needs to be
# removed if we're going to build it properly. See bug 166133.
rm -f gkrellaclock.o || die 'failed to remove gkrellaclock.o'
+}
+
+src_compile() {
emake CC="$(tc-getCC)"
}