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.
This commit is contained in:
Emanuel Haupt 2023-11-01 10:31:49 +01:00
parent 9bccc8a106
commit 4bcaeaab1e
5 changed files with 36 additions and 0 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1698825646
SHA256 (Term-TermKey-0.17.tar.gz) = 2fefc17f2d18e2f6d0bf22f0c0cd542cce91d66ac1a863d2634ad845f6f5f525
SIZE (Term-TermKey-0.17.tar.gz) = 34654

View file

@ -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.

View file

@ -0,0 +1,3 @@
%%SITE_ARCH%%/Term/TermKey.pm
%%SITE_ARCH%%/auto/Term/TermKey/TermKey.so
%%PERL5_MAN3%%/Term::TermKey.3.gz