mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
sys-power/intel-undervolt: drop old
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST intel-undervolt-1.6.tar.gz 22465 BLAKE2B 947f3e3f94316a9988fc0311faa23b07e8e0a99afb737232e6e581f45cca89124a49e47bbc85eb0e836b7fc7f966869910fe4d42581e47d98d8c036390c3dec2 SHA512 1c1de1083654085d6711aad28d2815f2aa05d08b7fddbee425b59ab8109dc1e635c2a9bdda8ba0221420e9e00fcd61013bd4a4633d05ede87808c49898772db3
|
||||
DIST intel-undervolt-1.7.tar.gz 31481 BLAKE2B 0daade381b492184616356f097de32d14c76d6ab3f7dd59240fb25f92ee1b9aebb16cbef8b6836e16e361a9560b000655470140c31b5822fed7bd90e0b9d9bf2 SHA512 727eddd47a92f6092e89f9326c6b453785fac6155f2c2c50887f9a90704226e6abaf27b4a91cabd4783c4477371699a92186fe7847ac9218da9c26fb295a5304
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Intel CPU undervolting and throttling configuration tool"
|
||||
HOMEPAGE="https://github.com/kitsunyan/intel-undervolt"
|
||||
|
||||
if [ ${PV} == "9999" ] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/kitsunyan/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/kitsunyan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="-* ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
BDEPEND=""
|
||||
|
||||
CONFIG_CHECK="~INTEL_RAPL ~X86_MSR"
|
||||
|
||||
src_prepare() {
|
||||
# respect CC, CFLAGS and avoid calling pkg-config
|
||||
sed -i \
|
||||
-e 's/^CC=/CC?=/' \
|
||||
-e 's/^CFLAGS=/CFLAGS?=/' \
|
||||
-e '/^UNITDIR=/d' \
|
||||
Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
tc-export CC
|
||||
|
||||
myemakeargs=(
|
||||
BINDIR="${EPREFIX}"/usr/bin
|
||||
SYSCONFDIR="${EPREFIX}"/etc
|
||||
UNITDIR="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
myemakeargs+=(
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
newinitd "${FILESDIR}"/initd "${PN}"
|
||||
newconfd "${FILESDIR}"/confd "${PN}"
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user