-# 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"
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() {