ports/102022: [NEW PORT] devel/p5-Test-MockTime: Replaces actual time with simulated time

Timur I. Bakeyev timur at com.bat.ru
Mon Aug 14 15:40:23 UTC 2006


>Number:         102022
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-Test-MockTime: Replaces actual time with simulated time
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 14 15:40:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Timur I. Bakeyev
>Release:        FreeBSD 5.4-RELEASE
>Organization:
>Environment:
FreeBSD devil.blinck.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Tue Oct 18 10:05:03 CEST 2005     alexis at devil.blinck.com:/usr/src/sys/i386/compile/DEVIL  i386

>Description:

>How-To-Repeat:

>Fix:
# 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-Test-MockModule
#       p5-Test-MockModule/Makefile
#       p5-Test-MockModule/distinfo
#       p5-Test-MockModule/pkg-descr
#       p5-Test-MockModule/pkg-plist
#
echo c - p5-Test-MockModule
mkdir -p p5-Test-MockModule > /dev/null 2>&1
echo x - p5-Test-MockModule/Makefile
sed 's/^X//' >p5-Test-MockModule/Makefile << 'END-of-p5-Test-MockModule/Makefile'
X# New ports collection makefile for:   devel/p5-Test-MockTime
X# Date created:                                1 Aug 2006
X# Whom:                                        Timur I. Bakeyev <bat at cpan.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      Test-MockTime
XPORTVERSION=   0.03
XCATEGORIES=    devel perl5
XMASTER_SITES=  ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=    Test
XPKGNAMEPREFIX= p5-
X
XMAINTAINER=    bat at cpan.org
XCOMMENT=       Replaces actual time with simulated time
X
XBUILD_DEPENDS= ${SITE_PERL}/Time/Local.pm:${PORTSDIR}/devel/p5-Time-Local \
X               ${SITE_PERL}/${PERL_ARCH}/Time/Piece.pm:${PORTSDIR}/devel/p5-Time-Piece
XRUN_DEPENDS=   ${BUILD_DEPENDS}
XBUILD_DEPENDS+=        ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
X
XPERL_CONFIGURE=        yes
X
XMAN3=          Test::MockTime.3
X
X.include <bsd.port.mk>
END-of-p5-Test-MockModule/Makefile
echo x - p5-Test-MockModule/distinfo
sed 's/^X//' >p5-Test-MockModule/distinfo << 'END-of-p5-Test-MockModule/distinfo'
XMD5 (Test-MockTime-0.03.tar.gz) = e4f3cf8943dcde773071cba974ac5ed9
XSIZE (Test-MockTime-0.03.tar.gz) = 3069
END-of-p5-Test-MockModule/distinfo
echo x - p5-Test-MockModule/pkg-descr
sed 's/^X//' >p5-Test-MockModule/pkg-descr << 'END-of-p5-Test-MockModule/pkg-descr'
XTest::MockTime was created to enable test suites to test code at
Xspecific points in time. Specifically it overrides localtime, gmtime and
Xtime at compile time and then relies on the user supplying a mock time
Xvia set_relative_time, set_absolute_time or set_fixed_time to alter
Xfuture calls to gmtime, time or localtime.
X
XWWW: http://search.cpan.org/dist/Test-MockTime/
END-of-p5-Test-MockModule/pkg-descr
echo x - p5-Test-MockModule/pkg-plist
sed 's/^X//' >p5-Test-MockModule/pkg-plist << 'END-of-p5-Test-MockModule/pkg-plist'
X%%SITE_PERL%%/Test/MockTime.pm
X%%SITE_PERL%%/Test/MockTime.pod
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockTime/.packlist
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockTime
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test
X at dirrmtry %%SITE_PERL%%/Test
END-of-p5-Test-MockModule/pkg-plist
exit


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



More information about the freebsd-ports-bugs mailing list