1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop xdg cmake
8 DESCRIPTION="Share a mouse and keyboard between computers (fork of Synergy)"
9 HOMEPAGE="https://github.com/debauchee/barrier"
10 SRC_URI="https://github.com/debauchee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 net-dns/avahi[mdnsresponder-compat]
34 !libressl? ( dev-libs/openssl:0= )
35 libressl? ( dev-libs/libressl:0= )
43 "${FILESDIR}"/${P}-inf-loop.patch
44 "${FILESDIR}"/${P}-no-avahi.patch
45 "${FILESDIR}"/${P}-pthread.patch
46 "${FILESDIR}"/${P}-qt-gui-only.patch
52 doc/${PN}.conf.example{,-advanced,-basic}
57 -DBARRIER_BUILD_GUI=$(usex gui)
58 -DBARRIER_BUILD_INSTALLER=OFF
59 -DBARRIER_REVISION=00000000
60 -DBARRIER_VERSION_STAGE=gentoo
69 doman doc/${PN}{c,s}.1
72 doicon -s scalable res/${PN}.svg
73 doicon -s 256 res/${PN}.png
74 make_desktop_entry ${PN} Barrier ${PN} Utility