Move CPAN from lib/ to ext/
Chris Williams [Tue, 8 Sep 2009 10:02:09 +0000 (11:02 +0100)]
48 files changed:
MANIFEST
Porting/Maintainers.pl
ext/CPAN/Makefile.PL [new file with mode: 0644]
ext/CPAN/lib/CPAN.pm [moved from lib/CPAN.pm with 100% similarity]
ext/CPAN/lib/CPAN/API/HOWTO.pod [moved from lib/CPAN/API/HOWTO.pod with 100% similarity]
ext/CPAN/lib/CPAN/Author.pm [moved from lib/CPAN/Author.pm with 100% similarity]
ext/CPAN/lib/CPAN/Bundle.pm [moved from lib/CPAN/Bundle.pm with 100% similarity]
ext/CPAN/lib/CPAN/CacheMgr.pm [moved from lib/CPAN/CacheMgr.pm with 100% similarity]
ext/CPAN/lib/CPAN/Complete.pm [moved from lib/CPAN/Complete.pm with 100% similarity]
ext/CPAN/lib/CPAN/Debug.pm [moved from lib/CPAN/Debug.pm with 100% similarity]
ext/CPAN/lib/CPAN/DeferredCode.pm [moved from lib/CPAN/DeferredCode.pm with 100% similarity]
ext/CPAN/lib/CPAN/Distribution.pm [moved from lib/CPAN/Distribution.pm with 100% similarity]
ext/CPAN/lib/CPAN/Distroprefs.pm [moved from lib/CPAN/Distroprefs.pm with 100% similarity]
ext/CPAN/lib/CPAN/Distrostatus.pm [moved from lib/CPAN/Distrostatus.pm with 100% similarity]
ext/CPAN/lib/CPAN/Exception/RecursiveDependency.pm [moved from lib/CPAN/Exception/RecursiveDependency.pm with 100% similarity]
ext/CPAN/lib/CPAN/Exception/blocked_urllist.pm [moved from lib/CPAN/Exception/blocked_urllist.pm with 100% similarity]
ext/CPAN/lib/CPAN/Exception/yaml_not_installed.pm [moved from lib/CPAN/Exception/yaml_not_installed.pm with 100% similarity]
ext/CPAN/lib/CPAN/FTP.pm [moved from lib/CPAN/FTP.pm with 100% similarity]
ext/CPAN/lib/CPAN/FTP/netrc.pm [moved from lib/CPAN/FTP/netrc.pm with 100% similarity]
ext/CPAN/lib/CPAN/FirstTime.pm [moved from lib/CPAN/FirstTime.pm with 100% similarity]
ext/CPAN/lib/CPAN/HandleConfig.pm [moved from lib/CPAN/HandleConfig.pm with 100% similarity]
ext/CPAN/lib/CPAN/Index.pm [moved from lib/CPAN/Index.pm with 100% similarity]
ext/CPAN/lib/CPAN/InfoObj.pm [moved from lib/CPAN/InfoObj.pm with 100% similarity]
ext/CPAN/lib/CPAN/Kwalify.pm [moved from lib/CPAN/Kwalify.pm with 100% similarity]
ext/CPAN/lib/CPAN/Kwalify/distroprefs.dd [moved from lib/CPAN/Kwalify/distroprefs.dd with 100% similarity]
ext/CPAN/lib/CPAN/Kwalify/distroprefs.yml [moved from lib/CPAN/Kwalify/distroprefs.yml with 100% similarity]
ext/CPAN/lib/CPAN/LWP/UserAgent.pm [moved from lib/CPAN/LWP/UserAgent.pm with 100% similarity]
ext/CPAN/lib/CPAN/Module.pm [moved from lib/CPAN/Module.pm with 100% similarity]
ext/CPAN/lib/CPAN/Nox.pm [moved from lib/CPAN/Nox.pm with 100% similarity]
ext/CPAN/lib/CPAN/PAUSE2003.pub [moved from lib/CPAN/PAUSE2003.pub with 100% similarity]
ext/CPAN/lib/CPAN/PAUSE2005.pub [moved from lib/CPAN/PAUSE2005.pub with 100% similarity]
ext/CPAN/lib/CPAN/PAUSE2007.pub [moved from lib/CPAN/PAUSE2007.pub with 100% similarity]
ext/CPAN/lib/CPAN/PAUSE2009.pub [moved from lib/CPAN/PAUSE2009.pub with 100% similarity]
ext/CPAN/lib/CPAN/Prompt.pm [moved from lib/CPAN/Prompt.pm with 100% similarity]
ext/CPAN/lib/CPAN/Queue.pm [moved from lib/CPAN/Queue.pm with 100% similarity]
ext/CPAN/lib/CPAN/SIGNATURE [moved from lib/CPAN/SIGNATURE with 100% similarity]
ext/CPAN/lib/CPAN/Shell.pm [moved from lib/CPAN/Shell.pm with 100% similarity]
ext/CPAN/lib/CPAN/Tarzip.pm [moved from lib/CPAN/Tarzip.pm with 100% similarity]
ext/CPAN/lib/CPAN/URL.pm [moved from lib/CPAN/URL.pm with 100% similarity]
ext/CPAN/lib/CPAN/Version.pm [moved from lib/CPAN/Version.pm with 100% similarity]
ext/CPAN/scripts/cpan [moved from lib/CPAN/bin/cpan with 100% similarity]
ext/CPAN/t/01loadme.t [moved from lib/CPAN/t/01loadme.t with 100% similarity]
ext/CPAN/t/02nox.t [moved from lib/CPAN/t/02nox.t with 100% similarity]
ext/CPAN/t/03pkgs.t [moved from lib/CPAN/t/03pkgs.t with 100% similarity]
ext/CPAN/t/10version.t [moved from lib/CPAN/t/10version.t with 100% similarity]
ext/CPAN/t/11mirroredby.t [moved from lib/CPAN/t/11mirroredby.t with 100% similarity]
lib/.gitignore
utils/cpan.PL

