Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/mbpfan/
Date: Sun, 31 Jul 2022 22:52:06
Message-Id: 1659307905.d107e7dadcc808bedfb6d0ff9cb1f161ce5db0e2.soap@gentoo
1 commit: d107e7dadcc808bedfb6d0ff9cb1f161ce5db0e2
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 22:51:45 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 22:51:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d107e7da
7
8 app-laptop/mbpfan: update EAPI 6 -> 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 .../{mbpfan-2.2.1.ebuild => mbpfan-2.2.1-r1.ebuild} | 17 +++++++++--------
13 1 file changed, 9 insertions(+), 8 deletions(-)
14
15 diff --git a/app-laptop/mbpfan/mbpfan-2.2.1.ebuild b/app-laptop/mbpfan/mbpfan-2.2.1-r1.ebuild
16 similarity index 84%
17 rename from app-laptop/mbpfan/mbpfan-2.2.1.ebuild
18 rename to app-laptop/mbpfan/mbpfan-2.2.1-r1.ebuild
19 index e1a4cb35e935..1bbd3102e15e 100644
20 --- a/app-laptop/mbpfan/mbpfan-2.2.1.ebuild
21 +++ b/app-laptop/mbpfan/mbpfan-2.2.1-r1.ebuild
22 @@ -1,17 +1,14 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 +# Copyright 1999-2022 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=6
28 +EAPI=8
29
30 inherit linux-info systemd toolchain-funcs
31
32 DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
33 HOMEPAGE="https://github.com/dgraziotin/mbpfan"
34 -LICENSE="GPL-3+"
35 -SLOT="0"
36 -RESTRICT="test" # will fail if the hardware is unavailable, not useful
37
38 -if [[ "${PV}" = 9999 ]]; then
39 +if [[ ${PV} == *9999 ]]; then
40 inherit git-r3
41 EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git"
42 else
43 @@ -19,6 +16,10 @@ else
44 KEYWORDS="~amd64"
45 fi
46
47 +LICENSE="GPL-3+"
48 +SLOT="0"
49 +RESTRICT="test" # will fail if the hardware is unavailable, not useful
50 +
51 CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
52
53 src_compile() {
54 @@ -33,14 +34,14 @@ src_install() {
55
56 # Remove the empty systemd unit directory
57 # It doesn't actually install the unit file
58 - rmdir --ignore-fail-on-non-empty -p "${ED%/}/lib/systemd/system" || die
59 + rmdir --ignore-fail-on-non-empty -p "${ED}"/lib/systemd/system || die
60 # Actually install the sytstemd unit file
61 systemd_dounit ${PN}.service
62 # Install openrc init file
63 newinitd ${PN}.init.gentoo ${PN}
64
65 # make install doesn't install the docs in the right place
66 - rm -rf "${ED%/}/usr/share/doc/${PN}" || die
67 + rm -r "${ED}"/usr/share/doc/${PN} || die
68
69 einstalldocs
70 }