git: d0488c356061 - main - devel/p5-Convert-Age: New port:

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Wed, 17 Jul 2024 01:25:09 UTC
The branch main has been updated by zi:

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

commit d0488c35606149092ac407c1c7619a261e8139fa
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2024-07-17 01:24:41 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2024-07-17 01:24:41 +0000

    devel/p5-Convert-Age: New port:
    
    This is a rather simple Perl module for dealing with time intervals.
    Convert 189988007 seconds to compact form 6y7d10h26m47s.
    Convert compact 5h37m5s to seconds 20225.
---
 devel/Makefile                 |  1 +
 devel/p5-Convert-Age/Makefile  | 17 +++++++++++++++++
 devel/p5-Convert-Age/distinfo  |  3 +++
 devel/p5-Convert-Age/pkg-descr |  3 +++
 devel/p5-Convert-Age/pkg-plist |  2 ++
 5 files changed, 26 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index e9dee5dc4a56..a9aa0ae362d9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2171,6 +2171,7 @@
     SUBDIR += p5-Const-Fast
     SUBDIR += p5-Context-Preserve
     SUBDIR += p5-Contextual-Return
+    SUBDIR += p5-Convert-Age
     SUBDIR += p5-Convert-Scalar
     SUBDIR += p5-Coro
     SUBDIR += p5-Curses
diff --git a/devel/p5-Convert-Age/Makefile b/devel/p5-Convert-Age/Makefile
new file mode 100644
index 000000000000..d880edaec79e
--- /dev/null
+++ b/devel/p5-Convert-Age/Makefile
@@ -0,0 +1,17 @@
+PORTNAME=	Convert-Age
+PORTVERSION=	0.04
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:CFEDDE
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	perl@FreeBSD.org
+COMMENT=	Convert integer seconds into a compact form and back
+WWW=		https://metacpan.org/pod/Convert::Age
+
+LICENSE=	ARTPERL10
+
+USES=		perl5 shebangfix
+USE_PERL5=	configure
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Convert-Age/distinfo b/devel/p5-Convert-Age/distinfo
new file mode 100644
index 000000000000..a2cabb3745b8
--- /dev/null
+++ b/devel/p5-Convert-Age/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1721149805
+SHA256 (Convert-Age-0.04.tar.gz) = 45c11c728e022770f646db40d85f5ab3223f1fa2297f59f73e4b60ba1f489154
+SIZE (Convert-Age-0.04.tar.gz) = 3644
diff --git a/devel/p5-Convert-Age/pkg-descr b/devel/p5-Convert-Age/pkg-descr
new file mode 100644
index 000000000000..c8b3d68119db
--- /dev/null
+++ b/devel/p5-Convert-Age/pkg-descr
@@ -0,0 +1,3 @@
+This is a rather simple Perl module for dealing with time intervals.
+Convert 189988007 seconds to compact form 6y7d10h26m47s.
+Convert compact 5h37m5s to seconds 20225.
diff --git a/devel/p5-Convert-Age/pkg-plist b/devel/p5-Convert-Age/pkg-plist
new file mode 100644
index 000000000000..7848f2baa0d0
--- /dev/null
+++ b/devel/p5-Convert-Age/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Convert/Age.pm
+%%PERL5_MAN3%%/Convert::Age.3.gz