1 # Copyright 1999-2019 Gentoo Authors
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"
15 IUSE="atasmart nvidia +yaml"
17 DEPEND="atasmart? ( dev-libs/libatasmart )
18 yaml? ( dev-cpp/yaml-cpp )"
20 nvidia? ( x11-drivers/nvidia-drivers )"
23 Please read the documentation and copy an appropriate
24 file to /etc/thinkfan.conf.
29 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
30 -DUSE_NVML="$(usex nvidia)"
31 -DUSE_ATASMART="$(usex atasmart)"
32 -DUSE_YAML="$(usex yaml)"
35 cmake-utils_src_configure
39 cmake-utils_src_install
41 readme.gentoo_create_doc