SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
devel/p5-Date-Extract/Makefile
Normal file
20
devel/p5-Date-Extract/Makefile
Normal 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>
|
2
devel/p5-Date-Extract/distinfo
Normal file
2
devel/p5-Date-Extract/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Date-Extract-0.07.tar.gz) = +geIBK3k7uwd4UcuDguwR65i5MjU1QIHAbnlBXfFuPQ=
|
||||
SIZE (Date-Extract-0.07.tar.gz) = 31982
|
8
devel/p5-Date-Extract/patches/patch-t_05-format_t
Normal file
8
devel/p5-Date-Extract/patches/patch-t_05-format_t
Normal 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');
|
6
devel/p5-Date-Extract/pkg/DESCR
Normal file
6
devel/p5-Date-Extract/pkg/DESCR
Normal 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.
|
2
devel/p5-Date-Extract/pkg/PLIST
Normal file
2
devel/p5-Date-Extract/pkg/PLIST
Normal file
|
@ -0,0 +1,2 @@
|
|||
${P5SITE}/Date/Extract.pm
|
||||
@man man/man3p/Date::Extract.3p
|
Loading…
Add table
Add a link
Reference in a new issue