Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/thinkfan/
Date: Sat, 19 Jan 2019 05:05:06
Message-Id: 1547874158.de525787e242ae349b031d95f6f32d2cca817dff.whissi@gentoo
1 commit: de525787e242ae349b031d95f6f32d2cca817dff
2 Author: Tran Thai Son <tranthaison2000 <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 20 02:07:07 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 19 05:02:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de525787
7
8 app-laptop/thinkfan version bump to 1.0
9
10 Closes: https://github.com/gentoo/gentoo/pull/9630
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-laptop/thinkfan/Manifest | 1 +
14 app-laptop/thinkfan/metadata.xml | 2 ++
15 app-laptop/thinkfan/thinkfan-1.0.ebuild | 45 +++++++++++++++++++++++++++++++++
16 3 files changed, 48 insertions(+)
17
18 diff --git a/app-laptop/thinkfan/Manifest b/app-laptop/thinkfan/Manifest
19 index 3515076cd1c..0df01627822 100644
20 --- a/app-laptop/thinkfan/Manifest
21 +++ b/app-laptop/thinkfan/Manifest
22 @@ -1 +1,2 @@
23 DIST thinkfan-0.9.3.tar.gz 39527 BLAKE2B e6a6d09493d94b4de9ada20dcc4b0251c5f2c148f7faa7f69c04fe2a279a9cfe253a0ea1a01fe94ed108e8731e2ba01edef5df10dfb887ea961a356dff733854 SHA512 d2a29f9cae636c22b66958f8ec50cb60a162d745c3967257bb5e20cc9e152894d4e8a66f897ffa4e49353eba4a42e3499bb9e554719974284089a46cfc6280d7
24 +DIST thinkfan-1.0.tar.gz 77575 BLAKE2B cc4dfec48d2797079b053b0be923a008b2e740179de10bda549194008a83ce9ea47fdb23e82f0050fa594be81fa07b242b548303fff751845da544f1f8fdd226 SHA512 c85c8a4f3eb2735f065bf56312823a13277b803e4762a325bd250a47f1e35e1efbc45fa63bcd3b2e24184d6f95a9f8d7ceb1b31eb82c674ca2f2f8d57ee0ea30
25
26 diff --git a/app-laptop/thinkfan/metadata.xml b/app-laptop/thinkfan/metadata.xml
27 index e4b22975b67..c6b8ff4c4c3 100644
28 --- a/app-laptop/thinkfan/metadata.xml
29 +++ b/app-laptop/thinkfan/metadata.xml
30 @@ -7,6 +7,8 @@
31 </maintainer>
32 <use>
33 <flag name="atasmart">include libatasmart support to get disc temperature</flag>
34 + <flag name="nvidia">allow thinkfan to read GPU temperature from the proprietary nVidia driver</flag>
35 + <flag name="yaml">use YAML format for config file</flag>
36 </use>
37 <upstream>
38 <remote-id type="sourceforge">thinkfan</remote-id>
39
40 diff --git a/app-laptop/thinkfan/thinkfan-1.0.ebuild b/app-laptop/thinkfan/thinkfan-1.0.ebuild
41 new file mode 100644
42 index 00000000000..d114b72afb1
43 --- /dev/null
44 +++ b/app-laptop/thinkfan/thinkfan-1.0.ebuild
45 @@ -0,0 +1,45 @@
46 +# Copyright 1999-2017 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=6
50 +
51 +inherit cmake-utils readme.gentoo-r1
52 +
53 +DESCRIPTION="simple fan control program for thinkpads"
54 +HOMEPAGE="http://thinkfan.sourceforge.net"
55 +SRC_URI="https://github.com/vmatare/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
56 +
57 +LICENSE="GPL-3"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +IUSE="atasmart nvidia +yaml"
61 +
62 +DEPEND="atasmart? ( dev-libs/libatasmart )
63 + yaml? ( dev-cpp/yaml-cpp )"
64 +RDEPEND="${DEPEND}
65 + nvidia? ( x11-drivers/nvidia-drivers )"
66 +
67 +src_prepare() {
68 + cmake-utils_src_prepare
69 +
70 + sed -e "s:share/doc/${PN}:share/doc/${PF}:" \
71 + -i CMakeLists.txt || die "sed failed"
72 +}
73 +
74 +src_configure() {
75 + local mycmakeargs+=(
76 + -DUSE_NVML="$(usex nvidia)"
77 + -DUSE_ATASMART="$(usex atasmart)"
78 + -DUSE_YAML="$(usex yaml)"
79 + )
80 +
81 + cmake-utils_src_configure
82 +}
83 +
84 +src_install() {
85 + cmake-utils_src_install
86 + readme.gentoo_create_doc
87 +}
88 +
89 +DOC_CONTENTS="Please read the documentation and copy an
90 +appropriate file to /etc/thinkfan.conf."