powercap-utils: new tool, initial ebuild

Signed-off-by: Rick Farina <zerochaos@gentoo.org>
This commit is contained in:
Rick Farina
2026-08-21 15:43:54 -04:00
parent 5f1fb8f02e
commit 8bfcef78d5
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST powercap-utils-0.6.0.gh.tar.gz 37481 BLAKE2B 8564edbeb02b811fd5a5ec0b5a0d3225f7c5c265c8f8e3973d64f5a4434d4580d79879b82686bf0c011a47deffb1e1ab9ce9c5451dcb9b5893386a36eea86e4f SHA512 806422f95e14a0290b4598c80045024e433389f6bed9729d7f8a00ca25396ddb1a923d182926c1efdee006cd50bae68b301fc6720c8e919bdacb0f213042fe8f

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Rick Farina</name>
</maintainer>
<upstream>
<remote-id type="github">powercap/powercap</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,17 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C bindings to the Linux Power Capping Framework in sysfs"
HOMEPAGE="https://github.com/powercap/powercap"
SRC_URI="https://github.com/powercap/powercap/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/powercap-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="virtual/pkgconfig"