index 4573af7..f0e38ca 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -379,6 +379,44 @@ ext/Compress-Raw-Zlib/zlib-src/zlib.h      Compress::Raw::Zlib
 ext/Compress-Raw-Zlib/zlib-src/zutil.c Compress::Raw::Zlib
 ext/Compress-Raw-Zlib/zlib-src/zutil.h Compress::Raw::Zlib
 ext/Compress-Raw-Zlib/Zlib.xs          Compress::Raw::Zlib
+ext/CPAN/lib/CPAN/API/HOWTO.pod                recipe book for programming with CPAN.pm
+ext/CPAN/lib/CPAN/Author.pm            helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Bundle.pm            helper package for CPAN.pm
+ext/CPAN/lib/CPAN/CacheMgr.pm          helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Complete.pm          helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Debug.pm             helper package for CPAN.pm
+ext/CPAN/lib/CPAN/DeferredCode.pm      helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Distribution.pm      helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Distroprefs.pm               helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Distrostatus.pm      helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Exception/blocked_urllist.pm helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Exception/RecursiveDependency.pm     helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Exception/yaml_not_installed.pm      helper package for CPAN.pm
+ext/CPAN/lib/CPAN/FirstTime.pm         Utility for creating CPAN config files
+ext/CPAN/lib/CPAN/FTP/netrc.pm         helper package for CPAN.pm
+ext/CPAN/lib/CPAN/FTP.pm                       helper package for CPAN.pm
+ext/CPAN/lib/CPAN/HandleConfig.pm      helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Index.pm             helper package for CPAN.pm
+ext/CPAN/lib/CPAN/InfoObj.pm           helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Kwalify/distroprefs.dd               helper file for validating config files
+ext/CPAN/lib/CPAN/Kwalify/distroprefs.yml      helper file for validating config files
+ext/CPAN/lib/CPAN/Kwalify.pm           helper package for CPAN.pm
+ext/CPAN/lib/CPAN/LWP/UserAgent.pm     helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Module.pm            helper package for CPAN.pm
+ext/CPAN/lib/CPAN/Nox.pm                       Runs CPAN while avoiding compiled extensions
+ext/CPAN/lib/CPAN/PAUSE2003.pub                CPAN public key
+ext/CPAN/lib/CPAN/PAUSE2005.pub                CPAN public key
+ext/CPAN/lib/CPAN/PAUSE2007.pub                CPAN public key
+ext/CPAN/lib/CPAN/PAUSE2009.pub                CPAN public key
+ext/CPAN/lib/CPAN.pm                   Interface to Comprehensive Perl Archive Network
+ext/CPAN/lib/CPAN/Prompt.pm
+ext/CPAN/lib/CPAN/Queue.pm             queueing system for CPAN.pm
+ext/CPAN/lib/CPAN/Shell.pm
+ext/CPAN/lib/CPAN/SIGNATURE            CPAN public key
+ext/CPAN/lib/CPAN/Tarzip.pm            helper package for CPAN.pm
+ext/CPAN/lib/CPAN/URL.pm
+ext/CPAN/lib/CPAN/Version.pm           Simple math with different flavors of version strings
+ext/CPAN/Makefile.PL
 ext/CPANPLUS/bin/cpan2dist     the cpan2dist utility
 ext/CPANPLUS/bin/cpanp the cpanp utility
 ext/CPANPLUS/bin/cpanp-run-perl        the cpanp-run-perl utility
