aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2023-11-01 09:31:49 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2023-11-01 09:42:12 +0000
commit4bcaeaab1ec4673ae6de88fbe26126749012e52e (patch)
tree5af0e56b468b4d2ce5d7c07d93b8a8a1f292fb2a
parent9bccc8a106f5f2f618b5adc5eb62ea54edb3486a (diff)
downloadports-4bcaeaab1ec4673ae6de88fbe26126749012e52e.tar.gz
ports-4bcaeaab1ec4673ae6de88fbe26126749012e52e.zip
devel/p5-Term-TermKey: Add new port
This module offers a lightweight Perl wrapper for the libtermkey library, which serves as a valuable tool for abstractly handling keypress events in terminal-based programs. Instead of delivering raw bytes directly from the TTY device, this library furnishes data structures that describe keys, facilitating a more organized and user-friendly approach to key event processing.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Term-TermKey/Makefile23
-rw-r--r--devel/p5-Term-TermKey/distinfo3
-rw-r--r--devel/p5-Term-TermKey/pkg-descr6
-rw-r--r--devel/p5-Term-TermKey/pkg-plist3
5 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index afbf26f16fc7..e62245b80ab8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3474,6 +3474,7 @@
SUBDIR += p5-Term-Sk
SUBDIR += p5-Term-Table
SUBDIR += p5-Term-TablePrint
+ SUBDIR += p5-Term-TermKey
SUBDIR += p5-Term-Title
SUBDIR += p5-Term-UI
SUBDIR += p5-Term-VT102
diff --git a/devel/p5-Term-TermKey/Makefile b/devel/p5-Term-TermKey/Makefile
new file mode 100644
index 000000000000..5fb0f40e6434
--- /dev/null
+++ b/devel/p5-Term-TermKey/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= Term-TermKey
+DISTVERSION= 0.17
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ehaupt@FreeBSD.org
+COMMENT= Perl wrapper around libtermkey
+WWW= https://metacpan.org/pod/Term::TermKey
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= p5-Module-Build-Using-PkgConfig>=0:devel/p5-Module-Build-Using-PkgConfig
+LIB_DEPENDS= libtermkey.so:devel/libtermkey
+
+USES= perl5 pkgconfig
+USE_PERL5= modbuild
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Term/TermKey/TermKey.so
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Term-TermKey/distinfo b/devel/p5-Term-TermKey/distinfo
new file mode 100644
index 000000000000..6bc8c716dbde
--- /dev/null
+++ b/devel/p5-Term-TermKey/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698825646
+SHA256 (Term-TermKey-0.17.tar.gz) = 2fefc17f2d18e2f6d0bf22f0c0cd542cce91d66ac1a863d2634ad845f6f5f525
+SIZE (Term-TermKey-0.17.tar.gz) = 34654
diff --git a/devel/p5-Term-TermKey/pkg-descr b/devel/p5-Term-TermKey/pkg-descr
new file mode 100644
index 000000000000..e7047049e648
--- /dev/null
+++ b/devel/p5-Term-TermKey/pkg-descr
@@ -0,0 +1,6 @@
+This module offers a lightweight Perl wrapper for the libtermkey
+library, which serves as a valuable tool for abstractly handling
+keypress events in terminal-based programs. Instead of delivering raw
+bytes directly from the TTY device, this library furnishes data
+structures that describe keys, facilitating a more organized and
+user-friendly approach to key event processing.
diff --git a/devel/p5-Term-TermKey/pkg-plist b/devel/p5-Term-TermKey/pkg-plist
new file mode 100644
index 000000000000..75803692b120
--- /dev/null
+++ b/devel/p5-Term-TermKey/pkg-plist
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/Term/TermKey.pm
+%%SITE_ARCH%%/auto/Term/TermKey/TermKey.so
+%%PERL5_MAN3%%/Term::TermKey.3.gz