2012-12-16 21:01:03 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
EAPI="3"
|
|
|
|
|
|
|
|
inherit eutils 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"
|
|
|
|
SRC_URI="http://members.jcom.home.ne.jp/jacobi/linux/files/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-12-16 21:01:03 +04:00
|
|
|
KEYWORDS="-* x86"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="sys-apps/pciutils"
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
tc-export CC
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-0.3.11-build.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake install DESTDIR="${D}" || die
|
|
|
|
doinitd "${FILESDIR}"/athcool
|
|
|
|
dodoc README ChangeLog
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
ewarn "WARNING: Depending on your motherboard and/or hardware components,"
|
|
|
|
ewarn "enabling powersaving mode may cause:"
|
|
|
|
ewarn " * noisy or distorted sound playback"
|
|
|
|
ewarn " * a slowdown in harddisk performance"
|
|
|
|
ewarn " * system locks or unpredictable behavior"
|
|
|
|
ewarn " * file system corruption"
|
|
|
|
ewarn "If you met those problems, you should not use athcool. Please use"
|
|
|
|
ewarn "athcool AT YOUR OWN RISK!"
|
|
|
|
}
|