1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils desktop gnome2-utils
8 DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers"
9 HOMEPAGE="https://symless.com/synergy https://github.com/symless/synergy-core"
11 https://github.com/symless/${PN}-core/archive/v${PV}-stable.tar.gz -> ${P}.tar.gz
12 https://dev.gentoo.org/~jer/${PN}.png
17 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
21 S=${WORKDIR}/${PN}-core-${PV}-stable
24 !libressl? ( dev-libs/openssl:= )
25 libressl? ( dev-libs/libressl:= )
40 net-dns/avahi[mdnsresponder-compat]
49 qt5? ( !x11-misc/qsynergy )
52 DOCS=( ChangeLog doc/synergy.conf.example{,-advanced,-basic} )
55 "${FILESDIR}"/${P}-pthread.patch
56 "${FILESDIR}"/${P}-internal-gmock-gtest.patch
57 "${FILESDIR}"/${P}-gtest.patch
58 "${FILESDIR}"/${P}-cmake-version.patch
59 "${FILESDIR}"/${P}-qt-5.11.patch
64 -DSYNERGY_BUILD_LEGACY_GUI=$(usex qt5)
65 -DSYNERGY_BUILD_LEGACY_INSTALLER=OFF
68 cmake-utils_src_configure
72 dobin "${BUILD_DIR}"/bin/{synergy{c,s},syntool}
75 newbin "${BUILD_DIR}"/bin/${PN} qsynergy
76 newicon -s 256 "${DISTDIR}"/${PN}.png q${PN}.png
77 make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
81 newins doc/synergy.conf.example synergy.conf
83 newman doc/${PN}c.man ${PN}c.1
84 newman doc/${PN}s.man ${PN}s.1
90 use qt5 && gnome2_icon_savelist
94 use qt5 && gnome2_icon_cache_update
98 use qt5 && gnome2_icon_cache_update