@@ -473,6 +511,12 @@ ext/CPANPLUS/t/dummy-CPAN/autobundle/Snapshot.pm   CPANPLUS tests
 ext/CPANPLUS/t/dummy-CPAN/modules/02packages.details.txt.gz    CPANPLUS tests
 ext/CPANPLUS/t/dummy-CPAN/modules/03modlist.data.gz    CPANPLUS tests
 ext/CPANPLUS/t/inc/conf.pl     CPANPLUS tests
+ext/CPAN/scripts/cpan          easily interact with CPAN from the command line
+ext/CPAN/t/01loadme.t          See if CPAN the module works
+ext/CPAN/t/02nox.t             See if CPAN::Nox works
+ext/CPAN/t/03pkgs.t            See if CPAN::Version works
+ext/CPAN/t/10version.t         See if CPAN the module works
+ext/CPAN/t/11mirroredby.t              See if CPAN::Mirrored::By works
 ext/Cwd/Changes                        Cwd extension Changelog
 ext/Cwd/Cwd.xs                 Cwd extension external subroutines
 ext/Cwd/Makefile.PL            Cwd extension makefile maker
@@ -2367,49 +2411,6 @@ lib/Config.t                     See if Config works
 lib/constant.pm                        For "use constant"
 lib/constant.t                 See if compile-time constants work
 lib/CORE.pod                   document the CORE namespace
