diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2024-01-09 23:02:47 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2024-01-09 23:02:47 +0000 |
commit | a5d69a42ba69460485f8bd9c3359c3fa3954e051 (patch) | |
tree | 9821f198c13cf8928275a5a369805ebb15d237ab | |
parent | 1c3d203e8a5476b616fd82adb7b5f98274ef89db (diff) | |
download | ports-a5d69a42ba69460485f8bd9c3359c3fa3954e051.tar.gz ports-a5d69a42ba69460485f8bd9c3359c3fa3954e051.zip |
devel/p5-Tie-Sub: Add new port
The module ties the subroutine to a hash. The subroutine is executed
at fetch hash.
Approved by: hrs (mentor)
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Tie-Sub/Makefile | 29 | ||||
-rw-r--r-- | devel/p5-Tie-Sub/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Tie-Sub/files/patch-t_11__test__examples.t | 11 | ||||
-rw-r--r-- | devel/p5-Tie-Sub/pkg-descr | 2 |
5 files changed, 46 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index d3ff9ce956b7..830d248fdaa7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3701,6 +3701,7 @@ SUBDIR += p5-Tie-Restore SUBDIR += p5-Tie-ShareLite SUBDIR += p5-Tie-Simple + SUBDIR += p5-Tie-Sub SUBDIR += p5-Tie-ToObject SUBDIR += p5-Tie-Util SUBDIR += p5-Tie-iCal diff --git a/devel/p5-Tie-Sub/Makefile b/devel/p5-Tie-Sub/Makefile new file mode 100644 index 000000000000..20d96a8b36a6 --- /dev/null +++ b/devel/p5-Tie-Sub/Makefile @@ -0,0 +1,29 @@ +PORTNAME= Tie-Sub +PORTVERSION= 1.001 +CATEGORIES= devel +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= nork@FreeBSD.org +COMMENT= Tying a subroutine, function or method to a hash +WWW= https://metacpan.org/release/Tie-Sub + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +RUN_DEPENDS= p5-Params-Validate>0:devel/p5-Params-Validate +TEST_DEPENDS= p5-Test-NoWarnings>=0:devel/p5-Test-NoWarnings \ + p5-Test-Perl-Critic>=0:textproc/p5-Test-Perl-Critic \ + p5-Test-Pod-Coverage>=0:devel/p5-Test-Pod-Coverage \ + p5-Test-Pod>0:devel/p5-Test-Pod + +USES= perl5 # dos2unix: test not work # +USE_PERL5= configure + +PLIST_FILES= ${SITE_MAN3_REL}/Tie::Sub.3.gz \ + ${SITE_PERL_REL}/Tie/Sub.pm + +NO_ARCH= yes +TEST_ENV= AUTHOR_TESTING=1 # RELEASE_TESTING=1: test not work # + +.include <bsd.port.mk> diff --git a/devel/p5-Tie-Sub/distinfo b/devel/p5-Tie-Sub/distinfo new file mode 100644 index 000000000000..3601e43e48f6 --- /dev/null +++ b/devel/p5-Tie-Sub/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1697404202 +SHA256 (Tie-Sub-1.001.tar.gz) = ef71a04826d1362b2b76ecb21ce173c37d38a47a9fec283aa982435890f4f1b1 +SIZE (Tie-Sub-1.001.tar.gz) = 8593 diff --git a/devel/p5-Tie-Sub/files/patch-t_11__test__examples.t b/devel/p5-Tie-Sub/files/patch-t_11__test__examples.t new file mode 100644 index 000000000000..f3ff36c05009 --- /dev/null +++ b/devel/p5-Tie-Sub/files/patch-t_11__test__examples.t @@ -0,0 +1,11 @@ +--- t/11_test_examples.t.orig 2012-08-18 22:03:49 UTC ++++ t/11_test_examples.t +@@ -55,7 +55,7 @@ EOT
+ for my $data (@data) {
+ my $dir = getcwd();
+ chdir("$dir/$data->{path}");
+- my $result = qx{perl $data->{script} 2>&3};
++ my $result = qx{perl $data->{script} 2>/dev/null };
+ chdir($dir);
+ eq_or_diff(
+ $result,
diff --git a/devel/p5-Tie-Sub/pkg-descr b/devel/p5-Tie-Sub/pkg-descr new file mode 100644 index 000000000000..b976d852fc25 --- /dev/null +++ b/devel/p5-Tie-Sub/pkg-descr @@ -0,0 +1,2 @@ +The module ties the subroutine to a hash. The subroutine is executed +at fetch hash. |