diff --git a/math/Makefile b/math/Makefile index f970b6802c9b..0fc0ca0a392d 100644 --- a/math/Makefile +++ b/math/Makefile @@ -817,6 +817,7 @@ SUBDIR += p5-Number-WithError SUBDIR += p5-Number-WithError-LaTeX SUBDIR += p5-PDL + SUBDIR += p5-PDL-DateTime SUBDIR += p5-Parse-Range SUBDIR += p5-Roman SUBDIR += p5-Set-IntSpan diff --git a/math/p5-PDL-DateTime/Makefile b/math/p5-PDL-DateTime/Makefile new file mode 100644 index 000000000000..185a663cbffb --- /dev/null +++ b/math/p5-PDL-DateTime/Makefile @@ -0,0 +1,24 @@ +PORTNAME= PDL-DateTime +PORTVERSION= 0.004 +CATEGORIES= math perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Piddle for keeping high precision (microsecond) timestamps +WWW= https://metacpan.org/dist/PDL-DateTime + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-PDL>=2.014:math/p5-PDL \ + p5-Time-Moment>=0.12:devel/p5-Time-Moment +TEST_DEPENDS= p5-Test-Number-Delta>=1.06:devel/p5-Test-Number-Delta + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/math/p5-PDL-DateTime/distinfo b/math/p5-PDL-DateTime/distinfo new file mode 100644 index 000000000000..699b349fdd7b --- /dev/null +++ b/math/p5-PDL-DateTime/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736671129 +SHA256 (PDL-DateTime-0.004.tar.gz) = 2a2720be5d38b43c2a01722381410380194c64c23ee60ebee56862ba988dd32b +SIZE (PDL-DateTime-0.004.tar.gz) = 28968 diff --git a/math/p5-PDL-DateTime/pkg-descr b/math/p5-PDL-DateTime/pkg-descr new file mode 100644 index 000000000000..d57afe0d9b1a --- /dev/null +++ b/math/p5-PDL-DateTime/pkg-descr @@ -0,0 +1,7 @@ +PDL::DateTime is a subclass of PDL piddle for storing date-time values (scalar +piddles, vectors, matrices or generally ND-piddles): +- its PDL type is always LongLong (64-bit signed integer) +- stored values are microseconds since 1970-01-01T00:00:00.000000Z (can be both + positive or negative) +- it is still a piddle so you can do all usual PDL arithmetic + PDL::DateTime + defines some new methods (see below) diff --git a/math/p5-PDL-DateTime/pkg-plist b/math/p5-PDL-DateTime/pkg-plist new file mode 100644 index 000000000000..69e4a119bcd3 --- /dev/null +++ b/math/p5-PDL-DateTime/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_PERL%%/PDL/DateTime.pm +%%SITE_PERL%%/PDL/DateTime.pod +%%PERL5_MAN3%%/PDL::DateTime.3.gz