Move Moudle::Build from lib to ext.
Nicholas Clark [Sun, 13 Sep 2009 17:50:46 +0000 (18:50 +0100)]
71 files changed:
MANIFEST
Porting/Maintainers.pl
ext/.gitignore
ext/Module-Build/Changes [moved from lib/Module/Build/Changes with 100% similarity]
ext/Module-Build/lib/Module/Build.pm [moved from lib/Module/Build.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/API.pod [moved from lib/Module/Build/API.pod with 100% similarity]
ext/Module-Build/lib/Module/Build/Authoring.pod [moved from lib/Module/Build/Authoring.pod with 100% similarity]
ext/Module-Build/lib/Module/Build/Base.pm [moved from lib/Module/Build/Base.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Compat.pm [moved from lib/Module/Build/Compat.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Config.pm [moved from lib/Module/Build/Config.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Cookbook.pm [moved from lib/Module/Build/Cookbook.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Dumper.pm [moved from lib/Module/Build/Dumper.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/ModuleInfo.pm [moved from lib/Module/Build/ModuleInfo.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Notes.pm [moved from lib/Module/Build/Notes.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/PPMMaker.pm [moved from lib/Module/Build/PPMMaker.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/Amiga.pm [moved from lib/Module/Build/Platform/Amiga.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/Default.pm [moved from lib/Module/Build/Platform/Default.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/EBCDIC.pm [moved from lib/Module/Build/Platform/EBCDIC.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/MPEiX.pm [moved from lib/Module/Build/Platform/MPEiX.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/MacOS.pm [moved from lib/Module/Build/Platform/MacOS.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/RiscOS.pm [moved from lib/Module/Build/Platform/RiscOS.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/Unix.pm [moved from lib/Module/Build/Platform/Unix.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/VMS.pm [moved from lib/Module/Build/Platform/VMS.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/VOS.pm [moved from lib/Module/Build/Platform/VOS.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/Windows.pm [moved from lib/Module/Build/Platform/Windows.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/aix.pm [moved from lib/Module/Build/Platform/aix.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/cygwin.pm [moved from lib/Module/Build/Platform/cygwin.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/darwin.pm [moved from lib/Module/Build/Platform/darwin.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Platform/os2.pm [moved from lib/Module/Build/Platform/os2.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/PodParser.pm [moved from lib/Module/Build/PodParser.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/Version.pm [moved from lib/Module/Build/Version.pm with 100% similarity]
ext/Module-Build/lib/Module/Build/YAML.pm [moved from lib/Module/Build/YAML.pm with 100% similarity]
ext/Module-Build/scripts/config_data [moved from lib/Module/Build/scripts/config_data with 100% similarity]
ext/Module-Build/t/PL_files.t [moved from lib/Module/Build/t/PL_files.t with 97% similarity]
ext/Module-Build/t/add_property.t [moved from lib/Module/Build/t/add_property.t with 98% similarity]
ext/Module-Build/t/basic.t [moved from lib/Module/Build/t/basic.t with 99% similarity]
ext/Module-Build/t/bundled/Tie/CPHash.pm [moved from lib/Module/Build/t/bundled/Tie/CPHash.pm with 100% similarity]
ext/Module-Build/t/compat.t [moved from lib/Module/Build/t/compat.t with 99% similarity]
ext/Module-Build/t/compat/exit.t [moved from lib/Module/Build/t/compat/exit.t with 94% similarity]
ext/Module-Build/t/debug.t [moved from lib/Module/Build/t/debug.t with 90% similarity]
ext/Module-Build/t/destinations.t [moved from lib/Module/Build/t/destinations.t with 99% similarity]
ext/Module-Build/t/ext.t [moved from lib/Module/Build/t/ext.t with 98% similarity]
ext/Module-Build/t/extend.t [moved from lib/Module/Build/t/extend.t with 99% similarity]
ext/Module-Build/t/files.t [moved from lib/Module/Build/t/files.t with 93% similarity]
ext/Module-Build/t/help.t [moved from lib/Module/Build/t/help.t with 98% similarity]
ext/Module-Build/t/install.t [moved from lib/Module/Build/t/install.t with 99% similarity]
ext/Module-Build/t/install_extra_target.t [moved from lib/Module/Build/t/install_extra_target.t with 97% similarity]
ext/Module-Build/t/lib/DistGen.pm [moved from lib/Module/Build/t/lib/DistGen.pm with 100% similarity]
ext/Module-Build/t/lib/MBTest.pm [moved from lib/Module/Build/t/lib/MBTest.pm with 89% similarity]
ext/Module-Build/t/manifypods.t [moved from lib/Module/Build/t/manifypods.t with 98% similarity]
ext/Module-Build/t/mbyaml.t [moved from lib/Module/Build/t/mbyaml.t with 99% similarity]
ext/Module-Build/t/metadata.t [moved from lib/Module/Build/t/metadata.t with 99% similarity]
ext/Module-Build/t/metadata2.t [moved from lib/Module/Build/t/metadata2.t with 98% similarity]
ext/Module-Build/t/moduleinfo.t [moved from lib/Module/Build/t/moduleinfo.t with 99% similarity]
ext/Module-Build/t/new_from_context.t [moved from lib/Module/Build/t/new_from_context.t with 88% similarity]
ext/Module-Build/t/notes.t [moved from lib/Module/Build/t/notes.t with 95% similarity]
ext/Module-Build/t/parents.t [moved from lib/Module/Build/t/parents.t with 95% similarity]
ext/Module-Build/t/pod_parser.t [moved from lib/Module/Build/t/pod_parser.t with 95% similarity]
ext/Module-Build/t/ppm.t [moved from lib/Module/Build/t/ppm.t with 98% similarity]
ext/Module-Build/t/runthrough.t [moved from lib/Module/Build/t/runthrough.t with 98% similarity]
ext/Module-Build/t/script_dist.t [moved from lib/Module/Build/t/script_dist.t with 96% similarity]
ext/Module-Build/t/test_file_exts.t [moved from lib/Module/Build/t/test_file_exts.t with 93% similarity]
ext/Module-Build/t/test_type.t [moved from lib/Module/Build/t/test_type.t with 95% similarity]
ext/Module-Build/t/test_types.t [moved from lib/Module/Build/t/test_types.t with 98% similarity]
ext/Module-Build/t/tilde.t [moved from lib/Module/Build/t/tilde.t with 97% similarity]
ext/Module-Build/t/use_tap_harness.t [moved from lib/Module/Build/t/use_tap_harness.t with 96% similarity]
ext/Module-Build/t/versions.t [moved from lib/Module/Build/t/versions.t with 89% similarity]
ext/Module-Build/t/write_default_maniskip.t [moved from lib/Module/Build/t/write_default_maniskip.t with 93% similarity]
ext/Module-Build/t/xs.t [moved from lib/Module/Build/t/xs.t with 98% similarity]
lib/.gitignore
utils/config_data.PL

index 85a4c98..09e651f 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1824,6 +1824,72 @@ ext/MIME-Base64/t/base64.t       See whether MIME::Base64 works
 ext/MIME-Base64/t/quoted-print.t       See whether MIME::QuotedPrint works
 ext/MIME-Base64/t/unicode.t    See whether MIME::Base64 works
 ext/MIME-Base64/t/warn.t       See whether MIME::Base64 works
+ext/Module-Build/Changes                               Module::Build
+ext/Module-Build/lib/Module/Build/API.pod              Module::Build
+ext/Module-Build/lib/Module/Build/Authoring.pod                Module::Build
+ext/Module-Build/lib/Module/Build/Base.pm              Module::Build
+ext/Module-Build/lib/Module/Build/Compat.pm            Module::Build
+ext/Module-Build/lib/Module/Build/Config.pm            Module::Build
+ext/Module-Build/lib/Module/Build/Cookbook.pm          Module::Build
+ext/Module-Build/lib/Module/Build/Dumper.pm            Module::Build
+ext/Module-Build/lib/Module/Build/ModuleInfo.pm                Module::Build
+ext/Module-Build/lib/Module/Build/Notes.pm             Module::Build
+ext/Module-Build/lib/Module/Build/Platform/aix.pm      Module::Build
+ext/Module-Build/lib/Module/Build/Platform/Amiga.pm    Module::Build
+ext/Module-Build/lib/Module/Build/Platform/cygwin.pm   Module::Build
+ext/Module-Build/lib/Module/Build/Platform/darwin.pm   Module::Build
+ext/Module-Build/lib/Module/Build/Platform/Default.pm  Module::Build
+ext/Module-Build/lib/Module/Build/Platform/EBCDIC.pm   Module::Build
+ext/Module-Build/lib/Module/Build/Platform/MacOS.pm    Module::Build
+ext/Module-Build/lib/Module/Build/Platform/MPEiX.pm    Module::Build
+ext/Module-Build/lib/Module/Build/Platform/os2.pm      Module::Build
+ext/Module-Build/lib/Module/Build/Platform/RiscOS.pm   Module::Build
+ext/Module-Build/lib/Module/Build/Platform/Unix.pm     Module::Build
+ext/Module-Build/lib/Module/Build/Platform/VMS.pm      Module::Build
+ext/Module-Build/lib/Module/Build/Platform/VOS.pm      Module::Build
+ext/Module-Build/lib/Module/Build/Platform/Windows.pm  Module::Build
+ext/Module-Build/lib/Module/Build.pm                   Module::Build
+ext/Module-Build/lib/Module/Build/PodParser.pm         Module::Build
+ext/Module-Build/lib/Module/Build/PPMMaker.pm          Module::Build
+ext/Module-Build/lib/Module/Build/Version.pm           Module::Build
+ext/Module-Build/lib/Module/Build/YAML.pm              Module::Build
+ext/Module-Build/scripts/config_data                   Module::Build
+ext/Module-Build/t/add_property.t                      Module::Build
+ext/Module-Build/t/basic.t                             Module::Build
+ext/Module-Build/t/bundled/Tie/CPHash.pm               Module::Build.pm
+ext/Module-Build/t/compat/exit.t                       Module::Build
+ext/Module-Build/t/compat.t                            Module::Build
+ext/Module-Build/t/debug.t                             Module::Build tests
+ext/Module-Build/t/destinations.t                      Module::Build
+ext/Module-Build/t/extend.t                            Module::Build
+ext/Module-Build/t/ext.t                               Module::Build
+ext/Module-Build/t/files.t                             Module::Build
+ext/Module-Build/t/help.t                              Module::Build
+ext/Module-Build/t/install_extra_target.t              Module::Build tests
+ext/Module-Build/t/install.t                           Module::Build
+ext/Module-Build/t/lib/DistGen.pm                      Module::Build
+ext/Module-Build/t/lib/MBTest.pm                       Module::Build
+ext/Module-Build/t/manifypods.t                                Module::Build
+ext/Module-Build/t/mbyaml.t                            Module::Build
+ext/Module-Build/t/metadata2.t                         Module::Build
+ext/Module-Build/t/metadata.t                          Module::Build
+ext/Module-Build/t/moduleinfo.t                                Module::Build
+ext/Module-Build/t/new_from_context.t                  Module::Build
+ext/Module-Build/t/notes.t                             Module::Build
+ext/Module-Build/t/parents.t                           Module::Build
+ext/Module-Build/t/PL_files.t                          Module::Build tests
+ext/Module-Build/t/pod_parser.t                                Module::Build
+ext/Module-Build/t/ppm.t                               Module::Build
+ext/Module-Build/t/runthrough.t                                Module::Build
+ext/Module-Build/t/script_dist.t                       Module::Build
+ext/Module-Build/t/test_file_exts.t                    Module::Build
+ext/Module-Build/t/test_types.t                                Module::Build
+ext/Module-Build/t/test_type.t                         Module::Build
+ext/Module-Build/t/tilde.t                             Module::Build
+ext/Module-Build/t/use_tap_harness.t                   Module::Build
+ext/Module-Build/t/versions.t                          Module::Build
+ext/Module-Build/t/write_default_maniskip.t            Module::Build tests
+ext/Module-Build/t/xs.t                                        Module::Build
 ext/Module-CoreList/Changes    Module::CoreList Changes
 ext/Module-CoreList/corelist   The corelist command-line utility
 ext/Module-CoreList/identify-dependencies      A usage example for Module::CoreList
@@ -3250,73 +3316,7 @@ lib/lib.t                        For "use lib" testing
 lib/locale.pm                  For "use locale"
 lib/locale.t                   See if locale support works
 lib/look.pl                    A "look" equivalent
-lib/Module/Build/API.pod       Module::Build
-lib/Module/Build/Authoring.pod Module::Build
-lib/Module/Build/Base.pm       Module::Build
-lib/Module/Build/Changes       Module::Build
-lib/Module/Build/Compat.pm     Module::Build
-lib/Module/Build/ConfigData.pm Module::Build
-lib/Module/Build/Config.pm     Module::Build
-lib/Module/Build/Cookbook.pm   Module::Build
-lib/Module/Build/Dumper.pm     Module::Build
-lib/Module/Build/ModuleInfo.pm Module::Build
-lib/Module/Build/Notes.pm      Module::Build
-lib/Module/Build/Platform/aix.pm       Module::Build
-lib/Module/Build/Platform/Amiga.pm     Module::Build
-lib/Module/Build/Platform/cygwin.pm    Module::Build
-lib/Module/Build/Platform/darwin.pm    Module::Build
-lib/Module/Build/Platform/Default.pm   Module::Build
-lib/Module/Build/Platform/EBCDIC.pm    Module::Build
-lib/Module/Build/Platform/MacOS.pm     Module::Build
-lib/Module/Build/Platform/MPEiX.pm     Module::Build
-lib/Module/Build/Platform/os2.pm       Module::Build
-lib/Module/Build/Platform/RiscOS.pm    Module::Build
-lib/Module/Build/Platform/Unix.pm      Module::Build
-lib/Module/Build/Platform/VMS.pm       Module::Build
-lib/Module/Build/Platform/VOS.pm       Module::Build
-lib/Module/Build/Platform/Windows.pm   Module::Build
-lib/Module/Build.pm            Module::Build
-lib/Module/Build/PodParser.pm  Module::Build
-lib/Module/Build/PPMMaker.pm   Module::Build
-lib/Module/Build/scripts/config_data   Module::Build
-lib/Module/Build/t/add_property.t      Module::Build
-lib/Module/Build/t/basic.t     Module::Build
-lib/Module/Build/t/bundled/Tie/CPHash.pm       Module::Build.pm
-lib/Module/Build/t/compat/exit.t       Module::Build
-lib/Module/Build/t/compat.t    Module::Build
-lib/Module/Build/t/debug.t     Module::Build tests
-lib/Module/Build/t/destinations.t      Module::Build
-lib/Module/Build/t/extend.t    Module::Build
-lib/Module/Build/t/ext.t       Module::Build
-lib/Module/Build/t/files.t     Module::Build
-lib/Module/Build/t/help.t      Module::Build
-lib/Module/Build/t/install_extra_target.t      Module::Build tests
-lib/Module/Build/t/install.t   Module::Build
-lib/Module/Build/t/lib/DistGen.pm      Module::Build
-lib/Module/Build/t/lib/MBTest.pm       Module::Build
-lib/Module/Build/t/manifypods.t        Module::Build
-lib/Module/Build/t/mbyaml.t    Module::Build
-lib/Module/Build/t/metadata2.t Module::Build
-lib/Module/Build/t/metadata.t  Module::Build
-lib/Module/Build/t/moduleinfo.t        Module::Build
-lib/Module/Build/t/new_from_context.t  Module::Build
-lib/Module/Build/t/notes.t     Module::Build
-lib/Module/Build/t/parents.t   Module::Build
-lib/Module/Build/t/PL_files.t  Module::Build tests
-lib/Module/Build/t/pod_parser.t        Module::Build
-lib/Module/Build/t/ppm.t       Module::Build
-lib/Module/Build/t/runthrough.t        Module::Build
-lib/Module/Build/t/script_dist.t       Module::Build
-lib/Module/Build/t/test_file_exts.t    Module::Build
-lib/Module/Build/t/test_types.t        Module::Build
-lib/Module/Build/t/test_type.t Module::Build
-lib/Module/Build/t/tilde.t     Module::Build
-lib/Module/Build/t/use_tap_harness.t   Module::Build
-lib/Module/Build/t/versions.t  Module::Build
-lib/Module/Build/t/write_default_maniskip.t    Module::Build tests
-lib/Module/Build/t/xs.t                Module::Build
-lib/Module/Build/Version.pm    Module::Build
-lib/Module/Build/YAML.pm       Module::Build
+lib/Module/Build/ConfigData.pm Configuration for Module::Build
 lib/Net/hostent.pm             By-name interface to Perl's builtin gethost*
 lib/Net/hostent.t              See if Net::hostent works
 lib/Net/netent.pm              By-name interface to Perl's builtin getnet*
index c82bcbf..3dca9b8 100755 (executable)
@@ -1021,7 +1021,7 @@ use File::Glob qw(:case);
        {
        'MAINTAINER'    => 'kwilliams',
        'DISTRIBUTION'  => 'DAGOLDEN/Module-Build-0.35.tar.gz',
-       'FILES'         => q[lib/Module/Build lib/Module/Build.pm],
+       'FILES'         => q[ext/Module-Build],
        'EXCLUDED'      => [ qw{ t/par.t t/signature.t scripts/bundle.pl},
                             qr!^contrib/! ],
        'CPAN'          => 1,
@@ -1911,6 +1911,7 @@ use File::Glob qw(:case);
                                lib/Getopt/Std.{pm,t}
                                lib/I18N/Collate.{pm,t}
                                lib/Internals.t
+                               lib/Module/Build/ConfigData.pm
                                lib/Net/hostent.{pm,t}
                                lib/Net/netent.{pm,t}
                                lib/Net/protoent.{pm,t}
index 5b22e96..c80e6ad 100644 (file)
@@ -60,6 +60,7 @@ ppport.h
 /Math-BigRat/Makefile.PL
 /Math-Complex/Makefile.PL
 /Memoize/Makefile.PL
+/Module-Build/Makefile.PL
 /Module-Load/Makefile.PL
 /Module-Load-Conditional/Makefile.PL
 /Module-Loaded/Makefile.PL
similarity index 97%
rename from lib/Module/Build/t/PL_files.t
rename to ext/Module-Build/t/PL_files.t
index 4d0e13f..a221714 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 8;
 use DistGen;
 use Module::Build;
similarity index 98%
rename from lib/Module/Build/t/add_property.t
rename to ext/Module-Build/t/add_property.t
index c1c11c4..6032b09 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 29;
 #use MBTest 'no_plan';
 use DistGen;
similarity index 99%
rename from lib/Module/Build/t/basic.t
rename to ext/Module-Build/t/basic.t
index 205d101..f46be0a 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 60;
 
 use_ok 'Module::Build';
similarity index 99%
rename from lib/Module/Build/t/compat.t
rename to ext/Module-Build/t/compat.t
index b529cfa..88e5953 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest;
 use File::Spec;
 use IO::File;
similarity index 94%
rename from lib/Module/Build/t/compat/exit.t
rename to ext/Module-Build/t/compat/exit.t
index b0fbf4c..78269a9 100644 (file)
@@ -2,7 +2,7 @@
 
 use strict;
 
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 5;
 
 use_ok 'Module::Build';
similarity index 90%
rename from lib/Module/Build/t/debug.t
rename to ext/Module-Build/t/debug.t
index 7146e66..c9b4fa5 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 3;
 
 require_ok('Module::Build');
similarity index 99%
rename from lib/Module/Build/t/destinations.t
rename to ext/Module-Build/t/destinations.t
index 1c6705f..4af99d0 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 115;
 
 use_ok 'Module::Build';
similarity index 98%
rename from lib/Module/Build/t/ext.t
rename to ext/Module-Build/t/ext.t
index 30c648b..8045761 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest;
 
 use Module::Build;
similarity index 99%
rename from lib/Module/Build/t/extend.t
rename to ext/Module-Build/t/extend.t
index f939def..db99eec 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 66;
 
 use_ok 'Module::Build';
similarity index 93%
rename from lib/Module/Build/t/files.t
rename to ext/Module-Build/t/files.t
index 9ee452e..87b192e 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 6;
 
 use_ok 'Module::Build';
similarity index 98%
rename from lib/Module/Build/t/help.t
rename to ext/Module-Build/t/help.t
index 201e5ae..8408315 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 25;
 
 use_ok 'Module::Build';
similarity index 99%
rename from lib/Module/Build/t/install.t
rename to ext/Module-Build/t/install.t
index 317ca8b..2cadaa3 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 36;
 
 use_ok 'Module::Build';
similarity index 97%
rename from lib/Module/Build/t/install_extra_target.t
rename to ext/Module-Build/t/install_extra_target.t
index 23e9d11..c717ce5 100644 (file)
@@ -2,7 +2,7 @@
 # Contributed by: Thorben Jaendling
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 8;
 
 require_ok 'Module::Build';
similarity index 89%
rename from lib/Module/Build/t/lib/MBTest.pm
rename to ext/Module-Build/t/lib/MBTest.pm
index 42f6eb6..dc2410b 100644 (file)
@@ -49,25 +49,7 @@ BEGIN {
 
   # In case the test wants to use our other bundled
   # modules, make sure they can be loaded.
-  my $t_lib = File::Spec->catdir('t', 'bundled');
-
-  unless ($ENV{PERL_CORE}) {
-    push @INC, $t_lib; # Let user's installed version override
-  } else {
-    # We change directories, so expand @INC and $^X to absolute paths
-    # Also add .
-    @INC = (map(File::Spec->rel2abs($_), @INC), ".");
-    $^X = File::Spec->rel2abs($^X);
-
-    # we are in 't', go up a level so we don't create t/t/_tmp
-    chdir '..' or die "Couldn't chdir to ..";
-
-    push @INC, File::Spec->catdir(qw/lib Module Build/, $t_lib);
-
-    # make sure children get @INC pointing to uninstalled files
-    require Cwd;
-    $ENV{PERL5LIB} = File::Spec->catdir(Cwd::cwd(), 'lib');
-  }
+  push @INC, File::Spec->catdir('t', 'bundled');
 }
 
 use Exporter;
similarity index 98%
rename from lib/Module/Build/t/manifypods.t
rename to ext/Module-Build/t/manifypods.t
index 263c137..31c9e8e 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest;
 use Module::Build;
 use Module::Build::ConfigData;
similarity index 99%
rename from lib/Module/Build/t/mbyaml.t
rename to ext/Module-Build/t/mbyaml.t
index f210ed7..d2cb0d5 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/local/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest 'no_plan';
 
 use_ok 'Module::Build::YAML';
similarity index 99%
rename from lib/Module/Build/t/metadata.t
rename to ext/Module-Build/t/metadata.t
index 609d6e9..6f53c1d 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 53;
 
 use_ok 'Module::Build';
similarity index 98%
rename from lib/Module/Build/t/metadata2.t
rename to ext/Module-Build/t/metadata2.t
index 4d2894d..a5af034 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 20;
 
 use_ok 'Module::Build';
similarity index 99%
rename from lib/Module/Build/t/moduleinfo.t
rename to ext/Module-Build/t/moduleinfo.t
index 196cf43..ca7eb04 100644 (file)
@@ -3,7 +3,7 @@
 # vim:ts=8:sw=2:et:sta:sts=2
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 82;
 
 use_ok 'Module::Build::ModuleInfo';
similarity index 88%
rename from lib/Module/Build/t/new_from_context.t
rename to ext/Module-Build/t/new_from_context.t
index a1a2433..ee34f07 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 4;
 
 use_ok 'Module::Build';
similarity index 95%
rename from lib/Module/Build/t/notes.t
rename to ext/Module-Build/t/notes.t
index 2a20d72..29f1fc3 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 13;
 
 use_ok 'Module::Build';
similarity index 95%
rename from lib/Module/Build/t/parents.t
rename to ext/Module-Build/t/parents.t
index 7270c67..666fb05 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 28;
 
 use_ok 'Module::Build';
similarity index 95%
rename from lib/Module/Build/t/pod_parser.t
rename to ext/Module-Build/t/pod_parser.t
index c90608f..42a7820 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 8;
 
 use_ok 'Module::Build::PodParser';
similarity index 98%
rename from lib/Module/Build/t/ppm.t
rename to ext/Module-Build/t/ppm.t
index 3a84462..7fb6450 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest;
 
 use Module::Build;
similarity index 98%
rename from lib/Module/Build/t/runthrough.t
rename to ext/Module-Build/t/runthrough.t
index ce15295..21d3d1c 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 32;
 
 use_ok 'Module::Build';
similarity index 96%
rename from lib/Module/Build/t/script_dist.t
rename to ext/Module-Build/t/script_dist.t
index 0a86caf..e6b7fd8 100644 (file)
@@ -3,7 +3,7 @@
 # vim:ts=8:sw=2:et:sta:sts=2
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest 'no_plan';
 
 use DistGen qw(undent);
similarity index 93%
rename from lib/Module/Build/t/test_file_exts.t
rename to ext/Module-Build/t/test_file_exts.t
index 54614d1..9dbf73e 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 5;
 use DistGen;
 
similarity index 95%
rename from lib/Module/Build/t/test_type.t
rename to ext/Module-Build/t/test_type.t
index 598ddb1..3c6cfb6 100644 (file)
@@ -8,7 +8,7 @@ BEGIN {
 }
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 9;
 
 use_ok 'Module::Build';
similarity index 98%
rename from lib/Module/Build/t/test_types.t
rename to ext/Module-Build/t/test_types.t
index 1d2902e..5f3f5cf 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 15 + 12;
 
 use_ok 'Module::Build';
similarity index 97%
rename from lib/Module/Build/t/tilde.t
rename to ext/Module-Build/t/tilde.t
index 299d4b5..5b39204 100644 (file)
@@ -3,7 +3,7 @@
 # Test ~ expansion from command line arguments.
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 18;
 
 use_ok 'Module::Build';
similarity index 96%
rename from lib/Module/Build/t/use_tap_harness.t
rename to ext/Module-Build/t/use_tap_harness.t
index 31f3210..d14cb05 100644 (file)
@@ -2,7 +2,7 @@
 
 use strict;
 use Test::More;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 if (eval { require TAP::Harness } && TAP::Harness->VERSION >= 3) {
     plan tests => 8;
 } else {
similarity index 89%
rename from lib/Module/Build/t/versions.t
rename to ext/Module-Build/t/versions.t
index 0bf4781..7f511e5 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest tests => 4;
 
 use_ok 'Module::Build';
similarity index 93%
rename from lib/Module/Build/t/write_default_maniskip.t
rename to ext/Module-Build/t/write_default_maniskip.t
index 0a293b0..084d81e 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest 'no_plan';
 use DistGen;
 use Cwd;
similarity index 98%
rename from lib/Module/Build/t/xs.t
rename to ext/Module-Build/t/xs.t
index f637d7e..e3f1ed7 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
+use lib 't/lib';
 use MBTest;
 use Module::Build;
 use Config;
index 6b3e631..0d19f9d 100644 (file)
 /Memoize/NDBM_File.pm
 /Memoize/SDBM_File.pm
 /Memoize/Storable.pm
+/Module/Build
+/Module/Build.pm
+!/Module/Build/ConfigData.pm
 /Module/CoreList.pm
 /Module/Load.pm
 /Module/Load/Conditional.pm
index e1de813..e8dda91 100644 (file)
@@ -35,7 +35,7 @@ use File::Spec;
 
 my $script = File::Spec->catfile(
             File::Spec->catdir(
-                File::Spec->updir, qw[lib Module Build scripts]
+                File::Spec->updir, qw[ext Module-Build scripts]
             ), "config_data");
 
 if (open(IN, $script)) {