Permalink
Browse files

downloader config for CPAN

  • Loading branch information...
1 parent e577c02 commit 2bbc540a06078671746f959cdedf825ece4d323d @dann committed Feb 23, 2010
Showing with 136 additions and 44 deletions.
  1. +105 −0 conf/config-rpm-cpanplus.yaml
  2. +12 −44 conf/config-rpm.yaml
  3. +6 −0 lib/CPAN/Packager/Util.pm
  4. +1 −0 patches/README
  5. +12 −0 patches/perlreq.patch
View
105 conf/config-rpm-cpanplus.yaml
@@ -0,0 +1,105 @@
+---
+global:
+ cpan_mirrors:
+ - file:///home/dann/minicpan/
+ fix_module_name:
+ - from: Class::Classgen::classgen
+ to: Class::Classgen::Attribute
+ fix_package_depends: []
+ no_depends:
+ # default
+ - module: perl
+ - module: mod_perl
+ - module: version
+ # PathTools
+ - module: File::Copy
+ - module: File::Spec
+ - module: File::Spec::Functions
+ - module: File::Spec::Mac
+ - module: File::Spec::OS2
+ - module: File::Spec::Unix
+ - module: File::Spec::Win32
+ - module: File::Temp
+ - module: File::chdir
+ - module: PathTools
+ # IO Compress
+ - module: IO::Compress
+ - module: IO::Compress::Gzip
+ - module: IO::Compress::Bzip2
+ - module: IO::Compress::Base
+ - module: IO::Compress::Zlib
+ - module: Compress::Raw::Zlib
+ - module: Compress::Zlib
+ - module: IO::Zlib
+ # Testing
+ - module: Text::Exception
+ - module: Test::Simple
+ - module: Test::Harness
+ # other
+ - module: CGI
+ - module: Class::Accessor
+ - module: Class::Accessor::Fast
+ - module: Cwd
+ - module: Devel::PPPort
+ - module: Encode
+ - module: ExtUtils::MakeMaker
+ - module: ExtUtils::Install
+ - module: 'Filter # brokes?'
+ - module: HTTP::Request
+ - module: HTTP::Response
+ - module: IO::stringy
+ - module: kurila
+ - module: List::Util
+ - module: Module::Install
+ - module: Module::Install::AuthorTests
+ - module: Pod::Parser
+ - module: Scalar::List::Utils
+ - module: Scalar::Util
+ - module: Sub::Uplevel
+ skip_name_resolve_modules: []
+
+modules:
+ - module: CGI::Simple
+ no_depends:
+ - module: IO::Scalar
+ - module: Test::Exception
+ depends:
+ - module: Test::Simple
+ - module: Sub::Uplevel
+ no_depends:
+ - module: Test::Builder::Tester
+ skip_test: 1
+ - module: Sub::Uplevel
+ skip_test: 1
+ - module: FindBin::libs
+ skip_test: 1
+ - module: HTTP::Request::AsCGI
+ skip_build: 1
+ - module: IO::Compress::Base
+ skip_build: 1
+ - module: MooseX::MethodAttributes::Inheritable
+ skip_build: 1
+ - module: Perl::MinimumVersion
+ skip_test: 1
+ - module: PathTools
+ skip_build: 1
+ - module: Scalar::List::Utils
+ skip_build: 1
+ - module: Module::Setup
+ no_depends:
+ - module: Module::Install::AuthorTests
+ - module: YAML
+ no_depends:
+ - module: Test::Base
+ - module: Test::Base::Filter
+ - module: Catalyst::Runtime
+ no_depends:
+ - module: HTTP::Request::AsCGI
+ - module: Test::Exception
+ - module: Acme
+ custom:
+ tgz_path: ~/.cpanpackager/custom_module/Acme-1.11111.tar.gz
+ patches:
+ - ~/.cpanpackager/custom_module/acme_test.patch
+ dist_name: Acme
+ version: 1.11111
View
56 conf/config-rpm.yaml
@@ -5,86 +5,54 @@ global:
fix_module_name:
- from: Class::Classgen::classgen
to: Class::Classgen::Attribute
+ - from: IO::Scalar
+ to: IO::stringy
+ - from: podlators
+ to: Pod::Man
fix_package_depends: []
no_depends:
# default
- module: perl
- module: mod_perl
- module: version
- # PathTools
- - module: File::Copy
- module: File::Spec
- module: File::Spec::Functions
- module: File::Spec::Mac
- module: File::Spec::OS2
- module: File::Spec::Unix
- module: File::Spec::Win32
- - module: File::Temp
- - module: File::chdir
- - module: PathTools
- # IO Compress
- - module: IO::Compress
- - module: IO::Compress::Gzip
- - module: IO::Compress::Bzip2
- - module: IO::Compress::Base
- - module: IO::Compress::Zlib
- - module: Compress::Raw::Zlib
- - module: Compress::Zlib
- - module: IO::Zlib
- # Testing
- - module: Text::Exception
- - module: Test::Simple
- - module: Test::Harness
# other
- - module: CGI
- - module: Class::Accessor
- - module: Class::Accessor::Fast
- - module: Cwd
- - module: Devel::PPPort
- - module: Encode
- - module: ExtUtils::MakeMaker
- - module: ExtUtils::Install
- module: 'Filter # brokes?'
- module: HTTP::Request
- module: HTTP::Response
- - module: IO::stringy
+ - module: HTTP::Request::AsCGI
+ - module: IO::Socket::INET
- module: kurila
- - module: List::Util
- module: Module::Install
- module: Module::Install::AuthorTests
- - module: Pod::Parser
- - module: Scalar::List::Utils
- - module: Scalar::Util
- - module: Sub::Uplevel
skip_name_resolve_modules: []
modules:
- - module: CGI::Simple
- no_depends:
- - module: IO::Scalar
- module: Test::Exception
depends:
- module: Test::Simple
- module: Sub::Uplevel
no_depends:
- module: Test::Builder::Tester
skip_test: 1
- - module: Sub::Uplevel
- skip_test: 1
- - module: FindBin::libs
- skip_test: 1
- - module: HTTP::Request::AsCGI
- skip_build: 1
- module: IO::Compress::Base
skip_build: 1
- module: MooseX::MethodAttributes::Inheritable
skip_build: 1
- module: Perl::MinimumVersion
skip_test: 1
- - module: PathTools
- skip_build: 1
- - module: Scalar::List::Utils
+ - module: HTTP::Request::AsCGI
skip_build: 1
+ - module: libwww-perl
+ no_depends:
+ - module: Authen::NTLM
+ - module: HTTP::GHTTP
+ - module: Win32
- module: Module::Setup
no_depends:
- module: Module::Install::AuthorTests
View
6 lib/CPAN/Packager/Util.pm
@@ -4,9 +4,11 @@ use warnings;
use List::Util qw/first/;
use IPC::Cmd qw(run);
use Log::Log4perl qw(:easy);
+use CPAN::Packager::ListUtil qw(any);
our $DEFAULT_COMMAND_TIMEOUT = 30 * 60;
our $DEFAULT_VERVOSE_MODE = 0;
+our @EXCLUSION_MODULE_LIST = ('File::Path', 'PathTools', 'ExtUtils::MakeMaker');
sub topological_sort {
my ( $target, $modules ) = @_;
@@ -18,11 +20,15 @@ sub topological_sort {
&& @{ $modules->{$target}->{depends} } )
{
for my $mod ( @{ $modules->{$target}->{depends} } ) {
+ if(any { $mod eq $_ } @EXCLUSION_MODULE_LIST) {
+ next;
+ }
# ex) fix for List::AllUtils
if ( $mod eq $target ) {
next;
}
+
my $result = CPAN::Packager::Util::topological_sort( $mod,
$modules );
push @results, @{$result};
View
1 patches/README
@@ -0,0 +1 @@
+perlreq.patch - Apply it to /usr/lib/rpm/perl.req
View
12 patches/perlreq.patch
@@ -0,0 +1,12 @@
+--- /usr/lib/rpm/perl.req.orig 2010-02-23 21:21:34.000000000 +0900
++++ /usr/lib/rpm/perl.req 2010-02-23 21:23:21.000000000 +0900
+@@ -233,9 +233,6 @@
+ # basename of *.ph files
+
+ ($module =~ m/\.ph$/) && next;
+-
+- $require{$module}=$version;
+- $line{$module}=$_;
+ }
+
+ }

0 comments on commit 2bbc540

Please sign in to comment.