blob: cd6ff144ee011b7bbf86a092fd0f9f0cb39b3a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="Daemon for communication with Viessmann Vito heatings"
HOMEPAGE="https://github.com/openv/vcontrold/"
SRC_URI="https://github.com/openv/vcontrold/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="+man +vclient vsim"
RDEPEND="dev-libs/libxml2"
DEPEND="${RDEPEND}
man? ( dev-python/docutils )"
src_prepare() {
sed "s/@VERSION@/${PV}/" "src/version.h.in" \
> "src/version.h" || die "Setting version failed"
eapply "${FILESDIR}"/man_generation.patch
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DMANPAGES="$(usex man)"
-DVCLIENT="$(usex vclient)"
-DVSIM="$(usex vsim)"
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
doinitd "${FILESDIR}/vcontrold"
insinto /etc/vcontrold/
doins -r xml
}
|