From: Nicholas Clark Date: Sun, 13 Sep 2009 16:11:45 +0000 (+0100) Subject: Move Time::Local from lib to ext. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c5ae3ee15a49532373833c713da3041b693b8cc;p=p5sagit%2Fp5-mst-13.2.git Move Time::Local from lib to ext. --- diff --git a/MANIFEST b/MANIFEST index f2c9971..db6c4de 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2857,6 +2857,8 @@ ext/Time-HiRes/HiRes.xs Time::HiRes extension ext/Time-HiRes/Makefile.PL Time::HiRes extension ext/Time-HiRes/t/HiRes.t Test for Time::HiRes ext/Time-HiRes/typemap Time::HiRes extension +ext/Time-Local/lib/Time/Local.pm Reverse translation of localtime, gmtime +ext/Time-Local/t/Local.t See if Time::Local works ext/Time-Piece/Changes Time::Piece extension ext/Time-Piece/Makefile.PL Time::Piece extension ext/Time-Piece/Piece.pm Time::Piece extension @@ -3483,8 +3485,6 @@ lib/Tie/SubstrHash.t Test for Tie::SubstrHash lib/Time/gmtime.pm By-name interface to Perl's builtin gmtime lib/Time/gmtime.t Test for Time::gmtime lib/timelocal.pl Perl library supporting inverse of localtime, gmtime -lib/Time/Local.pm Reverse translation of localtime, gmtime -lib/Time/Local.t See if Time::Local works lib/Time/localtime.pm By-name interface to Perl's builtin localtime lib/Time/localtime.t Test for Time::localtime lib/Time/tm.pm Internal object for Time::{gm,local}time diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index a7e9ae3..d06dc74 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -1652,11 +1652,8 @@ use File::Glob qw(:case); { 'MAINTAINER' => 'drolsky', 'DISTRIBUTION' => 'DROLSKY/Time-Local-1.1901.tar.gz', - 'FILES' => q[lib/Time/Local.{pm,t}], + 'FILES' => q[ext/Time-Local], 'EXCLUDED' => [ qw(t/pod-coverage.t t/pod.t) ], - 'MAP' => { 'lib/' => 'lib/', - 't/' => 'lib/Time/', - }, 'CPAN' => 1, 'UPSTREAM' => undef, }, diff --git a/ext/.gitignore b/ext/.gitignore index 0e157f2..a7fed71 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -100,6 +100,7 @@ ppport.h /Tie-File/Makefile.PL /Tie-Memoize/Makefile.PL /Tie-RefHash/Makefile.PL +/Time-Local/Makefile.PL # ignore all vim swap files but the one bundled in Module::Pluggable for testing *.swp diff --git a/lib/Time/Local.pm b/ext/Time-Local/lib/Time/Local.pm similarity index 100% rename from lib/Time/Local.pm rename to ext/Time-Local/lib/Time/Local.pm diff --git a/lib/Time/Local.t b/ext/Time-Local/t/Local.t similarity index 98% rename from lib/Time/Local.t rename to ext/Time-Local/t/Local.t index 3f48404..61a15a8 100644 --- a/lib/Time/Local.t +++ b/ext/Time-Local/t/Local.t @@ -1,12 +1,5 @@ #!./perl -BEGIN { - if ($ENV{PERL_CORE}){ - chdir('t') if -d 't'; - @INC = ('.', '../lib'); - } -} - use strict; use Config; diff --git a/lib/.gitignore b/lib/.gitignore index 523b247..473430b 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -337,6 +337,7 @@ /Tie/Memoize.pm /Tie/RefHash.pm /Time/HiRes.pm +/Time/Local.pm /Time/Piece.pm /Time/Seconds.pm /Unicode/Normalize.pm