aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjim <jim@FreeBSD.org>2000-11-01 02:39:27 +0800
committerjim <jim@FreeBSD.org>2000-11-01 02:39:27 +0800
commit678f0b2816d5686c74906432beb666986fef3ef3 (patch)
tree15353aad1023508cca66e8af6d9229774a15585c /devel
parenta5d94ad1ef8fc6dc008ead7c4cd7a75848fb92b0 (diff)
downloadfreebsd-ports-gnome-678f0b2816d5686c74906432beb666986fef3ef3.tar.gz
freebsd-ports-gnome-678f0b2816d5686c74906432beb666986fef3ef3.tar.zst
freebsd-ports-gnome-678f0b2816d5686c74906432beb666986fef3ef3.zip
Import of p5-Time-Period.
This is a perl5 module that contains code to deal with time periods. Submitted by: Nick Esborn <nick@netdot.net>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Time-Period/Makefile27
-rw-r--r--devel/p5-Time-Period/distinfo1
-rw-r--r--devel/p5-Time-Period/pkg-comment1
-rw-r--r--devel/p5-Time-Period/pkg-descr9
-rw-r--r--devel/p5-Time-Period/pkg-plist3
6 files changed, 42 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 129c86b6263c..6892d8aec102 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -239,6 +239,7 @@
SUBDIR += p5-Tie-DB_FileLock
SUBDIR += p5-Time
SUBDIR += p5-Time-HiRes
+ SUBDIR += p5-Time-Period
SUBDIR += p5-TimeDate
SUBDIR += p5-TraceFuncs
SUBDIR += patch
diff --git a/devel/p5-Time-Period/Makefile b/devel/p5-Time-Period/Makefile
new file mode 100644
index 000000000000..6797abe89895
--- /dev/null
+++ b/devel/p5-Time-Period/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: p5-Time-Period
+# Date created: October 30th, 2000
+# Whom: Nicholas Esborn <nick@netdot.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Time-Period
+PORTVERSION= 1.20
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Time
+PKGNAMEPREFIX= p5-
+DISTNAME= Period-${PORTVERSION}
+
+MAINTAINER= nick@netdot.net
+
+USE_PERL5= YES
+
+MAN3= Time::Period.3
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+do-configure:
+ @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Time-Period/distinfo b/devel/p5-Time-Period/distinfo
new file mode 100644
index 000000000000..c2f206a2146f
--- /dev/null
+++ b/devel/p5-Time-Period/distinfo
@@ -0,0 +1 @@
+MD5 (Period-1.20.tar.gz) = 63b073af8ec96e7fa48801cd6fcccdd1
diff --git a/devel/p5-Time-Period/pkg-comment b/devel/p5-Time-Period/pkg-comment
new file mode 100644
index 000000000000..b991b585509c
--- /dev/null
+++ b/devel/p5-Time-Period/pkg-comment
@@ -0,0 +1 @@
+A perl module that contains code to deal with time periods
diff --git a/devel/p5-Time-Period/pkg-descr b/devel/p5-Time-Period/pkg-descr
new file mode 100644
index 000000000000..02505c931a46
--- /dev/null
+++ b/devel/p5-Time-Period/pkg-descr
@@ -0,0 +1,9 @@
+Period.pm is a Perl module that contains code to deal with time periods.
+Currently, there is only a function in this module. That function is
+called inPeriod().
+
+inPeriod() determines if a given time is within a given time period.
+It will return 1 if it is, 0 if not, and -1 if either the time or the
+period passed to it were malformed. The time is specified in non-leap
+year seconds past January 1, 1970, as per the time() function. The period
+is a string which is of the form described in Period's man page.
diff --git a/devel/p5-Time-Period/pkg-plist b/devel/p5-Time-Period/pkg-plist
new file mode 100644
index 000000000000..5b5ba7910812
--- /dev/null
+++ b/devel/p5-Time-Period/pkg-plist
@@ -0,0 +1,3 @@
+lib/perl5/site_perl/%%PERL_VER%%/Time/Period.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Time/Period/.packlist
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Time/Period