commit:     cfc24e46362cf214c8c8c1c4ba10db96e0e498ab
Author:     Michal Vu <saigon-tech <AT> tuta <DOT> io>
AuthorDate: Tue Aug 27 17:00:16 2024 +0000
Commit:     Michal Vu <saigon-tech <AT> tuta <DOT> io>
CommitDate: Tue Aug 27 17:00:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cfc24e46

sys-power/system76-power: new package, add 9999

Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io>

 sys-power/system76-power/metadata.xml              | 15 ++++++++++++
 .../system76-power/system76-power-9999.ebuild      | 28 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/sys-power/system76-power/metadata.xml 
b/sys-power/system76-power/metadata.xml
new file mode 100644
index 000000000..e33b70a42
--- /dev/null
+++ b/sys-power/system76-power/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>saigon-t...@tuta.io</email>
+               <name>Michal Vu</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">pop-os/system76-power</remote-id>
+       </upstream>
+       <longdescription lang="en">
+        Power manager developed by System76 for systemd Linux distributions. 
This power manager allows for switching
+        between battery, balanced and performance mode and handles power 
consumption on dual-GPU laptops.
+       </longdescription>
+</pkgmetadata>

diff --git a/sys-power/system76-power/system76-power-9999.ebuild 
b/sys-power/system76-power/system76-power-9999.ebuild
new file mode 100644
index 000000000..60054d3ee
--- /dev/null
+++ b/sys-power/system76-power/system76-power-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cargo git-r3
+
+DESCRIPTION="System76 Power Management Tool for systemd"
+HOMEPAGE="https://github.com/pop-os/system76-power";
+EGIT_REPO_URI="https://github.com/pop-os/system76-power";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+DEPEND="sys-apps/systemd"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/rust"
+
+src_unpack(){
+       git-r3_src_unpack
+       cargo_live_src_unpack
+}
+
+src_install(){
+       default
+       elog "Enable the service: 'systemctl enable --now 
com.system76.PowerDaemon.service'"
+}

Reply via email to