Move Exporter from lib/ to dist/Exporter/
authorNicholas Clark <nick@ccl4.org>
Tue, 2 Jul 2013 15:15:01 +0000 (17:15 +0200)
committerNicholas Clark <nick@ccl4.org>
Wed, 3 Jul 2013 07:41:37 +0000 (09:41 +0200)
Exporter has been considered dual life, upstream blead, since commit
6295adb525682844 (Sep 2006), but it was not moved to dist/ in 2009 with
the other dual-life modules because it was not possible to disentangle it
from the early stages of the build bootstrapping.

The build bootstrapping is now sufficiently simplified that it's possible
to move it to dist/

MANIFEST
META.json
META.yml
Makefile.SH
Porting/Maintainers.pl
dist/Exporter/lib/Exporter.pm [moved from lib/Exporter.pm with 100% similarity]
dist/Exporter/lib/Exporter/Heavy.pm [moved from lib/Exporter/Heavy.pm with 100% similarity]
dist/Exporter/t/Exporter.t [moved from lib/Exporter.t with 98% similarity]
write_buildcustomize.pl

index 434c9ef..63c88e4 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -2958,6 +2958,9 @@ dist/Dumpvalue/t/Dumpvalue.t      See if Dumpvalue works
 dist/Env/lib/Env.pm            Map environment into ordinary variables
 dist/Env/t/array.t             See if Env works for arrays
 dist/Env/t/env.t               See if Env works
+dist/Exporter/lib/Exporter/Heavy.pm    Complicated routines for Exporter
+dist/Exporter/lib/Exporter.pm          Exporter base class
+dist/Exporter/t/Exporter.t             See if Exporter works
 dist/ExtUtils-CBuilder/Changes         EU-CB change log
 dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm           Base class for ExtUtils::CBuilder methods
 dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/aix.pm   CBuilder methods for AIX
@@ -4099,9 +4102,6 @@ lib/dumpvar.pl                    A variable dumper
 lib/dumpvar.t                  A variable dumper tester
 lib/English.pm                 Readable aliases for short variables
 lib/English.t                  See if English works
-lib/Exporter/Heavy.pm          Complicated routines for Exporter
-lib/Exporter.pm                        Exporter base class
-lib/Exporter.t                 See if Exporter works
 lib/ExtUtils/Embed.pm          Utilities for embedding Perl in C programs
 lib/ExtUtils/t/Embed.t         See if ExtUtils::Embed and embedding works
 lib/ExtUtils/typemap           Extension interface types
index ad9866c..810aeee 100644 (file)
--- a/META.json
+++ b/META.json
@@ -26,6 +26,7 @@
          "dist/Devel-SelfStubber",
          "dist/Dumpvalue",
          "dist/Env",
+         "dist/Exporter",
          "dist/ExtUtils-CBuilder",
          "dist/ExtUtils-Command",
          "dist/ExtUtils-Install",
          "dist/lib/lib_pm.PL",
          "dist/lib/Makefile.PL",
          "dist/lib/t/01lib.t",
-         "lib/Exporter.pm",
-         "lib/Exporter.t",
-         "lib/Exporter/Heavy.pm",
          "lib/unicore/mktables",
          "lib/version.pm",
          "lib/version.pod",
index 46a3bb1..6268d5b 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -24,6 +24,7 @@ no_index:
     - dist/Devel-SelfStubber
     - dist/Dumpvalue
     - dist/Env
+    - dist/Exporter
     - dist/ExtUtils-CBuilder
     - dist/ExtUtils-Command
     - dist/ExtUtils-Install
@@ -102,9 +103,6 @@ no_index:
     - dist/lib/lib_pm.PL
     - dist/lib/Makefile.PL
     - dist/lib/t/01lib.t
-    - lib/Exporter.pm
-    - lib/Exporter.t
-    - lib/Exporter/Heavy.pm
     - lib/unicore/mktables
     - lib/version.pm
     - lib/version.pod
index 3f023b0..7d4ff0c 100755 (executable)
@@ -859,7 +859,7 @@ $(MINIPERL_EXE): lib/buildcustomize.pl
                $spitshell >>$Makefile <<'!NO!SUBS!'
 lib/buildcustomize.pl: $& $(mini_obj)
        $(CC) -o $(MINIPERL_EXE) $(CLDFLAGS) $(mini_obj) $(libs)
-       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
+       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
        $(MINIPERL) -f write_buildcustomize.pl
 !NO!SUBS!
                ;;
@@ -867,7 +867,7 @@ lib/buildcustomize.pl: $& $(mini_obj)
                $spitshell >>$Makefile <<'!NO!SUBS!'
 lib/buildcustomize.pl: $& $(mini_obj) write    ldcustomize.pl
        $(CC) -o $(MINIPERL_EXE) $(mini_obj    libs)
-       $(LDLIBPTH) $(RUN) ./miniperl$(HOST    _EXT) -w -Ilib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
+       $(LDLIBPTH) $(RUN) ./miniperl$(HOST    _EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
        $(MINIPERL) -f write_buildcustomize.pl    
 !NO!SUBS!
                ;;
@@ -889,7 +889,7 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
        -@rm -f miniperl.xok
        $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o $(MINIPERL_EXE) \
            $(mini_obj) $(libs)
-       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
+       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
        $(MINIPERL) -f write_buildcustomize.pl
 !NO!SUBS!
                ;;
@@ -899,7 +899,7 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
        -@rm -f miniperl.xok
        $(LDLIBPTH) $(CC) $(CLDFLAGS) -o $(MINIPERL_EXE) \
            $(mini_obj) $(libs)
-       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
+       $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
        $(MINIPERL) -f write_buildcustomize.pl
 !NO!SUBS!
                ;;
index 22cd06a..4b55d0c 100755 (executable)
@@ -634,19 +634,12 @@ use File::Glob qw(:case);
     'Exporter' => {
         'MAINTAINER'   => 'ferreira',
         'DISTRIBUTION' => 'TODDR/Exporter-5.68.tar.gz',
-        'FILES'        => q[lib/Exporter.pm
-                            lib/Exporter.t
-                            lib/Exporter/Heavy.pm
-                           ],
+        'FILES'        => q[dist/Exporter],
         'EXCLUDED' => [
             qw( t/pod.t
                 t/use.t
                 ),
         ],
-        'MAP' => {
-            't/'   => 'lib/',
-            'lib/' => 'lib/',
-        },
         'UPSTREAM' => 'blead',
     },
 
similarity index 98%
rename from lib/Exporter.t
rename to dist/Exporter/t/Exporter.t
index 06c4b05..d6ac63f 100644 (file)
@@ -1,12 +1,5 @@
 #!perl -w
 
-BEGIN {
-   if( $ENV{PERL_CORE} ) {
-        chdir 't' if -d 't';
-        @INC = '../lib';
-    }
-}
-
 # Can't use Test::Simple/More, they depend on Exporter.
 my $test;
 sub ok ($;$) {
index 576fe5c..4916945 100644 (file)
@@ -28,6 +28,7 @@ my @toolchain = qw(cpan/AutoLoader/lib
                   cpan/File-Path/lib
                   ext/re
                   dist/Term-ReadLine/lib
+                   dist/Exporter/lib
                   );
 
 # Used only in ExtUtils::Liblist::Kid::_win32_ext()