Diff thinkfan-0.9.3 with a thinkfan-1.0.2

/usr/portage/app-laptop/thinkfan/thinkfan-1.0.2.ebuild 2019-06-16 14:09:00.000000000 +0300
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6
inherit cmake-utils readme.gentoo-r1 systemd
6
inherit cmake-utils readme.gentoo-r1
7 7

  
8 8
DESCRIPTION="simple fan control program for thinkpads"
9 9
HOMEPAGE="http://thinkfan.sourceforge.net"
10
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
SRC_URI="https://github.com/vmatare/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
11 11

  
12 12
LICENSE="GPL-3"
13 13
SLOT="0"
14 14
KEYWORDS="amd64 x86"
15
IUSE="atasmart"
15
IUSE="atasmart nvidia +yaml"
16 16

  
17
DEPEND="atasmart? ( dev-libs/libatasmart )"
18
RDEPEND="${DEPEND}"
19

  
20
src_prepare() {
21
	cmake-utils_src_prepare
22

  
23
	sed -e "s:#!/sbin/runscript:#!/sbin/openrc-run:" \
24
		-i rcscripts/thinkfan.gentoo
25

  
26
	sed -e "s:share/doc/${PN}:share/doc/${PF}:" \
27
	    -e "s:thinkfan.1:src/thinkfan.1:" \
28
		-i CMakeLists.txt
29
}
17
DEPEND="atasmart? ( dev-libs/libatasmart )
18
	yaml? ( dev-cpp/yaml-cpp )"
19
RDEPEND="${DEPEND}
20
	nvidia? ( x11-drivers/nvidia-drivers )"
21

  
22
DOC_CONTENTS="
23
	Please read the documentation and copy an appropriate
24
	file to /etc/thinkfan.conf.
25
"
30 26

  
31 27
src_configure() {
32 28
	local mycmakeargs+=(
33
		"-DCMAKE_BUILD_TYPE:STRING=Debug"
34
		"-DUSE_ATASMART=$(usex atasmart)"
29
		-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
30
		-DUSE_NVML="$(usex nvidia)"
31
		-DUSE_ATASMART="$(usex atasmart)"
32
		-DUSE_YAML="$(usex yaml)"
35 33
	)
36 34

  
37 35
	cmake-utils_src_configure
......
40 38
src_install() {
41 39
	cmake-utils_src_install
42 40

  
43
	newinitd rcscripts/${PN}.gentoo ${PN}
44
	systemd_dounit rcscripts/${PN}.service
45

  
46 41
	readme.gentoo_create_doc
47 42
}
48

  
49
DOC_CONTENTS="Please read the documentation and copy an
50
appropriate file to /etc/thinkfan.conf."
Thank you!