-lib/CPAN/API/HOWTO.pod         recipe book for programming with CPAN.pm
-lib/CPAN/Author.pm             helper package for CPAN.pm
-lib/CPAN/bin/cpan              easily interact with CPAN from the command line
-lib/CPAN/Bundle.pm             helper package for CPAN.pm
-lib/CPAN/CacheMgr.pm           helper package for CPAN.pm
-lib/CPAN/Complete.pm           helper package for CPAN.pm
-lib/CPAN/Debug.pm              helper package for CPAN.pm
-lib/CPAN/DeferredCode.pm       helper package for CPAN.pm
-lib/CPAN/Distribution.pm       helper package for CPAN.pm
-lib/CPAN/Distroprefs.pm                helper package for CPAN.pm
-lib/CPAN/Distrostatus.pm       helper package for CPAN.pm
-lib/CPAN/Exception/blocked_urllist.pm  helper package for CPAN.pm
-lib/CPAN/Exception/RecursiveDependency.pm      helper package for CPAN.pm
-lib/CPAN/Exception/yaml_not_installed.pm       helper package for CPAN.pm
-lib/CPAN/FirstTime.pm          Utility for creating CPAN config files
-lib/CPAN/FTP/netrc.pm          helper package for CPAN.pm
-lib/CPAN/FTP.pm                        helper package for CPAN.pm
-lib/CPAN/HandleConfig.pm       helper package for CPAN.pm
-lib/CPAN/Index.pm              helper package for CPAN.pm
-lib/CPAN/InfoObj.pm            helper package for CPAN.pm
-lib/CPAN/Kwalify/distroprefs.dd                helper file for validating config files
-lib/CPAN/Kwalify/distroprefs.yml       helper file for validating config files
-lib/CPAN/Kwalify.pm            helper package for CPAN.pm
-lib/CPAN/LWP/UserAgent.pm      helper package for CPAN.pm
-lib/CPAN/Module.pm             helper package for CPAN.pm
-lib/CPAN/Nox.pm                        Runs CPAN while avoiding compiled extensions
-lib/CPAN/PAUSE2003.pub         CPAN public key
-lib/CPAN/PAUSE2005.pub         CPAN public key
-lib/CPAN/PAUSE2007.pub         CPAN public key
-lib/CPAN/PAUSE2009.pub         CPAN public key
-lib/CPAN.pm                    Interface to Comprehensive Perl Archive Network
-lib/CPAN/Prompt.pm
-lib/CPAN/Queue.pm              queueing system for CPAN.pm
-lib/CPAN/Shell.pm
-lib/CPAN/SIGNATURE             CPAN public key
-lib/CPAN/t/01loadme.t          See if CPAN the module works
-lib/CPAN/t/02nox.t             See if CPAN::Nox works
-lib/CPAN/t/03pkgs.t            See if CPAN::Version works
-lib/CPAN/t/10version.t         See if CPAN the module works
-lib/CPAN/t/11mirroredby.t              See if CPAN::Mirrored::By works
-lib/CPAN/Tarzip.pm             helper package for CPAN.pm
-lib/CPAN/URL.pm
-lib/CPAN/Version.pm            Simple math with different flavors of version strings
 lib/ctime.pl                   A ctime workalike
 lib/Cwd.pm                     Various cwd routines (getcwd, fastcwd, chdir)
 lib/DBM_Filter/Changes         DBM Filter Change history
index e3be5a7..1672c6e 100755 (executable)
@@ -383,7 +383,7 @@ use File::Glob qw(:case);
        {
        'MAINTAINER'    => 'andk',
        'DISTRIBUTION'  => 'ANDK/CPAN-1.9402.tar.gz',
-       'FILES'         => q[lib/CPAN.pm lib/CPAN],
+       'FILES'         => q[ext/CPAN],
        'EXCLUDED'      => [ qr{^distroprefs/},
                             qr{^inc/Test/},
                             qr{^t/CPAN/authors/},
@@ -419,10 +419,6 @@ use File::Glob qw(:case);
                                t/yaml_code.yml
                               },
                           ],
-       'MAP'           => { 'lib/'     => 'lib/',
-                            ''         => 'lib/CPAN/',
-                            'scripts/' => 'lib/CPAN/bin/',
-                          },
        'CPAN'          => 1,
        'UPSTREAM'      => 'CPAN',
        },
