commit:     fac3cdd349f5a9d65e7180c2d73a5a1f96494995
Author:     Dale Showers <gentoo <AT> fictx <DOT> com>
AuthorDate: Thu Aug 29 17:25:53 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Aug 29 17:28:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fac3cdd3

x11-misc/dotool: new package, add 1.5

Signed-off-by: Dale Showers <gentoo <AT> fictx.com>

 x11-misc/dotool/Manifest              |  2 ++
 x11-misc/dotool/dotool-1.5.ebuild     | 46 +++++++++++++++++++++++++++++++++++
 x11-misc/dotool/files/dotoold.initd   | 12 +++++++++
 x11-misc/dotool/files/dotoold.service |  5 ++++
 x11-misc/dotool/metadata.xml          | 17 +++++++++++++
 5 files changed, 82 insertions(+)

diff --git a/x11-misc/dotool/Manifest b/x11-misc/dotool/Manifest
new file mode 100644
index 000000000..755024952
--- /dev/null
+++ b/x11-misc/dotool/Manifest
@@ -0,0 +1,2 @@
+DIST dotool-1.5-deps.tar.xz 75052 BLAKE2B 
79b99dc7f4e17a10e6d3ac473b45262d78368b037639ca87e8ece49f2fec92913bafb150d00ef9ef09abbcb6f94b21dc336696022d79460154692ebbc8452623
 SHA512 
3fdb1fa93a0d8404f5d5d0e6088388bc83c179655b153cce750343431ccef0cff33a201aa566e76bb69b27a8b96bb3cd3ccc1f0f696d91201d846b432dcb3ed1
+DIST dotool-1.5.tar.gz 25573 BLAKE2B 
b3727439ea81392fbac6d3a426c75cf73461df9e192bc03ab0c3f6f46a24914b9192e0543e4e8aeb00aea4403f8ea0511d98d1ece629862af8237ea5aee8ab18
 SHA512 
93dce89be5ac55925726f6db00c1807197c8a831a70c95fbb542c3baaca9f56d85fef93d65b02c1feb7eb360177c6c072593fa8fc239d5e68eab7e574366eba6

diff --git a/x11-misc/dotool/dotool-1.5.ebuild 
b/x11-misc/dotool/dotool-1.5.ebuild
new file mode 100644
index 000000000..b6ce9472a
--- /dev/null
+++ b/x11-misc/dotool/dotool-1.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd udev
+
+DESCRIPTION="Command to simulate input anywhere"
+HOMEPAGE="https://git.sr.ht/~geb/dotool";
+EGIT_COMMIT="945a7daedeef076db91261266b802498096f6f91"
+SRC_URI="https://git.sr.ht/~geb/${PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${PN}-${PV}.tar.gz ${EGO_SUM_SRC_URI}"
+SRC_URI+="https://gitlab.com/fictitiousexistence-public/gentoo-gofiles/-/raw/main/dotool/${PN}-${PV}-deps.tar.xz";
+
+S=${WORKDIR}/${PN}-${EGIT_COMMIT}
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+man"
+
+BDEPEND="man? ( app-text/scdoc )"
+DEPEND="dev-libs/libinput"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       local ldflags="-s -w -X main.Version=${PV}"
+       go build -ldflags="${ldflags}" || die 'go build failed'
+       use man && scdoc < ./doc/${PN}.1.scd  > ./${PN}.1
+}
+
+src_install() {
+       dobin ${PN} ${PN}c ${PN}d
+       udev_dorules 80-${PN}.rules
+       systemd_douserunit "${FILESDIR}/${PN}d.service"
+       newinitd "${FILESDIR}/dotoold.initd" dotoold
+       use man && doman ${PN}.1
+
+}
+
+pkg_postinst() {
+       udev_reload
+}
+
+pkg_postrm() {
+       udev_reload
+}

diff --git a/x11-misc/dotool/files/dotoold.initd 
b/x11-misc/dotool/files/dotoold.initd
new file mode 100644
index 000000000..ee542a315
--- /dev/null
+++ b/x11-misc/dotool/files/dotoold.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+name=$RC_SVCNAME
+description="Starts dotoold service"
+supervisor="supervise-daemon"
+command="/usr/bin/dotoold"
+
+reload() {
+       ebegin "Reloading $RC_SVCNAME"
+       /usr/bin/kill -HUP $MAINPID
+       eend $?
+}

diff --git a/x11-misc/dotool/files/dotoold.service 
b/x11-misc/dotool/files/dotoold.service
new file mode 100644
index 000000000..2df4d78cd
--- /dev/null
+++ b/x11-misc/dotool/files/dotoold.service
@@ -0,0 +1,5 @@
+[Unit]
+Description=dotool daemon
+
+[Service]
+ExecStart=/usr/bin/dotoold

diff --git a/x11-misc/dotool/metadata.xml b/x11-misc/dotool/metadata.xml
new file mode 100644
index 000000000..43b75f0fd
--- /dev/null
+++ b/x11-misc/dotool/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+        <name>Dale Showers</name>
+        <email>[email protected]</email>
+    </maintainer>
+    <longdescription>
+      dotool reads actions from stdin and simulates keyboard/mouse input using 
Linux's uinput module. It works systemwide and supports keyboard layouts.
+    </longdescription>
+    <upstream>
+        <changelog>https://git.sr.ht/~geb/dotool/log</changelog>
+        <doc>https://git.sr.ht/~geb/dotool/tree/master/doc/dotool.1.scd</doc>
+        <bugs-to>https://todo.sr.ht/~geb/dotool</bugs-to>
+        <remote-id type="sourcehut">~geb/dotool</remote-id>
+    </upstream>
+</pkgmetadata>

Reply via email to