summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2023-06-18 14:55:18 -0400
committerMichael Orlitzky <mjo@gentoo.org>2023-06-18 15:21:02 -0400
commit03936c131f500d58b0b65f333fa0df5421448459 (patch)
tree856814acaa2f14fbc8c653ad1bb3f011aa11bd4e /app-laptop/tp_smapi
parentpackage.mask: Last rites app-crypt/tpm-emulator (diff)
downloadgentoo-03936c131f500d58b0b65f333fa0df5421448459.tar.gz
gentoo-03936c131f500d58b0b65f333fa0df5421448459.tar.bz2
gentoo-03936c131f500d58b0b65f333fa0df5421448459.zip
app-laptop/tp_smapi: migrate to linux-mod-r1.eclass (new revision).
In addition: * Dropped the flag-o-matic eclass and the -msse,-mssse3 flag stripping. I think the underlying GCC behavior has changed since bug 492964 was filed. * No more sys-apps/dmidecode dependency. I don't see it in the source code anywhere. Closes: https://bugs.gentoo.org/908728 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'app-laptop/tp_smapi')
-rw-r--r--app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild b/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild
new file mode 100644
index 000000000000..bf08d020ede7
--- /dev/null
+++ b/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 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/evgeni/tp_smapi"
+SRC_URI="https://github.com/evgeni/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
+}