summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2023-08-08 18:33:24 +0200
committerhaarp <main.haarp@gmail.com>2023-08-08 18:33:24 +0200
commit142874756e52f035ed2dd0f1791ff223422709a2 (patch)
tree9177d85a56e412c77024a0559236959b79f83445
parentUpdate lastpass-cli (diff)
downloadhaarp-142874756e52f035ed2dd0f1791ff223422709a2.tar.gz
haarp-142874756e52f035ed2dd0f1791ff223422709a2.tar.bz2
haarp-142874756e52f035ed2dd0f1791ff223422709a2.zip
Add touchegg (based on work by waffle-builds overlay)
Signed-off-by: haarp <main.haarp@gmail.com>
-rw-r--r--x11-misc/touchegg/Manifest2
-rw-r--r--x11-misc/touchegg/touchegg-2.0.16.ebuild67
2 files changed, 69 insertions, 0 deletions
diff --git a/x11-misc/touchegg/Manifest b/x11-misc/touchegg/Manifest
new file mode 100644
index 0000000..b267d86
--- /dev/null
+++ b/x11-misc/touchegg/Manifest
@@ -0,0 +1,2 @@
+DIST touchegg-2.0.16.tar.gz 26826100 BLAKE2B f3f2bc5aebc79f54ae99e3a1d914eed1281c4c48955a848fd4b54f4ab975aecb037b3322f2a6de750454da8a29e71f3aa10b905fe1b8b93ace145d34d5261824 SHA512 92a5409c1f570de2690e57e8ae291bda1c07b5d5c1094fd80a9648c5986f5dc8cd5a8e03c3714a8dc10b5305a75e52a0ef86f5bf52a038db08fedb86620af76f
+EBUILD touchegg-2.0.16.ebuild 1455 BLAKE2B f56d5360af5600bdd781f2d673bd8af1cfb36276a0da986c23a32ca0a46f24cf6ac6efa2a076d853d3bf797b06a77ba0e17ac79a5b5a307d2da41a1f63282312 SHA512 e57388efd7314635a0a7f0c84242a0c86280e78bab72d08eb6576f2fede37b9156b3a47ecdcb4d5cadc3ea4470355a7b0c9e59255a15fc1c7c7b3412e08d6e8f
diff --git a/x11-misc/touchegg/touchegg-2.0.16.ebuild b/x11-misc/touchegg/touchegg-2.0.16.ebuild
new file mode 100644
index 0000000..f95bfbd
--- /dev/null
+++ b/x11-misc/touchegg/touchegg-2.0.16.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Linux multi-touch gesture recognizer"
+HOMEPAGE="https://github.com/JoseExposito/touchegg"
+
+if [[ "${PV}" == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/JoseExposito/touchegg.git"
+else
+ SRC_URI="https://github.com/JoseExposito/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gtk systemd"
+
+RDEPEND="
+ dev-libs/libinput
+ dev-libs/pugixml
+ x11-libs/cairo
+ x11-libs/libX11
+ x11-libs/libXtst
+ x11-libs/libXrandr
+ x11-libs/libXi
+ dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:3 )
+ virtual/libudev
+ systemd? ( sys-apps/systemd )
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=( "README.md" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DAUTO_COLORS="$(usex gtk)"
+ # https://github.com/JoseExposito/touchegg/issues/481
+ -DUSE_SYSTEMD="$(usex systemd)"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ default
+
+ cmake_src_install
+
+ use systemd && newinitd "${FILESDIR}"/touchegg.initd touchegg
+}
+
+pkg_postinst() {
+ if use systemd; then
+ elog "On update run: 'systemctl daemon-reload && systemctl restart touchegg'"
+ else
+ elog "Not using systemd; in addition to 'touchegg', you have to manually"
+ elog "run 'touchegg --daemon' as root or an user in the 'input' group"
+ fi
+ elog "See https://github.com/JoseExposito/touchegg#configuration for config information"
+}