blob: 96804dadaeb9f64792e61f660d8d426cdf6982df (
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
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake virtualx xdg
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/deskflow/deskflow.git"
inherit git-r3
else
SRC_URI="https://github.com/deskflow/deskflow/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Share a mouse and keyboard between computers (FOSS version of Synergy)"
HOMEPAGE="https://github.com/deskflow/deskflow"
LICENSE="GPL-2"
SLOT="0"
IUSE="test X"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/glib:2
>=dev-libs/libei-0.99.1
dev-libs/libportal:=
dev-libs/openssl:0=
dev-qt/qtbase:6[dbus,gui,network,ssl,widgets,xml]
x11-libs/libxkbcommon
X? (
x11-libs/libxkbfile
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXtst
)
"
DEPEND="
${RDEPEND}
test? ( dev-cpp/gtest )
X? ( x11-base/xorg-proto )
"
BDEPEND="
virtual/pkgconfig
dev-qt/qttools:6[linguist]
"
DOCS=(
README.md
doc/user/configuration.md
)
src_configure() {
local mycmakeargs=(
-DBUILD_TESTS=$(usex test)
-DBUILD_X11_SUPPORT=$(usex X)
$(usex test -DSKIP_BUILD_TESTS=ON "")
)
cmake_src_configure
}
src_test() {
"${BUILD_DIR}"/bin/legacytests || die
BUILD_DIR+=/src/unittests virtx cmake_src_test
}
|