net-misc/netkit-bootpd: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:44 +0000 (19:37 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:44 +0000 (19:37 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-misc/netkit-bootpd/metadata.xml
net-misc/netkit-bootpd/netkit-bootpd-2.4-r1.ebuild

index a535b885282995f1c24e0f2a2295643a3d99c0f5..3c3d5ced64123d26217cc02d47f99984bb386ff3 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="person">
-<email>xmw@gentoo.org</email>
-<name>Michael Weber</name>
-</maintainer>
+       <maintainer type="person">
+               <email>xmw@gentoo.org</email>
+               <name>Michael Weber</name>
+       </maintainer>
 </pkgmetadata>
index 7ae6c8941158c6be9b18004f6363e2b6f3191260..cb70f0e56efd4a90b449dc9e3ea1e87d53ed7ae6 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=3
-inherit eutils toolchain-funcs
+EAPI=6
+
+inherit toolchain-funcs
 
 MY_P=${P/netkit-}
 
@@ -17,20 +18,22 @@ IUSE=""
 
 S=${WORKDIR}/${MY_P}
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}.patch
+PATCHES=( "${FILESDIR}"/${P}.patch )
+
+src_configure() {
+       tc-export CC
 }
 
 src_compile() {
-       tc-export CC
-       emake linux || die
+       emake linux
 }
 
 src_install() {
-       dosbin bootp{d,ef,gw,test} || die
+       dosbin bootp{d,ef,gw,test}
 
+       local x
        for x in d ef gw test; do
-               dosym bootp${x} /usr/sbin/in.bootp${x} || die
+               dosym bootp${x} /usr/sbin/in.bootp${x}
        done
 
        doman *.5 *.8