sys-cluster/fake: Bump to EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Sun, 10 Nov 2019 10:24:05 +0000 (11:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 10 Nov 2019 11:24:35 +0000 (12:24 +0100)
Closes: https://bugs.gentoo.org/697176
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-cluster/fake/fake-1.1.10.ebuild

index 8d3037b8fbfff96a0189d4e975658106d23d34a4..3f960e577b008e4e0aa6a66030532103c7e2ccb5 100644 (file)
@@ -1,38 +1,31 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils
-
-DESCRIPTION="Fake has been designed to switch in backup servers on a LAN"
+DESCRIPTION="Switch in backup servers on a LAN"
 SRC_URI="http://www.vergenet.net/linux/${PN}/download/${PV}/${P}.tar.gz"
 HOMEPAGE="http://www.vergenet.net/linux/fake/"
 
 SLOT="0"
 KEYWORDS="~amd64 x86"
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
 IUSE=""
 
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_unpack(){
-       unpack ${A}
-       cd "${S}"
-       epatch "${FILESDIR}/fix-ldflags.patch"
-}
+PATCHES=(
+       "${FILESDIR}/fix-ldflags.patch"
+)
 
-src_compile(){
-       make patch || die "patching failed"
-       emake || die "make failed"
+src_prepare() {
+       default
+       emake patch
 }
 
 src_install(){
        emake \
-               ROOT_DIR="${D}" \
-               MAN8_DIR="${D}/usr/share/man/man8" \
-               DOC_DIR="${D}/usr/share/doc/${P}" \
-               install || die "install failed"
+               ROOT_DIR="${ED}" \
+               MAN8_DIR="${ED}/usr/share/man/man8" \
+               DOC_DIR="${ED}/usr/share/doc/${PF}" \
+               install
        dodoc AUTHORS ChangeLog README docs/*
 }