sys-apps/isapnptools: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 20:55:58 +0000 (21:55 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 21:15:50 +0000 (22:15 +0100)
Closes: https://bugs.gentoo.org/622768
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/isapnptools/files/isapnptools-1.27-include.patch
sys-apps/isapnptools/isapnptools-1.27.ebuild

index a736ccc1eb9db0ce2c05032f939a8eebf39643c1..016490eba449f2ae82fcad5ee17c767da7cbcb9e 100644 (file)
@@ -1,5 +1,5 @@
---- src/callbacks.c.org        2001-05-15 22:37:04.000000000 +0200
-+++ src/callbacks.c    2011-06-15 05:21:32.292819557 +0200
+--- a/src/callbacks.c
++++ b/src/callbacks.c
 @@ -51,6 +51,7 @@
  #include <stdio.h>
  #include <errno.h>
index 47812b883bf9d74ecb34963d44c08426b9ce13ee..c950924053327c61a1ee93941ffa4bdbfd4b4d48 100644 (file)
@@ -1,9 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
-
-inherit eutils
+EAPI=6
 
 DESCRIPTION="Tools for configuring ISA PnP devices"
 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
@@ -14,18 +12,16 @@ SLOT="0"
 KEYWORDS="-* amd64 x86"
 IUSE=""
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-include.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-include.patch )
 
 src_install() {
-       emake DESTDIR="${D}" install || die
+       default
+
        dodir /sbin
-       mv "${D}"/usr/sbin/isapnp "${D}"/sbin/ || die
+       mv "${ED%/}"/{usr/sbin/isapnp,sbin/} || die
 
-       dodoc AUTHORS ChangeLog README NEWS
        docinto txt
-       dodoc doc/README*  doc/*.txt test/*.txt
+       dodoc doc/{README*,*.txt} test/*.txt
        dodoc etc/isapnp.*
 
        newinitd "${FILESDIR}"/isapnp.rc isapnp