ports/100470: [NEW PORT] devel/p5-Time-Duration-Parse: Parse string that represents time duration

Gea-Suan Lin gslin at gslin.org
Tue Jul 18 10:50:13 UTC 2006


>Number:         100470
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-Time-Duration-Parse: Parse string that represents time duration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 18 10:50:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Tinderbox log:

  http://tb.gslin.org/logs/4.11-FreeBSD-Perl5/p5-Time-Duration-Parse-0.02.log
  http://tb.gslin.org/logs/4.11-FreeBSD-Perl58/p5-Time-Duration-Parse-0.02.log
  http://tb.gslin.org/logs/5.5-FreeBSD/p5-Time-Duration-Parse-0.02.log
  http://tb.gslin.org/logs/6-STABLE/p5-Time-Duration-Parse-0.02.log

Time::Duration::Parse is a module to parse human readable duration
strings like 2 minutes and 3 seconds to seconds.

It does the opposite of duration_exact function in Time::Duration and
is roundtrip safe. So, the following is always true.

  use Time::Duration::Parse;
  use Time::Duration;

  my $seconds = int rand 100000;
  is( parse_duration(duration_exact($seconds)), $seconds );

WWW:	http://search.cpan.org/dist/Time-Duration-Parse/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-Time-Duration-Parse-0.02.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Time-Duration-Parse
#	p5-Time-Duration-Parse/pkg-descr
#	p5-Time-Duration-Parse/Makefile
#	p5-Time-Duration-Parse/pkg-plist
#	p5-Time-Duration-Parse/distinfo
#
echo c - p5-Time-Duration-Parse
mkdir -p p5-Time-Duration-Parse > /dev/null 2>&1
echo x - p5-Time-Duration-Parse/pkg-descr
sed 's/^X//' >p5-Time-Duration-Parse/pkg-descr << 'END-of-p5-Time-Duration-Parse/pkg-descr'
XTime::Duration::Parse is a module to parse human readable duration
Xstrings like 2 minutes and 3 seconds to seconds.
X
XIt does the opposite of duration_exact function in Time::Duration and
Xis roundtrip safe. So, the following is always true.
X
X  use Time::Duration::Parse;
X  use Time::Duration;
X
X  my $seconds = int rand 100000;
X  is( parse_duration(duration_exact($seconds)), $seconds );
X
XWWW:	http://search.cpan.org/dist/Time-Duration-Parse/
END-of-p5-Time-Duration-Parse/pkg-descr
echo x - p5-Time-Duration-Parse/Makefile
sed 's/^X//' >p5-Time-Duration-Parse/Makefile << 'END-of-p5-Time-Duration-Parse/Makefile'
X# New ports collection makefile for:	p5-Time-Duration-Parse
X# Date created:		2006-07-18
X# Whom:			Gea-Suan Lin <gslin at gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Time-Duration-Parse
XPORTVERSION=	0.02
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Time
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	gslin at gslin.org
XCOMMENT=	Parse string that represents time duration
X
XRUN_DEPENDS=	${SITE_PERL}/Exporter/Lite.pm:${PORTSDIR}/devel/p5-Exporter-Lite
X
XPERL_CONFIGURE=	yes
X
XMAN3=		Time::Duration::Parse.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500600
XIGNORE=		requires perl 5.6.0 or later. Install lang/perl5.8 and try again
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Time-Duration-Parse/Makefile
echo x - p5-Time-Duration-Parse/pkg-plist
sed 's/^X//' >p5-Time-Duration-Parse/pkg-plist << 'END-of-p5-Time-Duration-Parse/pkg-plist'
X at comment $FreeBSD$
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration/Parse/.packlist
X%%SITE_PERL%%/Time/Duration/Parse.pm
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration/Parse
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time
X at dirrmtry %%SITE_PERL%%/Time/Duration
X at dirrmtry %%SITE_PERL%%/Time
END-of-p5-Time-Duration-Parse/pkg-plist
echo x - p5-Time-Duration-Parse/distinfo
sed 's/^X//' >p5-Time-Duration-Parse/distinfo << 'END-of-p5-Time-Duration-Parse/distinfo'
XMD5 (Time-Duration-Parse-0.02.tar.gz) = 56e1c1674a5180d32927a130fd739d96
XSHA256 (Time-Duration-Parse-0.02.tar.gz) = 620fcf34768ee636beeb6600d966f272ac10a92907f0dae384f9ae32275bdf5a
XSIZE (Time-Duration-Parse-0.02.tar.gz) = 17725
END-of-p5-Time-Duration-Parse/distinfo
exit
--- p5-Time-Duration-Parse-0.02.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list