sys-power/athcool: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 21:52:44 +0000 (22:52 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 22:10:30 +0000 (23:10 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-power/athcool/athcool-0.3.12.ebuild
sys-power/athcool/files/athcool-0.3.11-build.patch

index b9ed256166596ba2bc1f4e17c069955935117091..bd826f25b0f59320fd36972ad86ba2f73961a388 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
+EAPI=6
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="small utility to toggle Powersaving mode for AMD Athlon/Duron processors"
 HOMEPAGE="http://members.jcom.home.ne.jp/jacobi/linux/softwares.html#athcool"
@@ -17,18 +17,15 @@ IUSE=""
 DEPEND="sys-apps/pciutils"
 RDEPEND=""
 
-pkg_setup() {
-       tc-export CC
-}
+PATCHES=( "${FILESDIR}"/${PN}-0.3.11-build.patch )
 
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-0.3.11-build.patch
+src_configure() {
+       tc-export CC
 }
 
 src_install() {
-       emake install DESTDIR="${D}" || die
+       default
        doinitd "${FILESDIR}"/athcool
-       dodoc README ChangeLog
 }
 
 pkg_postinst() {
index 8b8e619dd71f4cd0c08e9c0f427d44c65acfccc4..bcf3a3054142971fa2f5b9831011bf77629d1784 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -14,13 +14,13 @@
  SRCS = athcool.c scanpci.c
  OBJS = $(SRCS:.c=.o)