commit:     536a7bbf359d966fedb078afb8e1c7bbc6b1c49d
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  3 15:50:01 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Aug  3 15:50:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=536a7bbf

app-laptop/tp_smapi: add 0.45

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 app-laptop/tp_smapi/Manifest             |  1 +
 app-laptop/tp_smapi/tp_smapi-0.45.ebuild | 46 ++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/app-laptop/tp_smapi/Manifest b/app-laptop/tp_smapi/Manifest
index 594225100e16..db088225ba46 100644
--- a/app-laptop/tp_smapi/Manifest
+++ b/app-laptop/tp_smapi/Manifest
@@ -1 +1,2 @@
 DIST tp_smapi-0.44.tgz 40724 BLAKE2B 
03b765bc5736f514cf2a315dcc6d14bbb7869b98da8c5e016be49bd47bc2d1ec4da7c0c5b5468356df6aa4083b2de4048a078b5498dc7aa0083e3fcfbb64aa41
 SHA512 
c6b6068941d43505d14dc155441287ba5576f0b1b09861e13853e5360f9b4483d709b823761d39c93bc0c860100d43cc485d2454d66a66ceaaf2d43b5b0c9dc9
+DIST tp_smapi-0.45.tgz 40001 BLAKE2B 
2fb2a2c6590e935bf35b46ec6c7a216e6769cb9a96d292f8696f2e85400d1ca892a831234e3a6f769902b278fcae630c0ed0db18ab538b43e9df826614e2234d
 SHA512 
b66e7652abae184d13d4ad4ccfd7dd6850a14219af094c2972a23bc6d0f968806e43b6e3610bfb80ae0071520c413bb08ff3aefff2f86ed86b6ae8ccce095fca

diff --git a/app-laptop/tp_smapi/tp_smapi-0.45.ebuild 
b/app-laptop/tp_smapi/tp_smapi-0.45.ebuild
new file mode 100644
index 000000000000..f7034a540f00
--- /dev/null
+++ b/app-laptop/tp_smapi/tp_smapi-0.45.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
+HOMEPAGE="https://github.com/linux-thinkpad/tp_smapi";
+SRC_URI="https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi/${PV}/${P}.tgz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="hdaps"
+
+pkg_setup() {
+       if use hdaps; then
+               local CONFIG_CHECK="~INPUT_UINPUT"
+               local WARNING_INPUT_UINPUT="Your kernel needs uinput for the 
hdaps module to perform better"
+               local CONFIG_CHECK="~!SENSORS_HDAPS"
+               local ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with 
in-kernel HDAPS (CONFIG_SENSORS_HDAPS)"
+       fi
+
+       linux-mod-r1_pkg_setup
+}
+
+src_compile() {
+       local modlist=( thinkpad_ec tp_smapi )
+       local modargs=( KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR} )
+
+       if use hdaps; then
+               modlist+=( hdaps )
+               modargs+=( HDAPS=1 )
+       fi
+
+       linux-mod-r1_src_compile
+}
+
+src_install() {
+       linux-mod-r1_src_install
+
+       newinitd "${FILESDIR}/${PN}-0.40-initd" smapi
+       newconfd "${FILESDIR}/${PN}-0.40-confd" smapi
+}

Reply via email to