Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The module ties the subroutine to a hash. The subroutine is executed at fetch hash. Approved by: hrs (mentor)
- Loading branch information
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1697404202 | ||
SHA256 (Tie-Sub-1.001.tar.gz) = ef71a04826d1362b2b76ecb21ce173c37d38a47a9fec283aa982435890f4f1b1 | ||
SIZE (Tie-Sub-1.001.tar.gz) = 8593 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The module ties the subroutine to a hash. The subroutine is executed | ||
at fetch hash. |