Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/mbpfan/
Date: Wed, 19 Sep 2018 20:50:22
Message-Id: 1537390190.6a4dd0223d5d356d55ef58c6796633d0bd982b3e.gokturk@gentoo
1 commit: 6a4dd0223d5d356d55ef58c6796633d0bd982b3e
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 19 20:31:45 2018 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 19 20:49:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a4dd022
7
8 app-laptop/mbpfan: bump to 2.1.0
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-laptop/mbpfan/Manifest | 1 +
13 app-laptop/mbpfan/mbpfan-2.1.0.ebuild | 44 +++++++++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/app-laptop/mbpfan/Manifest b/app-laptop/mbpfan/Manifest
17 index 5bb48ff465f..36ed6c5008b 100644
18 --- a/app-laptop/mbpfan/Manifest
19 +++ b/app-laptop/mbpfan/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mbpfan-1.9.1.tar.gz 24393 BLAKE2B 9fd96f6903aa360a86e2813d9bf3e57fe28dacc7bbfb25c94eba90a41de1bbf48adb840ec664e9ab3dccafcb361a8799d14ccc258fa377fac88a510c1063a92d SHA512 04f1f70697ccd182c329588623c6664979e1cc25db8a39a2ea9f6d1ec49f3914172c3ada392fabc9ac51a811f36087dc600426c34c201d02a5d7b791b04f0f3b
22 DIST mbpfan-2.0.0.tar.gz 37912 BLAKE2B 8d2ce41d8f6a724e28ace0c23047dde4a0a60ae10beeec3e3d7194bbd6b87ae0c340cf025deca896208e225083e0bb67043c6b00135544f2d78e39fbf55b3fcd SHA512 9a7f930afe0a151fe50bf3ef1a06a5cecaced0c47f7088a83b91e25dff85d4b0d53494eac5eb1b624bde6ff1d3307a0d9fe6ba392fdacbe58e241d93d11cda6d
23 DIST mbpfan-2.0.1.tar.gz 37805 BLAKE2B 0988a9b5cd359b4e64fdb1e63322dea7582fdc9a9dda0760550945282ef6142dbcab8aeb78ec1a725b5f9aebcda72386e3fa4b8b5f7ecdf078106d229fb7e2af SHA512 8fd2e37b9b81720ff7efa490d285da5980ef5dcc858fef4b0c24166a8f0df46aa230ea18fca5775b222271918e5ca6df1bfbbdced068182c20eeb86192ed2019
24 +DIST mbpfan-2.1.0.tar.gz 39303 BLAKE2B b51b7df8c24cc49561f45614a655c698b85f149367f888aceb90b90e27e2da03ede7beed58e552e163e9f625d950290198f6d56a545c10989a8d0e27909556a7 SHA512 8750ac47419e84f8692a478e3977b56b98be9e255d5be9876094eef0f86bc587510959cc4cff0d681fb9e1ecaf98f90d9d0b63a1a6ddd25e8de4ccfda747b54a
25
26 diff --git a/app-laptop/mbpfan/mbpfan-2.1.0.ebuild b/app-laptop/mbpfan/mbpfan-2.1.0.ebuild
27 new file mode 100644
28 index 00000000000..b5910627d29
29 --- /dev/null
30 +++ b/app-laptop/mbpfan/mbpfan-2.1.0.ebuild
31 @@ -0,0 +1,44 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit linux-info systemd toolchain-funcs
38 +
39 +DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
40 +HOMEPAGE="https://github.com/dgraziotin/mbpfan"
41 +LICENSE="GPL-3+"
42 +SLOT="0"
43 +RESTRICT="test" # will fail if the hardware is unavailable, not useful
44 +
45 +if [[ "${PV}" = 9999 ]]; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git"
48 + KEYWORDS=""
49 +else
50 + SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64"
52 +fi
53 +
54 +CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
55 +
56 +src_compile() {
57 + emake CC="$(tc-getCC)"
58 +}
59 +
60 +src_install() {
61 + emake DESTDIR="${ED}" install
62 +
63 + # Remove the empty systemd unit directory
64 + # It doesn't actually install the unit file
65 + rmdir --ignore-fail-on-non-empty -p "${ED%/}/lib/systemd/system" || die
66 + # Actually install the sytstemd unit file
67 + systemd_dounit ${PN}.service
68 + # Install openrc init file
69 + newinitd ${PN}.init.gentoo ${PN}
70 +
71 + # make install doesn't install the docs in the right place
72 + rm -rf "${ED%/}/usr/share/doc/${PN}" || die
73 +
74 + einstalldocs
75 +}