Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/
Date: Sat, 06 Aug 2016 03:08:04
Message-Id: 1470452849.79e2115d8a44bbec89f09f7b328313ee3dc86a16.mjo@gentoo
1 commit: 79e2115d8a44bbec89f09f7b328313ee3dc86a16
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 6 03:01:07 2016 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 6 03:07:29 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79e2115d
7
8 app-laptop/tp_smapi: new version 0.42.
9
10 This adds a new version 0.42, and updates the ebuild a bit.
11
12 First, the ebuild was updated to EAPI=6. Then the RESTRICT=userpriv
13 was removed, as it no longer seems to have any effect: I can install
14 the package fine with FEATURES=userpriv. Next, an obsolete kernel
15 version check was removed. Every version of every flavor of Linux
16 sources we have in the tree is already newer than 2.6.19. Finally,
17 einstalldocs (from EAPI=6) was used to install the current set of docs
18 as well as a TODO that had been omitted.
19
20 I have added myself as the maintainer of this package, since I still
21 have hardware that it supports.
22
23 Gentoo-Bug: 516570
24 Gentoo-Bug: 583206
25
26 Package-Manager: portage-2.2.28
27
28 app-laptop/tp_smapi/Manifest | 1 +
29 app-laptop/tp_smapi/metadata.xml | 9 +++++++-
30 ...p_smapi-0.41-r2.ebuild => tp_smapi-0.42.ebuild} | 26 ++++++++--------------
31 3 files changed, 18 insertions(+), 18 deletions(-)
32
33 diff --git a/app-laptop/tp_smapi/Manifest b/app-laptop/tp_smapi/Manifest
34 index 425ca7e..d6d974e 100644
35 --- a/app-laptop/tp_smapi/Manifest
36 +++ b/app-laptop/tp_smapi/Manifest
37 @@ -1 +1,2 @@
38 DIST tp_smapi-0.41.tar.gz 38852 SHA256 6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666 SHA512 924a11cdf64bc151d069d4f61ca476cf006773291f363b21a80ce091f560a78c4828d2e522e646a5b133c58149a37cb5c2432a165e92e6980eb510b9488c728e WHIRLPOOL 10c74811148934a49b2d2b65cd65d366c58de03682c02d6b82694b4831634a25f2da9986b0493e28b372abf7ada692ee8ea85b2881b823b0cb7b35b73f348d6e
39 +DIST tp_smapi-0.42.tgz 39867 SHA256 7b8d9f488c3859805f1f292bf4d518cc5b32ebb69b0ebe96367d0852dd792d27 SHA512 1004b7ef961a9908c2144b26ea60b6dddabd83d60c11421a03e3b810f5b635415ef52656d6980915512d68f809f7bc3d662328f25d111537bd7e175d252cf83b WHIRLPOOL 7d03aaf2bb4de3aabbc38fba62f126e6f2976ea1964d85da2fffbbcd63bb4c3884a152851cae116438b859c13d59fd4e41be126683f660f9b8322d7fc40ddc28
40
41 diff --git a/app-laptop/tp_smapi/metadata.xml b/app-laptop/tp_smapi/metadata.xml
42 index dc1f3c9..2f944f6 100644
43 --- a/app-laptop/tp_smapi/metadata.xml
44 +++ b/app-laptop/tp_smapi/metadata.xml
45 @@ -1,12 +1,19 @@
46 <?xml version="1.0" encoding="UTF-8"?>
47 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
48 <pkgmetadata>
49 - <!-- maintainer-needed -->
50 +
51 + <maintainer type="person">
52 + <email>mjo@g.o</email>
53 + <name>Michael Orlitzky</name>
54 + </maintainer>
55 +
56 <use>
57 <flag name="hdaps">Install a compatible HDAPS module</flag>
58 </use>
59 +
60 <upstream>
61 <remote-id type="github">evgeni/tp_smapi</remote-id>
62 <remote-id type="sourceforge">tpctl</remote-id>
63 </upstream>
64 +
65 </pkgmetadata>
66
67 diff --git a/app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild b/app-laptop/tp_smapi/tp_smapi-0.42.ebuild
68 similarity index 72%
69 rename from app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild
70 rename to app-laptop/tp_smapi/tp_smapi-0.42.ebuild
71 index e32c1f3..ed4b4a5 100644
72 --- a/app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild
73 +++ b/app-laptop/tp_smapi/tp_smapi-0.42.ebuild
74 @@ -2,13 +2,13 @@
75 # Distributed under the terms of the GNU General Public License v2
76 # $Id$
77
78 -EAPI=5
79 +EAPI=6
80
81 inherit flag-o-matic linux-mod
82
83 DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
84 -HOMEPAGE="https://github.com/evgeni/tp_smapi/ http://tpctl.sourceforge.net/"
85 -SRC_URI="mirror://github/evgeni/${PN}/${P}.tar.gz"
86 +HOMEPAGE="https://github.com/evgeni/${PN}"
87 +SRC_URI="${HOMEPAGE}/releases/download/tp-smapi/${PV}/${P}.tgz"
88
89 LICENSE="GPL-2"
90 SLOT="0"
91 @@ -16,23 +16,14 @@ KEYWORDS="~amd64 ~x86"
92
93 IUSE="hdaps"
94
95 -RESTRICT="userpriv"
96 -
97 -# We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING
98 -# in dmi.h
99 +# We need dmideode if the kernel does not support
100 +# DMI_DEV_TYPE_OEM_STRING in dmi.h.
101 DEPEND="sys-apps/dmidecode"
102 RDEPEND="${DEPEND}"
103
104 pkg_pretend() {
105 linux-mod_pkg_setup
106
107 - if kernel_is lt 2 6 19; then
108 - eerror
109 - eerror "${P} requires Linux kernel 2.6.19 or above."
110 - eerror
111 - die "Unsupported kernel version"
112 - fi
113 -
114 MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
115 BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR}"
116 BUILD_TARGETS="default"
117 @@ -40,6 +31,7 @@ pkg_pretend() {
118 if use hdaps; then
119 CONFIG_CHECK="~INPUT_UINPUT"
120 WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better"
121 + # Why call this twice?
122 linux-info_pkg_setup
123
124 MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
125 @@ -69,7 +61,7 @@ src_compile() {
126
127 src_install() {
128 linux-mod_src_install
129 - dodoc CHANGES README
130 - newinitd "${FILESDIR}"/${PN}-0.40-initd smapi
131 - newconfd "${FILESDIR}"/${PN}-0.40-confd smapi
132 + einstalldocs
133 + newinitd "${FILESDIR}/${PN}-0.40-initd" smapi
134 + newconfd "${FILESDIR}/${PN}-0.40-confd" smapi
135 }