app-laptop/tp_smapi: new version 0.42.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 6 Aug 2016 03:01:07 +0000 (23:01 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 6 Aug 2016 03:07:29 +0000 (23:07 -0400)
This adds a new version 0.42, and updates the ebuild a bit.

First, the ebuild was updated to EAPI=6. Then the RESTRICT=userpriv
was removed, as it no longer seems to have any effect: I can install
the package fine with FEATURES=userpriv. Next, an obsolete kernel
version check was removed. Every version of every flavor of Linux
sources we have in the tree is already newer than 2.6.19. Finally,
einstalldocs (from EAPI=6) was used to install the current set of docs
as well as a TODO that had been omitted.

I have added myself as the maintainer of this package, since I still
have hardware that it supports.

Gentoo-Bug: 516570
Gentoo-Bug: 583206

Package-Manager: portage-2.2.28

app-laptop/tp_smapi/Manifest
app-laptop/tp_smapi/metadata.xml
app-laptop/tp_smapi/tp_smapi-0.42.ebuild [moved from app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild with 72% similarity]

index 425ca7eb52d3c5af7e714b77ba3df7facfbab594..d6d974e18464a24c2f77aa0371d1784c723a2966 100644 (file)
@@ -1 +1,2 @@
 DIST tp_smapi-0.41.tar.gz 38852 SHA256 6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666 SHA512 924a11cdf64bc151d069d4f61ca476cf006773291f363b21a80ce091f560a78c4828d2e522e646a5b133c58149a37cb5c2432a165e92e6980eb510b9488c728e WHIRLPOOL 10c74811148934a49b2d2b65cd65d366c58de03682c02d6b82694b4831634a25f2da9986b0493e28b372abf7ada692ee8ea85b2881b823b0cb7b35b73f348d6e
+DIST tp_smapi-0.42.tgz 39867 SHA256 7b8d9f488c3859805f1f292bf4d518cc5b32ebb69b0ebe96367d0852dd792d27 SHA512 1004b7ef961a9908c2144b26ea60b6dddabd83d60c11421a03e3b810f5b635415ef52656d6980915512d68f809f7bc3d662328f25d111537bd7e175d252cf83b WHIRLPOOL 7d03aaf2bb4de3aabbc38fba62f126e6f2976ea1964d85da2fffbbcd63bb4c3884a152851cae116438b859c13d59fd4e41be126683f660f9b8322d7fc40ddc28
index dc1f3c903006c038f1e673ef766e57862070abdd..2f944f633c2483c3f823d4957609dd27801e8dc0 100644 (file)
@@ -1,12 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <!-- maintainer-needed -->
+
+  <maintainer type="person">
+    <email>mjo@gentoo.org</email>
+    <name>Michael Orlitzky</name>
+  </maintainer>
+
   <use>
     <flag name="hdaps">Install a compatible HDAPS module</flag>
   </use>
+
   <upstream>
     <remote-id type="github">evgeni/tp_smapi</remote-id>
     <remote-id type="sourceforge">tpctl</remote-id>
   </upstream>
+
 </pkgmetadata>
similarity index 72%
rename from app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild
rename to app-laptop/tp_smapi/tp_smapi-0.42.ebuild
index e32c1f3b639b42e76470ee964f47b8de329174da..ed4b4a57df4dae398dfc1b7d7ebba8b08c49d952 100644 (file)
@@ -2,13 +2,13 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit flag-o-matic linux-mod
 
 DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
-HOMEPAGE="https://github.com/evgeni/tp_smapi/ http://tpctl.sourceforge.net/"
-SRC_URI="mirror://github/evgeni/${PN}/${P}.tar.gz"
+HOMEPAGE="https://github.com/evgeni/${PN}"
+SRC_URI="${HOMEPAGE}/releases/download/tp-smapi/${PV}/${P}.tgz"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -16,23 +16,14 @@ KEYWORDS="~amd64 ~x86"
 
 IUSE="hdaps"
 
-RESTRICT="userpriv"
-
-# We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING
-# in dmi.h
+# We need dmideode if the kernel does not support
+# DMI_DEV_TYPE_OEM_STRING in dmi.h.
 DEPEND="sys-apps/dmidecode"
 RDEPEND="${DEPEND}"
 
 pkg_pretend() {
        linux-mod_pkg_setup
 
-       if kernel_is lt 2 6 19; then
-               eerror
-               eerror "${P} requires Linux kernel 2.6.19 or above."
-               eerror
-               die "Unsupported kernel version"
-       fi
-
        MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
        BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR}"
        BUILD_TARGETS="default"
@@ -40,6 +31,7 @@ pkg_pretend() {
        if use hdaps; then
                CONFIG_CHECK="~INPUT_UINPUT"
                WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better"
+               # Why call this twice?
                linux-info_pkg_setup
 
                MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
@@ -69,7 +61,7 @@ src_compile() {
 
 src_install() {
        linux-mod_src_install
-       dodoc CHANGES README
-       newinitd "${FILESDIR}"/${PN}-0.40-initd smapi
-       newconfd "${FILESDIR}"/${PN}-0.40-confd smapi
+       einstalldocs
+       newinitd "${FILESDIR}/${PN}-0.40-initd" smapi
+       newconfd "${FILESDIR}/${PN}-0.40-confd" smapi
 }