Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2024 23:03:30 GMT
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a5d69a42ba69 - main - devel/p5-Tie-Sub: Add new port
Message-ID:  <202401092303.409N3UFX002270@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by nork:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5d69a42ba69460485f8bd9c3359c3fa3954e051

commit a5d69a42ba69460485f8bd9c3359c3fa3954e051
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2024-01-09 23:02:47 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2024-01-09 23:02:47 +0000

    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)
---
 devel/Makefile                                     |  1 +
 devel/p5-Tie-Sub/Makefile                          | 29 ++++++++++++++++++++++
 devel/p5-Tie-Sub/distinfo                          |  3 +++
 .../p5-Tie-Sub/files/patch-t_11__test__examples.t  | 11 ++++++++
 devel/p5-Tie-Sub/pkg-descr                         |  2 ++
 5 files changed, 46 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401092303.409N3UFX002270>