1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils readme.gentoo-r1
8 DESCRIPTION="simple fan control program for thinkpads"
9 HOMEPAGE="http://thinkfan.sourceforge.net"
10 SRC_URI="https://github.com/vmatare/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="atasmart nvidia +yaml"
17 DEPEND="atasmart? ( dev-libs/libatasmart )
18 yaml? ( dev-cpp/yaml-cpp )"
20 nvidia? ( x11-drivers/nvidia-drivers )"
23 cmake-utils_src_prepare
25 sed -e "s:share/doc/${PN}:share/doc/${PF}:" \
26 -i CMakeLists.txt || die "sed failed"
31 -DUSE_NVML="$(usex nvidia)"
32 -DUSE_ATASMART="$(usex atasmart)"
33 -DUSE_YAML="$(usex yaml)"
36 cmake-utils_src_configure
40 cmake-utils_src_install
41 readme.gentoo_create_doc
44 DOC_CONTENTS="Please read the documentation and copy an
45 appropriate file to /etc/thinkfan.conf."