From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 18 10:50:13 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 850B016A4DF for ; Tue, 18 Jul 2006 10:50:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA1D843D53 for ; Tue, 18 Jul 2006 10:50:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6IAoCdb002994 for ; Tue, 18 Jul 2006 10:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6IAoCcM002993; Tue, 18 Jul 2006 10:50:12 GMT (envelope-from gnats) Resent-Date: Tue, 18 Jul 2006 10:50:12 GMT Resent-Message-Id: <200607181050.k6IAoCcM002993@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gea-Suan Lin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1089916A4DF for ; Tue, 18 Jul 2006 10:47:18 +0000 (UTC) (envelope-from gslin@netnews.NCTU.edu.tw) Received: from netnews.NCTU.edu.tw (ccreader.nctu.edu.tw [140.113.54.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id A44BE43D53 for ; Tue, 18 Jul 2006 10:47:17 +0000 (GMT) (envelope-from gslin@netnews.NCTU.edu.tw) Received: by netnews.NCTU.edu.tw (Postfix, from userid 1000) id B7AF71DE; Tue, 18 Jul 2006 18:47:13 +0800 (CST) Message-Id: <20060718104713.B7AF71DE@netnews.NCTU.edu.tw> Date: Tue, 18 Jul 2006 18:47:13 +0800 (CST) From: Gea-Suan Lin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gslin@gslin.org Subject: ports/100470: [NEW PORT] devel/p5-Time-Duration-Parse: Parse string that represents time duration X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 10:50:13 -0000 >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 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@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 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 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@comment $FreeBSD$ X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration/Parse/.packlist X%%SITE_PERL%%/Time/Duration/Parse.pm X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration/Parse X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time/Duration X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Time X@dirrmtry %%SITE_PERL%%/Time/Duration X@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: