SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,20 @@
COMMENT = extract probable dates from strings
DISTNAME = Date-Extract-0.07
REVISION = 0
FIX_EXTRACT_PERMISSIONS = Yes
CATEGORIES = devel
# Perl
PERMIT_PACKAGE = Yes
MODULES = cpan
RUN_DEPENDS = devel/p5-Class-Data-Inheritable \
devel/p5-DateTime-Format-Natural>=0.60
TEST_DEPENDS = devel/p5-Test-MockTime-HiRes
PKG_ARCH = *
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (Date-Extract-0.07.tar.gz) = +geIBK3k7uwd4UcuDguwR65i5MjU1QIHAbnlBXfFuPQ=
SIZE (Date-Extract-0.07.tar.gz) = 31982

View file

@ -0,0 +1,8 @@
--- t/05-format.t.orig Thu Jun 5 06:49:52 2014
+++ t/05-format.t Thu Oct 15 09:31:00 2015
@@ -22,4 +22,4 @@ is($verbatim, 'Today', 'returns verbatim text');
$parser = Date::Extract->new(format => 'epoch');
my $epoch = $parser->extract($in);
-is($epoch, 1195171200, 'returns epoch');
+is($epoch, 1195181332, 'returns epoch');

View file

@ -0,0 +1,6 @@
Date::Extract takes an arbitrary block of text, searches it for
something that looks like a date string, and builds a DateTime
object out of it. By design it will produce few false positives.
This means it will not catch nearly everything that looks like a
date string. So if you have the string "do homework for class 2019"
it won't return a DateTime object with the year set to 2019.

View file

@ -0,0 +1,2 @@
${P5SITE}/Date/Extract.pm
@man man/man3p/Date::Extract.3p