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