git: a81e3f34a765 - main - misc/tdrop: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Fri, 29 Sep 2023 15:15:42 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a81e3f34a76537f5da672e3f316a9e950d0959f1

commit a81e3f34a76537f5da672e3f316a9e950d0959f1
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2023-09-29 15:14:22 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2023-09-29 15:14:22 +0000

    misc/tdrop: Add new port
    
    Tdrop makes dropdown terminals and windows.
    
    It is used for hiding/unhiding programs to achieve quake/dropdown
    functionality. It can create a dropdown window if one does not already
    exist or turn the current window into a dropdown on the fly.
    
    https://github.com/noctuid/tdrop
---
 misc/Makefile        |  1 +
 misc/tdrop/Makefile  | 33 +++++++++++++++++++++++++++++++++
 misc/tdrop/distinfo  |  3 +++
 misc/tdrop/pkg-descr |  5 +++++
 4 files changed, 42 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 1304a56a71fe..7fb79b6beb42 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -560,6 +560,7 @@
     SUBDIR += table.el
     SUBDIR += talkfilters
     SUBDIR += tdfiglet
+    SUBDIR += tdrop
     SUBDIR += team
     SUBDIR += tellico
     SUBDIR += tempcontrol
diff --git a/misc/tdrop/Makefile b/misc/tdrop/Makefile
new file mode 100644
index 000000000000..ac0ec8f33bcb
--- /dev/null
+++ b/misc/tdrop/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	tdrop
+DISTVERSION=	0.5.0
+CATEGORIES=	misc
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Glorified WM-Independent Dropdown Creator
+WWW=		https://github.com/noctuid/tdrop
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	bash:shells/bash \
+		coreutils>=9.1:sysutils/coreutils \
+		gawk:lang/gawk \
+		tmux:sysutils/tmux \
+		xdotool:x11/xdotool \
+		xprop:x11/xprop \
+		xrandr:x11/xrandr \
+		xwininfo:x11/xwininfo
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	noctuid
+
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/tdrop \
+		man/man1/tdrop.1.gz
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/tdrop ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_MAN} ${WRKSRC}/tdrop.1 ${STAGEDIR}${PREFIX}/man/man1/
+
+.include <bsd.port.mk>
diff --git a/misc/tdrop/distinfo b/misc/tdrop/distinfo
new file mode 100644
index 000000000000..c90ee574da6e
--- /dev/null
+++ b/misc/tdrop/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1695995578
+SHA256 (noctuid-tdrop-0.5.0_GH0.tar.gz) = ac37c76cb936d8e4c1c0aba5874999e09b8acbe07a2e23e8181114bd4a2a0a5d
+SIZE (noctuid-tdrop-0.5.0_GH0.tar.gz) = 24726
diff --git a/misc/tdrop/pkg-descr b/misc/tdrop/pkg-descr
new file mode 100644
index 000000000000..a4a61e7e0b27
--- /dev/null
+++ b/misc/tdrop/pkg-descr
@@ -0,0 +1,5 @@
+Tdrop makes dropdown terminals and windows.
+
+It is used for hiding/unhiding programs to achieve quake/dropdown
+functionality. It can create a dropdown window if one does not already
+exist or turn the current window into a dropdown on the fly.