Skip to content

Commit

Permalink
devel/p5-Term-TermKey: Add new port
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ehaupt committed Nov 1, 2023
1 parent 9bccc8a commit 4bcaeaa
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions 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.
3 changes: 3 additions & 0 deletions 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

0 comments on commit 4bcaeaa

Please sign in to comment.