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