aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/gtherm/Manifest1
-rw-r--r--sys-power/gtherm/gtherm-0.0.2.ebuild41
-rw-r--r--sys-power/gtherm/metadata.xml8
3 files changed, 50 insertions, 0 deletions
diff --git a/sys-power/gtherm/Manifest b/sys-power/gtherm/Manifest
new file mode 100644
index 000000000..2e0a68465
--- /dev/null
+++ b/sys-power/gtherm/Manifest
@@ -0,0 +1 @@
+DIST gtherm-0.0.2.tar.gz 39325 BLAKE2B 4ccf4d080de2c14014e4fac579b11a12e1007c7ed1aaf1d3e45f142e61f28a106d58c287315a3d0417552bab83e3ee8bce9a55cc344a1db0c6a0953a846f0ac7 SHA512 1241c19be3138dbe4e9d223236005a2eb7c1f3dbadd3bb3e083a273a0dd611acaf85e21df2c9d1f7ebe26afdefacfe0f7d2ba8960d18a3224a603b6e91e38a6b
diff --git a/sys-power/gtherm/gtherm-0.0.2.ebuild b/sys-power/gtherm/gtherm-0.0.2.ebuild
new file mode 100644
index 000000000..1602dc4a3
--- /dev/null
+++ b/sys-power/gtherm/gtherm-0.0.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+VALA_USE_DEPEND="vapigen"
+
+inherit meson systemd vala
+
+DESCRIPTION="A simple daemon to monitor thermal zones and cooling devices"
+HOMEPAGE="https://source.puri.sm/Librem5/gtherm"
+SRC_URI="https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+IUSE="+introspection +vala"
+REQUIRED_USE="vala? ( introspection )"
+
+DEPEND="
+ vala? ( $(vala_depend) )
+ dev-libs/gobject-introspection
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+ eapply_user
+ use vala && vala_src_prepare
+}
+
+src_install() {
+ meson_src_install
+ systemd_newuserunit "${S}"/debian/gthd.user.service "gthd.service"
+}
+
+pkg_postinst() {
+ systemd_reenable --global gthd
+}
diff --git a/sys-power/gtherm/metadata.xml b/sys-power/gtherm/metadata.xml
new file mode 100644
index 000000000..144c8091c
--- /dev/null
+++ b/sys-power/gtherm/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>marco@scardovi.com</email>
+ <name>Marco Scardovi</name>
+ </maintainer>
+</pkgmetadata>