git: c33e70ed0859 - main - x11-toolkits/p5-Test-Tk: Add p5-Test-Tk 3.01
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jul 2023 21:37:21 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c33e70ed0859dc51843f93dda6e800a46632fb5a commit c33e70ed0859dc51843f93dda6e800a46632fb5a Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-07-09 21:21:14 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-07-09 21:34:16 +0000 x11-toolkits/p5-Test-Tk: Add p5-Test-Tk 3.01 Test::Tk aims to assist in the testing of Perl/Tk widgets. createapp creates a MainWindow widget and places it in the variable $app. It sets a timer with delay $delay to start the internal test routine. starttesting launches the main loop and sets a timer with delay $delay to start the internal test routine. When testing is done the MainWindow is destroyed and the test script continues. You can set a command line parameter show to test command on the command line. eg perl -Mblib t/My-Test.t show. The application will not terminate so you can visually inspect it. It will perform two tests. You need to account for these when you set your number of tests. If you are not on Windows and no XServer is running, all tests will be skipped. --- x11-toolkits/Makefile | 1 + x11-toolkits/p5-Test-Tk/Makefile | 23 +++++++++++++++++++++++ x11-toolkits/p5-Test-Tk/distinfo | 3 +++ x11-toolkits/p5-Test-Tk/pkg-descr | 18 ++++++++++++++++++ x11-toolkits/p5-Test-Tk/pkg-plist | 2 ++ 5 files changed, 47 insertions(+) diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index ddd78cc4e7e5..ad7921f00e9b 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -122,6 +122,7 @@ SUBDIR += p5-Gtk3-SimpleList SUBDIR += p5-Pango SUBDIR += p5-Prima + SUBDIR += p5-Test-Tk SUBDIR += p5-Tk SUBDIR += p5-Tk-Action SUBDIR += p5-Tk-Autoscroll diff --git a/x11-toolkits/p5-Test-Tk/Makefile b/x11-toolkits/p5-Test-Tk/Makefile new file mode 100644 index 000000000000..63b2f9eb4584 --- /dev/null +++ b/x11-toolkits/p5-Test-Tk/Makefile @@ -0,0 +1,23 @@ +PORTNAME= Test-Tk +PORTVERSION= 3.01 +CATEGORIES= x11-toolkits perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Testing Tk widgets +WWW= https://metacpan.org/dist/Test-Tk + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep \ + p5-Tk>=0:x11-toolkits/p5-Tk + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/x11-toolkits/p5-Test-Tk/distinfo b/x11-toolkits/p5-Test-Tk/distinfo new file mode 100644 index 000000000000..6e590acdfe9a --- /dev/null +++ b/x11-toolkits/p5-Test-Tk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688901999 +SHA256 (Test-Tk-3.01.tar.gz) = 4c6372679b73c3a89bb85d00f04d6b610e98f7acf222cbc7a327c53aafbe724e +SIZE (Test-Tk-3.01.tar.gz) = 4337 diff --git a/x11-toolkits/p5-Test-Tk/pkg-descr b/x11-toolkits/p5-Test-Tk/pkg-descr new file mode 100644 index 000000000000..a03fe2d35aad --- /dev/null +++ b/x11-toolkits/p5-Test-Tk/pkg-descr @@ -0,0 +1,18 @@ +Test::Tk aims to assist in the testing of Perl/Tk widgets. + +createapp creates a MainWindow widget and places it in the variable $app. It +sets a timer with delay $delay to start the internal test routine. + +starttesting launches the main loop and sets a timer with delay $delay to start +the internal test routine. + +When testing is done the MainWindow is destroyed and the test script continues. + +You can set a command line parameter show to test command on the command line. +eg perl -Mblib t/My-Test.t show. The application will not terminate so you can +visually inspect it. + +It will perform two tests. You need to account for these when you set your +number of tests. + +If you are not on Windows and no XServer is running, all tests will be skipped. diff --git a/x11-toolkits/p5-Test-Tk/pkg-plist b/x11-toolkits/p5-Test-Tk/pkg-plist new file mode 100644 index 000000000000..a67e2332b3b3 --- /dev/null +++ b/x11-toolkits/p5-Test-Tk/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Test/Tk.pm +%%PERL5_MAN3%%/Test::Tk.3.gz