x11-plugins/gkrellaclock: Eclass update
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 22:34:33 +0000 (23:34 +0100)
committerDavid Seifert <soap@gentoo.org>
Thu, 4 Jan 2018 09:15:54 +0000 (10:15 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

x11-plugins/gkrellaclock/gkrellaclock-0.3.4-r1.ebuild

index baff467ed08a44d736d8e0c4c1e58d7099ed6340..ecd130b2b603923a39e471d0ace89e3e75426e85 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,16 +14,20 @@ SLOT="2"
 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)"
 }