blob: 72222199441cd89a877c8e7f45e9e5b196ffaf09 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Logging library for C applications"
HOMEPAGE="https://github.com/babelouest/yder/"
SRC_URI="https://github.com/babelouest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc systemd"
RESTRICT="test"
BDEPEND="
doc? (
app-text/doxygen
media-gfx/graphviz
)
virtual/pkgconfig
"
DEPEND="
net-libs/orcania
systemd? (
sys-apps/systemd
)
"
RDEPEND="
${DEPEND}
"
PATCHES=(
"${FILESDIR}/${P}-cmake.patch"
)
src_configure() {
local mycmakeargs=(
-DBUILD_YDER_DOCUMENTATION=$(usex doc)
-DWITH_JOURNALD=$(usex systemd)
)
sed -i -e "s/-Werror//g" CMakeLists.txt || die
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_build doc
}
src_install() {
use doc && local HTML_DOCS=( doc/html/* )
cmake_src_install
}
|