diff options
author | sno <sno@pkgsrc.org> | 2009-05-02 21:19:46 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-05-02 21:19:46 +0000 |
commit | 1fe3acf8fe2954882defb29717aa11c02642d10d (patch) | |
tree | 849deec2aacda8f2f81bfd5115beb62634330855 /time/p5-Test-MockTime | |
parent | 5b712e216500166e5863d9ba007dcb399549cf91 (diff) | |
download | pkgsrc-1fe3acf8fe2954882defb29717aa11c02642d10d.tar.gz |
Importing package for p5 module Test::MockTime version 0.12 as dependency
of upcoming DateTime::Format::Natural update.
This module 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.
Diffstat (limited to 'time/p5-Test-MockTime')
-rw-r--r-- | time/p5-Test-MockTime/DESCR | 5 | ||||
-rw-r--r-- | time/p5-Test-MockTime/Makefile | 19 | ||||
-rw-r--r-- | time/p5-Test-MockTime/distinfo | 5 |
3 files changed, 29 insertions, 0 deletions
diff --git a/time/p5-Test-MockTime/DESCR b/time/p5-Test-MockTime/DESCR new file mode 100644 index 00000000000..991f782d357 --- /dev/null +++ b/time/p5-Test-MockTime/DESCR @@ -0,0 +1,5 @@ +This module 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. diff --git a/time/p5-Test-MockTime/Makefile b/time/p5-Test-MockTime/Makefile new file mode 100644 index 00000000000..c01f284d3d2 --- /dev/null +++ b/time/p5-Test-MockTime/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/05/02 21:19:46 sno Exp $ + +DISTNAME= Test-MockTime-0.12 +PKGNAME= p5-${DISTNAME} +CATEGORIES= time perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/perldoc?Test::MockTime +COMMENT= Replaces actual time with simulated time +LICENSE= gnu-gpl-v2 # OR artistic + +USE_LANGUAGES= c # installs C module +PERL5_PACKLIST= auto/Test/MockTime/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/time/p5-Test-MockTime/distinfo b/time/p5-Test-MockTime/distinfo new file mode 100644 index 00000000000..9be9461c28c --- /dev/null +++ b/time/p5-Test-MockTime/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/05/02 21:19:46 sno Exp $ + +SHA1 (Test-MockTime-0.12.tar.gz) = b01738ff218fc46754a23381eb3bff9681d8400a +RMD160 (Test-MockTime-0.12.tar.gz) = 40a9e55e41fdc23401cbed287ced81572e6ee4cf +Size (Test-MockTime-0.12.tar.gz) = 4431 bytes |