summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2013-11-26 23:49:20 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2013-11-26 23:49:20 +0000
commitdd02f66f10a7703c329c1054d1cd3d66e0318daf (patch)
treecd52d0bf77cffd22ddf289cfa84eb46b81cf7987 /devel
parentUpdate to new release candidate #4. (diff)
Notes
Notes: svn path=/head/; revision=334980
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Date-Extract/Makefile24
-rw-r--r--devel/p5-Date-Extract/distinfo2
-rw-r--r--devel/p5-Date-Extract/pkg-descr8
-rw-r--r--devel/p5-Date-Extract/pkg-plist6
5 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7fc6d749b35f..ca50a6930d69 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1740,6 +1740,7 @@
SUBDIR += p5-Date-Calc-XS
SUBDIR += p5-Date-DayOfWeek
SUBDIR += p5-Date-Easter
+ SUBDIR += p5-Date-Extract
SUBDIR += p5-Date-EzDate
SUBDIR += p5-Date-Holidays-DK
SUBDIR += p5-Date-ICal
diff --git a/devel/p5-Date-Extract/Makefile b/devel/p5-Date-Extract/Makefile
new file mode 100644
index 000000000000..0197cc1dceae
--- /dev/null
+++ b/devel/p5-Date-Extract/Makefile
@@ -0,0 +1,24 @@
+# Created by: Matthew Seaman <matthew@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Date-Extract
+PORTVERSION= 0.04
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Extract probable dates from strings
+
+BUILD_DEPENDS= p5-DateTime-Format-Natural>0:${PORTSDIR}/devel/p5-DateTime-Format-Natural \
+ p5-Class-Data-Inheritable>0:${PORTSDIR}/devel/p5-Class-Data-Inheritable
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-MockTime>=0:${PORTSDIR}/devel/p5-Test-MockTime
+
+USES= perl5
+USE_PERL5= configure
+
+regression-test: build
+ @cd ${WRKSRC} && ${MAKE} test
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Date-Extract/distinfo b/devel/p5-Date-Extract/distinfo
new file mode 100644
index 000000000000..563afdcf10cf
--- /dev/null
+++ b/devel/p5-Date-Extract/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Date-Extract-0.04.tar.gz) = 7124d9e8d745544080f612a42d8cf6b3a27eda0f4ec607d25d255ddaadb1957a
+SIZE (Date-Extract-0.04.tar.gz) = 27262
diff --git a/devel/p5-Date-Extract/pkg-descr b/devel/p5-Date-Extract/pkg-descr
new file mode 100644
index 000000000000..01b7dde139d7
--- /dev/null
+++ b/devel/p5-Date-Extract/pkg-descr
@@ -0,0 +1,8 @@
+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.
+
+WWW: http://search.cpan.org/dist/Date-Extract/
diff --git a/devel/p5-Date-Extract/pkg-plist b/devel/p5-Date-Extract/pkg-plist
new file mode 100644
index 000000000000..92cb8331a716
--- /dev/null
+++ b/devel/p5-Date-Extract/pkg-plist
@@ -0,0 +1,6 @@
+%%PERL5_MAN3%%/Date::Extract.3.gz
+%%SITE_PERL%%/Date/Extract.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Date/Extract/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Date/Extract
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Date
+@dirrmtry %%SITE_PERL%%/Date