diff --git a/ext/CPAN/Makefile.PL b/ext/CPAN/Makefile.PL
new file mode 100644 (file)
index 0000000..589b597
--- /dev/null
@@ -0,0 +1,10 @@
+use strict;
+use ExtUtils::MakeMaker;
+
+WriteMakefile (
+    NAME            => 'CPAN',
+    VERSION_FROM    => 'lib/CPAN.pm', # finds $VERSION
+    EXE_FILES       => ['scripts/cpan'],
+    AUTHOR          => 'Andreas Koenig <andreas.koenig.gmwojprw@franz.ak.mind.de>',
+    ABSTRACT_FROM   => 'lib/CPAN.pm',
+);
similarity index 100%
rename from lib/CPAN.pm
rename to ext/CPAN/lib/CPAN.pm
similarity index 100%
rename from lib/CPAN/Debug.pm
rename to ext/CPAN/lib/CPAN/Debug.pm
similarity index 100%
rename from lib/CPAN/FTP.pm
rename to ext/CPAN/lib/CPAN/FTP.pm
similarity index 100%
rename from lib/CPAN/Index.pm
rename to ext/CPAN/lib/CPAN/Index.pm
similarity index 100%
rename from lib/CPAN/Nox.pm
rename to ext/CPAN/lib/CPAN/Nox.pm
similarity index 100%
rename from lib/CPAN/Queue.pm
rename to ext/CPAN/lib/CPAN/Queue.pm
similarity index 100%
rename from lib/CPAN/Shell.pm
rename to ext/CPAN/lib/CPAN/Shell.pm
similarity index 100%
rename from lib/CPAN/URL.pm
rename to ext/CPAN/lib/CPAN/URL.pm
similarity index 100%
rename from lib/CPAN/bin/cpan
rename to ext/CPAN/scripts/cpan
similarity index 100%
rename from lib/CPAN/t/01loadme.t
rename to ext/CPAN/t/01loadme.t
similarity index 100%
rename from lib/CPAN/t/02nox.t
rename to ext/CPAN/t/02nox.t
similarity index 100%
rename from lib/CPAN/t/03pkgs.t
rename to ext/CPAN/t/03pkgs.t
index 32377b6..85422de 100644 (file)
 /Config_git.pl
 /CGI
 /CGI.pm
+/CPAN.pm
+/CPAN
+/CPAN/API
+/CPAN/API/HOWTO.pod
+/CPAN/Author.pm
+/CPAN/Bundle.pm
+/CPAN/CacheMgr.pm
+/CPAN/Complete.pm
+/CPAN/Debug.pm
+/CPAN/DeferredCode.pm
+/CPAN/Distribution.pm
+/CPAN/Distroprefs.pm
+/CPAN/Distrostatus.pm
+/CPAN/Exception
+/CPAN/Exception/RecursiveDependency.pm
+/CPAN/Exception/blocked_urllist.pm
+/CPAN/Exception/yaml_not_installed.pm
+/CPAN/FTP.pm
+/CPAN/FTP
+/CPAN/FTP/netrc.pm
+/CPAN/FirstTime.pm
+/CPAN/HandleConfig.pm
+/CPAN/Index.pm
+/CPAN/InfoObj.pm
+/CPAN/Kwalify.pm
+/CPAN/Kwalify
+/CPAN/Kwalify/distroprefs.dd
+/CPAN/Kwalify/distroprefs.yml
+/CPAN/LWP
+/CPAN/LWP/UserAgent.pm
+/CPAN/Module.pm
+/CPAN/Nox.pm
+/CPAN/PAUSE2003.pub
+/CPAN/PAUSE2005.pub
+/CPAN/PAUSE2007.pub
+/CPAN/PAUSE2009.pub
+/CPAN/Prompt.pm
+/CPAN/Queue.pm
+/CPAN/SIGNATURE
+/CPAN/Shell.pm
+/CPAN/Tarzip.pm
+/CPAN/URL.pm
+/CPAN/Version.pm
 /CPANPLUS.pm
 /CPANPLUS/Backend.pm
 /CPANPLUS/Backend
index 5e12d78..4752843 100644 (file)
@@ -33,7 +33,7 @@ $Config{startperl}
 
 use File::Spec;
 
-my $cpan = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", "CPAN", "bin"), "cpan");
+my $cpan = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "ext", "CPAN", "scripts"), "cpan");
 
 if (open(CPAN, $cpan)) {
     print OUT <CPAN>;