summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/barrier/barrier-2.1.2.ebuild')
-rw-r--r--x11-misc/barrier/barrier-2.1.2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/x11-misc/barrier/barrier-2.1.2.ebuild b/x11-misc/barrier/barrier-2.1.2.ebuild
new file mode 100644
index 0000000..35e7822
--- /dev/null
+++ b/x11-misc/barrier/barrier-2.1.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cmake-utils flag-o-matic
+
+DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers"
+HOMEPAGE="https://github.com/debauchee/barrier"
+SRC_URI="https://github.com/debauchee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="libressl qt5"
+RESTRICT="test"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:* )
+ libressl? ( dev-libs/libressl )
+ net-misc/curl
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ net-dns/avahi[mdnsresponder-compat]
+ )
+ x11-base/xorg-proto
+"
+
+RDEPEND="${DEPEND}"
+
+#PATCHES=( "${FILESDIR}"/${PN}-qt5.11-port.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBARRIER_BUILD_INSTALLER=OFF
+ -DBARRIER_BUILD_GUI=$(usex qt5)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use qt5; then
+ newicon -s 256 "${S}"/res/${PN}.png ${PN}.png
+ newmenu "${S}"/res/${PN}.desktop ${PN}.desktop
+ fi
+}