- update p5-Time-Format to 1.12

- use no groff
- patch broken tests, do not fiddle with @INC
This commit is contained in:
bluhm 2012-12-29 16:31:21 +00:00
parent b37059f0cc
commit ca7bba67d0
5 changed files with 79 additions and 18 deletions

View File

@ -1,22 +1,20 @@
# $OpenBSD: Makefile,v 1.8 2010/12/03 11:44:38 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.9 2012/12/29 16:31:21 bluhm Exp $
COMMENT= easy-to-use date/time formatting
COMMENT = easy-to-use date/time formatting
DISTNAME= Time-Format-1.11
REVISION= 0
CATEGORIES= devel
DISTNAME = Time-Format-1.12
CATEGORIES = devel
MAINTAINER= Alexander Bluhm <bluhm@openbsd.org>
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
# Perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES= cpan
USE_GROFF = Yes
REGRESS_DEPENDS= converters/p5-DateManip \
MODULES = cpan
REGRESS_DEPENDS = converters/p5-DateManip \
devel/p5-DateTime
.include <bsd.port.mk>

View File

@ -1,5 +1,2 @@
MD5 (Time-Format-1.11.tar.gz) = ILbxO2fGhAoFJ6ZZfJhhsg==
RMD160 (Time-Format-1.11.tar.gz) = 8kwj7EMrZw1b0RaqMV3bbNw4C4E=
SHA1 (Time-Format-1.11.tar.gz) = BdOcjJSb9Wt/tfxRzOdSgD2ks5A=
SHA256 (Time-Format-1.11.tar.gz) = +zo56M+P2PR0YrT8L5nbrMUYlrxLfEb8uA9xt4DpvQk=
SIZE (Time-Format-1.11.tar.gz) = 30330
SHA256 (Time-Format-1.12.tar.gz) = 75a6CQJopWg2fIPs3Kw0mwz+FkMpvDTen7zC2+ZrjJ4=
SIZE (Time-Format-1.12.tar.gz) = 38131

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-t_doc_t,v 1.1 2012/12/29 16:31:21 bluhm Exp $
--- t/doc.t.orig Thu Sep 27 18:32:39 2012
+++ t/doc.t Mon Oct 1 02:18:22 2012
@@ -11,17 +11,6 @@ my $tl_notok;
BEGIN { $tl_notok = eval('use Time::Local; 1')? 0 : 1 }
my $dm_notok;
my $dm_notz;
-BEGIN
-{
- $dm_notok = eval('use Date::Manip (); 1')? 0 : 1;
- unless ($dm_notok)
- {
- # If Date::Manip can't determine the time zone, it'll bomb out of the tests.
- $dm_notz = eval('Date::Manip::Date_TimeZone (); 1')? 0 : 1;
- }
- delete $INC{'Date/Manip.pm'};
- %Date::Manip:: = ();
-}
# Were all variables imported? (3)
is ref tied %time, 'Time::Format' => '%time imported';

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-t_funcs_t,v 1.1 2012/12/29 16:31:21 bluhm Exp $
--- t/funcs.t.orig Thu Sep 27 18:32:39 2012
+++ t/funcs.t Mon Oct 1 02:18:49 2012
@@ -15,16 +15,6 @@ BEGIN {
}
my $manip_bad;
my $manip_notz;
-BEGIN {
- $manip_bad = eval('use Date::Manip (); 1')? 0 : 1;
- unless ($manip_bad)
- {
- # If Date::Manip can't determine the time zone, it'll bomb out of the tests.
- $manip_notz = eval ('Date::Manip::Date_TimeZone (); 1')? 0 : 1;
- }
- delete $INC{'Date/Manip.pm'};
- %Date::Manip:: = ();
-}
# Get day/month names in current locale
my ($Thursday, $Thu, $June, $Jun);

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-t_manip_t,v 1.1 2012/12/29 16:31:21 bluhm Exp $
--- t/manip.t.orig Thu Sep 27 18:32:39 2012
+++ t/manip.t Mon Oct 1 02:19:07 2012
@@ -6,21 +6,6 @@ use Test::More tests => 6;
BEGIN { $Time::Format::NOXS = 1 }
BEGIN { use_ok 'Time::Format', qw(%manip) }
my $manip_bad;
-BEGIN
-{
- unless (eval 'use Date::Manip (); 1')
- {
- $manip_bad = 'Date::Manip is not available';
- }
- else
- {
- # If Date::Manip can't determine the time zone, it'll bomb out of the tests.
- $manip_bad = 'Date::Manip cannot determine time zone'
- unless eval 'Date::Manip::Date_TimeZone(); 1';
- }
- delete $INC{'Date/Manip.pm'};
- %Date::Manip:: = ();
-}
my $t = 'first thursday in june 2003';