pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/p5-Test-MockTime Importing package for p5 module ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7a95d8c4145e
branches: trunk
changeset: 392564:7a95d8c4145e
user: sno <sno%pkgsrc.org@localhost>
date: Sat May 02 21:19:46 2009 +0000
description:
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:
time/p5-Test-MockTime/DESCR | 5 +++++
time/p5-Test-MockTime/Makefile | 19 +++++++++++++++++++
time/p5-Test-MockTime/distinfo | 5 +++++
3 files changed, 29 insertions(+), 0 deletions(-)
diffs (41 lines):
diff -r cda2a8db7ad3 -r 7a95d8c4145e time/p5-Test-MockTime/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-Test-MockTime/DESCR Sat May 02 21:19:46 2009 +0000
@@ -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 -r cda2a8db7ad3 -r 7a95d8c4145e time/p5-Test-MockTime/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-Test-MockTime/Makefile Sat May 02 21:19:46 2009 +0000
@@ -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@localhost
+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 -r cda2a8db7ad3 -r 7a95d8c4145e time/p5-Test-MockTime/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-Test-MockTime/distinfo Sat May 02 21:19:46 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index