1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add p5-Test-MockTime 0.03, replaces actual time with simulated time.

PR:		ports/102022
Submitted by:	Timur I. Bakeyev <bat at cpan.org>
This commit is contained in:
Anton Berezin 2006-08-15 09:58:12 +00:00
parent 2bc4546408
commit dc3f6ed097
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170688
5 changed files with 50 additions and 0 deletions

View File

@ -1379,6 +1379,7 @@
SUBDIR += p5-Test-MockModule
SUBDIR += p5-Test-MockObject
SUBDIR += p5-Test-MockRandom
SUBDIR += p5-Test-MockTime
SUBDIR += p5-Test-NoWarnings
SUBDIR += p5-Test-Number-Delta
SUBDIR += p5-Test-Output

View File

@ -0,0 +1,33 @@
# New ports collection makefile for: devel/p5-Test-MockTime
# Date created: 1 Aug 2006
# Whom: Timur I. Bakeyev <bat@cpan.org>
#
# $FreeBSD$
#
PORTNAME= Test-MockTime
PORTVERSION= 0.03
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Test
PKGNAMEPREFIX= p5-
MAINTAINER= bat@cpan.org
COMMENT= Replaces actual time with simulated time
BUILD_DEPENDS= ${SITE_PERL}/Time/Local.pm:${PORTSDIR}/devel/p5-Time-Local \
${SITE_PERL}/${PERL_ARCH}/Time/Piece.pm:${PORTSDIR}/devel/p5-Time-Piece
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
PERL_CONFIGURE= yes
MAN3= Test::MockTime.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Test-MockTime-0.03.tar.gz) = e4f3cf8943dcde773071cba974ac5ed9
SHA256 (Test-MockTime-0.03.tar.gz) = 71d98c389b5b39e04b9d578e741f1b0df31cde6713d73739c34f5600651dd0f5
SIZE (Test-MockTime-0.03.tar.gz) = 3069

View File

@ -0,0 +1,7 @@
Test::MockTime was created to enable test suites to test code at
specific points in time. Specifically it overrides localtime, gmtime and
time at compile time and then relies on the user supplying a mock time
via set_relative_time, set_absolute_time or set_fixed_time to alter
future calls to gmtime, time or localtime.
WWW: http://search.cpan.org/dist/Test-MockTime/

View File

@ -0,0 +1,6 @@
%%SITE_PERL%%/Test/MockTime.pm
%%SITE_PERL%%/Test/MockTime.pod
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockTime/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockTime
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test
@dirrmtry %%SITE_PERL%%/Test