Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2023 09:42:48 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4bcaeaab1ec4 - main - devel/p5-Term-TermKey: Add new port
Message-ID:  <202311010942.3A19gmJK032490@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ehaupt:

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

commit 4bcaeaab1ec4673ae6de88fbe26126749012e52e
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-11-01 09:31:49 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-11-01 09:42:12 +0000

    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.
---
 devel/Makefile                  |  1 +
 devel/p5-Term-TermKey/Makefile  | 23 +++++++++++++++++++++++
 devel/p5-Term-TermKey/distinfo  |  3 +++
 devel/p5-Term-TermKey/pkg-descr |  6 ++++++
 devel/p5-Term-TermKey/pkg-plist |  3 +++
 5 files changed, 36 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311010942.3A19gmJK032490>