blob: 94cef0ea5dc03a993053ad9c792b498a04880ca7 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/scarpin0/${PN}.git"
inherit git-r3
SYSTEMD_VERSION=">=sys-apps/systemd-207"
else
SRC_URI="https://github.com/scarpin0/libsystemd-qt/archive/${PV}.zip -> ${P}.zip"
KEYWORDS="~amd64"
SYSTEMD_VERSION="~sys-apps/systemd-${PV}"
fi
DESCRIPTION="Qt wrapper for systemd API"
HOMEPAGE="https://github.com/scarpin0/libsystemd-qt"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="debug test"
RESTRICT="!test? ( test )"
RDEPEND="
${SYSTEMD_VERSION}
dev-qt/qtcore:5
dev-qt/qtdbus:5
"
DEPEND="${RDEPEND}
test? ( dev-qt/qttest:5 )
"
src_configure() {
local mycmakeargs=(
-DBUILD_WITH_QT4=OFF
-DBUILD_QTSYSTEMD_TESTS=$(usex test)
)
cmake_src_configure
}
|