From e4228f0bacd9b557bb85eab3cd2026ed730b3a5c Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Thu, 29 Apr 2021 22:10:04 +0800 Subject: [PATCH] devel/p5-Tickit: Add p5-Tickit 0.71 Tickit is a high-level toolkit for creating full-screen terminal-based interactive programs. It allows programs to be written in an abstracted way, working with a tree of widget objects, to represent the layout of the interface and implement its behaviours. Its supported terminal features includes a rich set of rendering attributes (bold, underline, italic, 256-colours, etc), support for mouse including wheel and position events above the 224th column and arbitrary modified key input via libtermkey (all of these will require a supporting terminal as well). It also supports having multiple instances and non-blocking or asynchronous control. WWW: https://metacpan.org/release/Tickit --- devel/Makefile | 1 + devel/p5-Tickit/Makefile | 32 ++++++++++++++++++++++++++++ devel/p5-Tickit/distinfo | 3 +++ devel/p5-Tickit/files/patch-Build.PL | 11 ++++++++++ devel/p5-Tickit/pkg-descr | 12 +++++++++++ devel/p5-Tickit/pkg-plist | 26 ++++++++++++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 devel/p5-Tickit/Makefile create mode 100644 devel/p5-Tickit/distinfo create mode 100644 devel/p5-Tickit/files/patch-Build.PL create mode 100644 devel/p5-Tickit/pkg-descr create mode 100644 devel/p5-Tickit/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 497a49f949413..f7a01262d861c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3526,6 +3526,7 @@ SUBDIR += p5-Thrift SUBDIR += p5-Thrift-XS SUBDIR += p5-Throwable + SUBDIR += p5-Tickit SUBDIR += p5-Tie-Array-Pack SUBDIR += p5-Tie-Array-Sorted SUBDIR += p5-Tie-CPHash diff --git a/devel/p5-Tickit/Makefile b/devel/p5-Tickit/Makefile new file mode 100644 index 0000000000000..74b4b6aff8cd8 --- /dev/null +++ b/devel/p5-Tickit/Makefile @@ -0,0 +1,32 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= Tickit +PORTVERSION= 0.71 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:PEVANS +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Terminal Interface Construction KIT + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= libtickit>=0.4.0:devel/libtickit \ + p5-Module-Build-Using-PkgConfig>=0:devel/p5-Module-Build-Using-PkgConfig \ + ${RUN_DEPENDS} +LIB_DEPENDS= libtickit.so:devel/libtickit +RUN_DEPENDS= p5-Struct-Dumb>=0.04:devel/p5-Struct-Dumb +TEST_DEPENDS= p5-Test-Fatal>=0:devel/p5-Test-Fatal \ + p5-Test-HexString>=0:devel/p5-Test-HexString \ + p5-Test-Refcount>=0:devel/p5-Test-Refcount + +USES= perl5 +USE_PERL5= modbuild + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Tickit/Tickit.so + +.include diff --git a/devel/p5-Tickit/distinfo b/devel/p5-Tickit/distinfo new file mode 100644 index 0000000000000..ca502f70bfe02 --- /dev/null +++ b/devel/p5-Tickit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619569395 +SHA256 (Tickit-0.71.tar.gz) = b309dd514abae7408bee9dd218ed5041e0dbe1578eca9608eadb84dec0717808 +SIZE (Tickit-0.71.tar.gz) = 121617 diff --git a/devel/p5-Tickit/files/patch-Build.PL b/devel/p5-Tickit/files/patch-Build.PL new file mode 100644 index 0000000000000..1461a4014a712 --- /dev/null +++ b/devel/p5-Tickit/files/patch-Build.PL @@ -0,0 +1,11 @@ +--- Build.PL.orig 2020-05-25 11:01:56 UTC ++++ Build.PL +@@ -27,8 +27,6 @@ my $build = Module::Build::Using::PkgConfig->new( + + $build->use_pkgconfig( "tickit", + atleast_version => "0.4.0", +- alien => "Alien::libtickit", +- alien_version => "0.09", + ); + + $build->create_build_script; diff --git a/devel/p5-Tickit/pkg-descr b/devel/p5-Tickit/pkg-descr new file mode 100644 index 0000000000000..f2e431a6ff49e --- /dev/null +++ b/devel/p5-Tickit/pkg-descr @@ -0,0 +1,12 @@ +Tickit is a high-level toolkit for creating full-screen terminal-based +interactive programs. It allows programs to be written in an abstracted way, +working with a tree of widget objects, to represent the layout of the interface +and implement its behaviours. + +Its supported terminal features includes a rich set of rendering attributes +(bold, underline, italic, 256-colours, etc), support for mouse including wheel +and position events above the 224th column and arbitrary modified key input via +libtermkey (all of these will require a supporting terminal as well). It also +supports having multiple instances and non-blocking or asynchronous control. + +WWW: https://metacpan.org/release/Tickit diff --git a/devel/p5-Tickit/pkg-plist b/devel/p5-Tickit/pkg-plist new file mode 100644 index 0000000000000..039065861979e --- /dev/null +++ b/devel/p5-Tickit/pkg-plist @@ -0,0 +1,26 @@ +%%SITE_ARCH%%/Tickit.pm +%%SITE_ARCH%%/Tickit/Debug.pm +%%SITE_ARCH%%/Tickit/Event.pm +%%SITE_ARCH%%/Tickit/Pen.pm +%%SITE_ARCH%%/Tickit/Rect.pm +%%SITE_ARCH%%/Tickit/RectSet.pm +%%SITE_ARCH%%/Tickit/RenderBuffer.pm +%%SITE_ARCH%%/Tickit/StringPos.pm +%%SITE_ARCH%%/Tickit/Term.pm +%%SITE_ARCH%%/Tickit/Test.pm +%%SITE_ARCH%%/Tickit/Test/MockTerm.pm +%%SITE_ARCH%%/Tickit/Utils.pm +%%SITE_ARCH%%/Tickit/Window.pm +%%SITE_ARCH%%/auto/Tickit/Tickit.so +%%PERL5_MAN3%%/Tickit.3.gz +%%PERL5_MAN3%%/Tickit::Debug.3.gz +%%PERL5_MAN3%%/Tickit::Event.3.gz +%%PERL5_MAN3%%/Tickit::Pen.3.gz +%%PERL5_MAN3%%/Tickit::Rect.3.gz +%%PERL5_MAN3%%/Tickit::RectSet.3.gz +%%PERL5_MAN3%%/Tickit::RenderBuffer.3.gz +%%PERL5_MAN3%%/Tickit::StringPos.3.gz +%%PERL5_MAN3%%/Tickit::Term.3.gz +%%PERL5_MAN3%%/Tickit::Test.3.gz +%%PERL5_MAN3%%/Tickit::Utils.3.gz +%%PERL5_MAN3%%/Tickit::Window.3.gz