diff options
author | Piotr Karbowski <slashbeast@gentoo.org> | 2021-07-15 23:23:07 +0200 |
---|---|---|
committer | Piotr Karbowski <slashbeast@gentoo.org> | 2021-07-15 23:23:22 +0200 |
commit | e5d282184d9560944b4b678bf6d296ac2fbb869d (patch) | |
tree | 2c35668629d7b1ecb6e0a35a570783b9bfc354b9 /app-admin/ryzen_monitor | |
parent | app-admin/ryzen_smu: new package. (diff) | |
download | gentoo-e5d282184d9560944b4b678bf6d296ac2fbb869d.tar.gz gentoo-e5d282184d9560944b4b678bf6d296ac2fbb869d.tar.bz2 gentoo-e5d282184d9560944b4b678bf6d296ac2fbb869d.zip |
app-admin/ryzen_monitor: new package
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'app-admin/ryzen_monitor')
-rw-r--r-- | app-admin/ryzen_monitor/Manifest | 1 | ||||
-rw-r--r-- | app-admin/ryzen_monitor/files/CFLAGS_override_fix.patch | 13 | ||||
-rw-r--r-- | app-admin/ryzen_monitor/metadata.xml | 8 | ||||
-rw-r--r-- | app-admin/ryzen_monitor/ryzen_monitor-1.0.4.ebuild | 31 |
4 files changed, 53 insertions, 0 deletions
diff --git a/app-admin/ryzen_monitor/Manifest b/app-admin/ryzen_monitor/Manifest new file mode 100644 index 000000000000..f2f8a5821e58 --- /dev/null +++ b/app-admin/ryzen_monitor/Manifest @@ -0,0 +1 @@ +DIST ryzen_monitor-1.0.4.tar.gz 33716 BLAKE2B f755cc946b26ea5566c1bd304f84e3a3aee80383d151ec8e702919837d04287d4b3b4000b4f9587003cb20b2be45d4af727eb941c0080772b5f94104d68f8b78 SHA512 93cb55b64db75596da88d8f1f3c5eab38cce52d7ae9bb8b7895d62d39ec0b4c0157bad3ed688c32cc0aecf09eb211614b81159a31c704a0f028751ded46723c5 diff --git a/app-admin/ryzen_monitor/files/CFLAGS_override_fix.patch b/app-admin/ryzen_monitor/files/CFLAGS_override_fix.patch new file mode 100644 index 000000000000..efe7fc5e45ff --- /dev/null +++ b/app-admin/ryzen_monitor/files/CFLAGS_override_fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/Makefile b/src/Makefile +index 5142282..4c0dbb8 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -3,7 +3,7 @@ STRIP = strip + + CFLAGS = -O3 -mtune=native -march=native +-CFLAGS += -Ilib ++override CFLAGS += -Ilib + LDFLAGS = -lm + + SFLAGS = --strip-all + diff --git a/app-admin/ryzen_monitor/metadata.xml b/app-admin/ryzen_monitor/metadata.xml new file mode 100644 index 000000000000..8072ef2372e4 --- /dev/null +++ b/app-admin/ryzen_monitor/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slashbeast@gentoo.org</email> + <name>Piotr Karbowski</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/ryzen_monitor/ryzen_monitor-1.0.4.ebuild b/app-admin/ryzen_monitor/ryzen_monitor-1.0.4.ebuild new file mode 100644 index 000000000000..9ac20aa45272 --- /dev/null +++ b/app-admin/ryzen_monitor/ryzen_monitor-1.0.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +SRC_URI="https://github.com/hattedsquirrel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Monitor power information of Ryzen processors via the PM table of the SMU " +HOMEPAGE="https://github.com/hattedsquirrel/ryzen_monitor" + +SLOT="0" +LICENSE="AGPL-3" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/ryzen_smu" + +PATCHES=( + "${FILESDIR}"/CFLAGS_override_fix.patch +) + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin src/ryzen_monitor +} |