module-build-checkins Mailing List for Module::Build (Page 27)
Status: Beta
Brought to you by:
kwilliams
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(82) |
Dec
(58) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(49) |
Feb
(57) |
Mar
(49) |
Apr
(49) |
May
(2) |
Jun
(147) |
Jul
(60) |
Aug
(55) |
Sep
(51) |
Oct
(68) |
Nov
(61) |
Dec
(44) |
| 2006 |
Jan
(27) |
Feb
(38) |
Mar
(89) |
Apr
(31) |
May
(17) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ken W. <kwi...@us...> - 2005-06-19 13:41:07
|
Update of /cvsroot/module-build/Module-Build/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9619/t Modified Files: destinations.t Log Message: Handle win32 drive letters better Index: destinations.t =================================================================== RCS file: /cvsroot/module-build/Module-Build/t/destinations.t,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- destinations.t 8 Jun 2005 03:48:06 -0000 1.2 +++ destinations.t 19 Jun 2005 13:40:59 -0000 1.3 @@ -67,8 +67,9 @@ my $naive_prefix = sub { my ($path) = @_; + my $drive = ($path =~ s/^(\w:)// ? $1 : ''); # Win32 drive letters (my $bare = $path) =~ s!^\Q$site_prefix\E\b!!; - return catdir($prefix, $bare); + return catdir($drive . $prefix, $bare); }; ok( $m->install_destination( 'lib' ), |
|
From: Ken W. <kwi...@us...> - 2005-06-18 15:34:50
|
Update of /cvsroot/module-build/Module-Build/t/Sample In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18819/t/Sample Removed Files: META.yml Log Message: Don't track the META, it changes --- META.yml DELETED --- |
|
From: Ken W. <kwi...@us...> - 2005-06-18 00:33:51
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv606 Modified Files: MANIFEST Log Message: Index: MANIFEST =================================================================== RCS file: /cvsroot/module-build/Module-Build/MANIFEST,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- MANIFEST 15 Apr 2005 23:28:46 -0000 1.42 +++ MANIFEST 18 Jun 2005 00:33:43 -0000 1.43 @@ -33,6 +33,7 @@ t/basic.t t/common.pl t/compat.t +t/destinations.t t/ext.t t/extend.t t/files.t |
|
From: Ken W. <kwi...@us...> - 2005-06-18 00:33:08
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32646 Modified Files: Changes Log Message: Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.352 retrieving revision 1.353 diff -u -d -r1.352 -r1.353 --- Changes 17 Jun 2005 04:27:57 -0000 1.352 +++ Changes 18 Jun 2005 00:32:57 -0000 1.353 @@ -1,6 +1,6 @@ Revision history for Perl extension Module::Build. -0.27_02 +0.27_02 (Beta for 0.28) Fri Jun 17 19:32:21 CDT 2005 - Provided initial support for the --prefix installation parameter, which acts like MakeMaker's PREFIX. It is still highly recommended |
|
From: Ken W. <kwi...@us...> - 2005-06-17 04:28:07
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28163 Modified Files: Changes Log Message: Process PREFIX, DESTDIR, and INSTALL_BASE args to 'make install' Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.351 retrieving revision 1.352 diff -u -d -r1.351 -r1.352 --- Changes 13 Jun 2005 21:35:21 -0000 1.351 +++ Changes 17 Jun 2005 04:27:57 -0000 1.352 @@ -49,6 +49,11 @@ - When processing XS files, we now look for a typemap in lib/ as well as using the system's default typemap. [John Peacock] + - The DESTDIR, PREFIX, and INSTALL_BASE arguments to "make install" + are now supported for pass-through Makefiles (they've been + supported for quite a while as arguments to "perl + Makefile.PL"). [Requested by Guillaume Rousse] + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-17 04:28:05
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28163/lib/Module/Build Modified Files: Compat.pm Log Message: Process PREFIX, DESTDIR, and INSTALL_BASE args to 'make install' Index: Compat.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Compat.pm,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- Compat.pm 7 Jun 2005 21:47:47 -0000 1.62 +++ Compat.pm 17 Jun 2005 04:27:57 -0000 1.63 @@ -18,6 +18,9 @@ POLLUTE => sub { ('--extra_compiler_flags', '-DPERL_POLLUTE') }, INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ? 'core' : $_) }, LIB => sub { ('--install_path', 'lib='.shift()) }, + + # Some names they have in common + map {$_, lc($_)} qw(DESTDIR PREFIX INSTALL_BASE), ); |
|
From: Ken W. <kwi...@us...> - 2005-06-17 04:27:22
|
Update of /cvsroot/module-build/Module-Build/lib/Module In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27865/lib/Module Modified Files: Build.pm Log Message: Version bump Index: Build.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build.pm,v retrieving revision 1.182 retrieving revision 1.183 diff -u -d -r1.182 -r1.183 --- Build.pm 21 Apr 2005 01:59:54 -0000 1.182 +++ Build.pm 17 Jun 2005 04:27:14 -0000 1.183 @@ -15,7 +15,7 @@ use vars qw($VERSION @ISA); @ISA = qw(Module::Build::Base); -$VERSION = '0.27_01'; +$VERSION = '0.27_02'; $VERSION = eval $VERSION; # Okay, this is the brute-force method of finding out what kind of |
|
From: Ken W. <kwi...@us...> - 2005-06-16 18:44:15
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29327/lib/Module/Build Modified Files: Base.pm Log Message: FIX THIS FOR REAL Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.426 retrieving revision 1.427 diff -u -d -r1.426 -r1.427 --- Base.pm 13 Jun 2005 21:35:22 -0000 1.426 +++ Base.pm 16 Jun 2005 18:44:06 -0000 1.427 @@ -1246,7 +1246,7 @@ my @os_home_envs = qw( APPDATA HOME USERPROFILE WINDIR SYS$LOGIN ); foreach ( @os_home_envs ) { - return $_ if exists $ENV{$_} && defined $ENV{$_} && length $ENV{$_} && -d $ENV{$_}; + return $ENV{$_} if exists $ENV{$_} && defined $ENV{$_} && length $ENV{$_} && -d $ENV{$_}; } return; |
|
From: Ken W. <kwi...@us...> - 2005-06-14 03:24:09
|
Update of /cvsroot/module-build/Module-Build/lib/Module In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28064/lib/Module Modified Files: Tag: release-0_26_branch Build.pm Log Message: Version bump Index: Build.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build.pm,v retrieving revision 1.164.2.15 retrieving revision 1.164.2.16 diff -u -d -r1.164.2.15 -r1.164.2.16 --- Build.pm 14 Apr 2005 03:08:29 -0000 1.164.2.15 +++ Build.pm 14 Jun 2005 03:23:56 -0000 1.164.2.16 @@ -15,7 +15,7 @@ use vars qw($VERSION @ISA); @ISA = qw(Module::Build::Base); -$VERSION = '0.2610'; +$VERSION = '0.2611'; $VERSION = eval $VERSION; # Okay, this is the brute-force method of finding out what kind of |
|
From: Ken W. <kwi...@us...> - 2005-06-14 03:24:09
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28064 Modified Files: Tag: release-0_26_branch Changes Log Message: Version bump Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.48 retrieving revision 1.299.2.49 diff -u -d -r1.299.2.48 -r1.299.2.49 --- Changes 9 Jun 2005 23:27:16 -0000 1.299.2.48 +++ Changes 14 Jun 2005 03:23:56 -0000 1.299.2.49 @@ -1,6 +1,6 @@ Revision history for Perl extension Module::Build. -0.2611 +0.2611 Mon Jun 13 22:22:53 CDT 2005 - Fix the output of an informational message that we output when changing the 'shebang line' in installable scripts. [Robin Barker] |
|
From: Ken W. <kwi...@us...> - 2005-06-13 21:35:30
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18444/lib/Module/Build Modified Files: Base.pm Log Message: Look for a typemap in lib/ Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.425 retrieving revision 1.426 diff -u -d -r1.425 -r1.426 --- Base.pm 13 Jun 2005 21:33:27 -0000 1.425 +++ Base.pm 13 Jun 2005 21:35:22 -0000 1.426 @@ -2829,12 +2829,19 @@ my $xsubpp = Module::Build::ModuleInfo->find_module_by_name('ExtUtils::xsubpp') or die "Can't find ExtUtils::xsubpp in INC (@INC)"; - my $typemap = Module::Build::ModuleInfo->find_module_by_name('ExtUtils::typemap', \@INC); + my @typemaps; + push @typemaps, Module::Build::ModuleInfo->find_module_by_name('ExtUtils::typemap', \@INC); + my $lib_typemap = Module::Build::ModuleInfo->find_module_by_name('typemap', ['lib']); + if (defined $lib_typemap and -e $lib_typemap) { + push @typemaps, 'typemap'; + } + my $typemaps = join ' ', map qq{-typemap "$_"}, @typemaps; + my $cf = $self->{config}; my $perl = $self->{properties}{perl}; my $command = (qq{$perl "-I$cf->{installarchlib}" "-I$cf->{installprivlib}" "$xsubpp" -noprototypes } . - qq{-typemap "$typemap" "$file"}); + qq{$typemaps "$file"}); $self->log_info($command); my $fh = IO::File->new("> $args{outfile}") or die "Couldn't write $args{outfile}: $!"; |
|
From: Ken W. <kwi...@us...> - 2005-06-13 21:35:30
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18444 Modified Files: Changes Log Message: Look for a typemap in lib/ Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.350 retrieving revision 1.351 diff -u -d -r1.350 -r1.351 --- Changes 13 Jun 2005 21:33:26 -0000 1.350 +++ Changes 13 Jun 2005 21:35:21 -0000 1.351 @@ -46,6 +46,9 @@ - We now memoize the output of the internal _default_INC() method, since it uses backticks and might be kind of slow. + - When processing XS files, we now look for a typemap in lib/ as well + as using the system's default typemap. [John Peacock] + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-13 21:33:35
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17858/lib/Module/Build Modified Files: Base.pm Log Message: Memoize _default_INC Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.424 retrieving revision 1.425 diff -u -d -r1.424 -r1.425 --- Base.pm 13 Jun 2005 21:28:42 -0000 1.424 +++ Base.pm 13 Jun 2005 21:33:27 -0000 1.425 @@ -929,17 +929,21 @@ } # Determine the default @INC for this Perl -sub _default_INC { - my $self = shift; - - local $ENV{PERL5LIB}; # this is not considered part of the default. - - my $perl = ref($self) ? $self->perl : $self->find_perl_interpreter; - - my @inc = `$perl -le "print for \@INC"`; - chomp @inc; - - return @inc; +{ + my @default_inc; # Memoize + sub _default_INC { + my $self = shift; + return @default_inc if @default_inc; + + local $ENV{PERL5LIB}; # this is not considered part of the default. + + my $perl = ref($self) ? $self->perl : $self->find_perl_interpreter; + + my @inc = `$perl -le "print for \@INC"`; + chomp @inc; + + return @default_inc = @inc; + } } sub print_build_script { |
|
From: Ken W. <kwi...@us...> - 2005-06-13 21:33:35
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17858 Modified Files: Changes Log Message: Memoize _default_INC Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.349 retrieving revision 1.350 diff -u -d -r1.349 -r1.350 --- Changes 9 Jun 2005 11:45:17 -0000 1.349 +++ Changes 13 Jun 2005 21:33:26 -0000 1.350 @@ -43,6 +43,9 @@ of trying to find the home directory, because $ENV{HOME} isn't a very cross-platform variable. [Robert Rothenberg] + - We now memoize the output of the internal _default_INC() method, + since it uses backticks and might be kind of slow. + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-13 21:28:51
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14269/lib/Module/Build Modified Files: Base.pm Log Message: Fix some embarassing syntax errors Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.423 retrieving revision 1.424 diff -u -d -r1.423 -r1.424 --- Base.pm 9 Jun 2005 12:03:05 -0000 1.423 +++ Base.pm 13 Jun 2005 21:28:42 -0000 1.424 @@ -1241,8 +1241,8 @@ sub _home_dir { my @os_home_envs = qw( APPDATA HOME USERPROFILE WINDIR SYS$LOGIN ); - foreach ( @ENV{ @os_home_envs } ) { - return $_ if exists && defined && length && -d; + foreach ( @os_home_envs ) { + return $_ if exists $ENV{$_} && defined $ENV{$_} && length $ENV{$_} && -d $ENV{$_}; } return; |
|
From: Ken W. <kwi...@us...> - 2005-06-09 23:27:27
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3760/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: Backport the build_class stuff Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.31 retrieving revision 1.340.2.32 diff -u -d -r1.340.2.31 -r1.340.2.32 --- Base.pm 3 Jun 2005 16:40:04 -0000 1.340.2.31 +++ Base.pm 9 Jun 2005 23:27:17 -0000 1.340.2.32 @@ -37,6 +37,21 @@ $self->read_config; + # If someone called Module::Build->current() or + # Module::Build->new_from_context() and the correct class to use is + # actually a *subclass* of Module::Build, we may need to load that + # subclass here and re-delegate the resume() method to it. + unless ( UNIVERSAL::isa($self, $self->build_class) ) { + my $build_class = $self->build_class; + my $config_dir = $self->config_dir || '_build'; + my $build_lib = File::Spec->catdir( $config_dir, 'lib' ); + unshift( @INC, $build_lib ); + unless ( $build_class->can('new') ) { + eval "require $build_class; 1" or die "Failed to re-load '$build_class': $@"; + } + return $build_class->resume(@_); + } + unless ($self->_perl_is_same($self->{properties}{perl})) { my $perl = $self->find_perl_interpreter; warn(" * WARNING: Configuration was initially created with '$self->{properties}{perl}',\n". @@ -98,9 +113,11 @@ %input, }, }, $package; - + my ($p, $c) = ($self->{properties}, $self->{config}); + $p->{build_class} ||= ref $self; + # The following warning could be unnecessary if the user is running # an embedded perl, but there aren't too many of those around, and # embedded perls aren't usually used to install modules, and the @@ -419,6 +436,7 @@ # XXX huge hack alert - will revisit this later my %valid_properties = map {$_ => 1} qw( + build_class module_name dist_name dist_version |
|
From: Ken W. <kwi...@us...> - 2005-06-09 23:27:26
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3760 Modified Files: Tag: release-0_26_branch Changes Log Message: Backport the build_class stuff Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.47 retrieving revision 1.299.2.48 diff -u -d -r1.299.2.47 -r1.299.2.48 --- Changes 3 Jun 2005 16:39:50 -0000 1.299.2.47 +++ Changes 9 Jun 2005 23:27:16 -0000 1.299.2.48 @@ -5,6 +5,11 @@ - Fix the output of an informational message that we output when changing the 'shebang line' in installable scripts. [Robin Barker] + - Backported a change from the 0.27_xx branch that keeps track of any + custom Module::Build subclass that might have been created in the + Build.PL script, so that we can reinstantiate the right class in + new_from_context(). [Requested by Jos Boumans] + 0.2610 Fri Apr 15 08:25:01 CDT 2005 - new_from_context() was losing its arguments in some cases (and not |
|
From: Ken W. <kwi...@us...> - 2005-06-09 12:03:15
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23850/lib/Module/Build Modified Files: Base.pm Log Message: Split out a do_create_meta_yml method from ACTION_distmeta Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.422 retrieving revision 1.423 diff -u -d -r1.422 -r1.423 --- Base.pm 9 Jun 2005 11:45:17 -0000 1.422 +++ Base.pm 9 Jun 2005 12:03:05 -0000 1.423 @@ -2407,7 +2407,11 @@ $self->do_create_makefile_pl if $self->create_makefile_pl; $self->do_create_readme if $self->create_readme; - + $self->do_create_meta_yml; +} + +sub do_create_meta_yml { + my $self = shift; return if $self->{wrote_metadata}; my $p = $self->{properties}; |
|
From: Ken W. <kwi...@us...> - 2005-06-09 11:45:44
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14006 Modified Files: Changes Log Message: Iterate through various places to find a home directory Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.348 retrieving revision 1.349 diff -u -d -r1.348 -r1.349 --- Changes 9 Jun 2005 03:30:52 -0000 1.348 +++ Changes 9 Jun 2005 11:45:17 -0000 1.349 @@ -39,6 +39,10 @@ have been moved from the 'distdir' action to the 'distmeta' action. [David Golden] + - When looking for a .modulebuildrc file, we now use a fancier method + of trying to find the home directory, because $ENV{HOME} isn't a + very cross-platform variable. [Robert Rothenberg] + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-09 11:45:44
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14006/lib/Module/Build Modified Files: Base.pm Log Message: Iterate through various places to find a home directory Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.421 retrieving revision 1.422 diff -u -d -r1.421 -r1.422 --- Base.pm 9 Jun 2005 03:30:53 -0000 1.421 +++ Base.pm 9 Jun 2005 11:45:17 -0000 1.422 @@ -1237,14 +1237,26 @@ return %new_opts; } +# Look for a home directory on various systems. CPANPLUS does something like this. +sub _home_dir { + my @os_home_envs = qw( APPDATA HOME USERPROFILE WINDIR SYS$LOGIN ); + + foreach ( @ENV{ @os_home_envs } ) { + return $_ if exists && defined && length && -d; + } + + return; +} + # read ~/.modulebuildrc returning global options '*' and # options specific to the currently executing $action. sub read_modulebuildrc { my( $self, $action ) = @_; - return () unless exists( $ENV{HOME} ) && -e $ENV{HOME}; + my $home = $self->_home_dir; + return () unless defined $home; - my $modulebuildrc = File::Spec->catfile( $ENV{HOME}, '.modulebuildrc' ); + my $modulebuildrc = File::Spec->catfile( $home, '.modulebuildrc' ); return () unless -e $modulebuildrc; my $fh = IO::File->new( $modulebuildrc ) |
|
From: Ken W. <kwi...@us...> - 2005-06-09 03:31:02
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18280/lib/Module/Build Modified Files: Base.pm Log Message: Create the README and Makefile.PL in the 'distmeta' action Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.420 retrieving revision 1.421 diff -u -d -r1.420 -r1.421 --- Base.pm 9 Jun 2005 01:46:53 -0000 1.420 +++ Base.pm 9 Jun 2005 03:30:53 -0000 1.421 @@ -2175,6 +2175,8 @@ sub do_create_makefile_pl { my $self = shift; require Module::Build::Compat; + $self->delete_filetree('Makefile.PL'); + $self->log_info("Creating Makefile.PL\n"); Module::Build::Compat->create_makefile_pl($self->create_makefile_pl, $self, @_); $self->_add_to_manifest('MANIFEST', 'Makefile.PL'); } @@ -2182,6 +2184,8 @@ sub do_create_readme { my $self = shift; require Pod::Readme; + $self->delete_filetree('README'); + $self->log_info("Creating README\n"); my $parser = Pod::Readme->new; $parser->parse_from_file($self->dist_version_from, 'README', @_); $self->_add_to_manifest('MANIFEST', 'README'); @@ -2192,9 +2196,6 @@ $self->depends_on('distmeta'); - $self->do_create_makefile_pl if $self->create_makefile_pl; - $self->do_create_readme if $self->create_readme; - my $dist_files = $self->_read_manifest('MANIFEST') or die "Can't create distdir without a MANIFEST file - run 'manifest' action first"; delete $dist_files->{SIGNATURE}; # Don't copy, create a fresh one @@ -2206,6 +2207,7 @@ my $dist_dir = $self->dist_dir; $self->delete_filetree($dist_dir); + $self->log_info("Creating $dist_dir\n"); $self->add_to_cleanup($dist_dir); foreach my $file (keys %$dist_files) { @@ -2390,6 +2392,10 @@ sub ACTION_distmeta { my ($self) = @_; + + $self->do_create_makefile_pl if $self->create_makefile_pl; + $self->do_create_readme if $self->create_readme; + return if $self->{wrote_metadata}; my $p = $self->{properties}; @@ -2405,6 +2411,7 @@ # If we're in the distdir, the metafile may exist and be non-writable. $self->delete_filetree($self->{metafile}); + $self->log_info("Creating $self->{metafile}\n"); # Since we're building ourself, we have to do some special stuff # here: the ConfigData module is found in blib/lib. |
|
From: Ken W. <kwi...@us...> - 2005-06-09 03:31:01
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18280 Modified Files: Changes Log Message: Create the README and Makefile.PL in the 'distmeta' action Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.347 retrieving revision 1.348 diff -u -d -r1.347 -r1.348 --- Changes 9 Jun 2005 01:46:53 -0000 1.347 +++ Changes 9 Jun 2005 03:30:52 -0000 1.348 @@ -35,6 +35,10 @@ "install_dest" parameters can now begin with "~" or "~user", and we'll de-tilde-ify them by using glob(). + - The (optional) auto-creation of the README and Makefile.PL files + have been moved from the 'distdir' action to the 'distmeta' + action. [David Golden] + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-09 01:47:01
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29245/lib/Module/Build Modified Files: Base.pm Log Message: Add detildefication Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.419 retrieving revision 1.420 diff -u -d -r1.419 -r1.420 --- Base.pm 7 Jun 2005 21:40:11 -0000 1.419 +++ Base.pm 9 Jun 2005 01:46:53 -0000 1.420 @@ -124,7 +124,12 @@ } } - + # De-tilde-ify any path parameters + for (qw(prefix install_base install_path install_dest)) { + next unless exists $p->{$_} and defined $p->{$_}; + ($p->{$_}) = glob($p->{$_}) if $p->{$_} =~ /^~/; + } + # The following warning could be unnecessary if the user is running # an embedded perl, but there aren't too many of those around, and # embedded perls aren't usually used to install modules, and the |
|
From: Ken W. <kwi...@us...> - 2005-06-09 01:47:01
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29245 Modified Files: Changes Log Message: Add detildefication Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.346 retrieving revision 1.347 diff -u -d -r1.346 -r1.347 --- Changes 8 Jun 2005 03:50:03 -0000 1.346 +++ Changes 9 Jun 2005 01:46:53 -0000 1.347 @@ -31,6 +31,10 @@ that it's not a core module, but the advantages are pretty nice. [Robert Rothenberg] + - The values of the "prefix", "install_base", "install_path", and + "install_dest" parameters can now begin with "~" or "~user", and + we'll de-tilde-ify them by using glob(). + 0.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005 Backward-incompatible (but better) changes: |
|
From: Ken W. <kwi...@us...> - 2005-06-08 04:13:25
|
Update of /cvsroot/module-build/Module-Build/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3200/t Modified Files: compat.t Log Message: PREFIX doesn't generate an error anymore Index: compat.t =================================================================== RCS file: /cvsroot/module-build/Module-Build/t/compat.t,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- compat.t 31 Mar 2005 09:40:14 -0000 1.23 +++ compat.t 8 Jun 2005 04:13:15 -0000 1.24 @@ -22,7 +22,7 @@ my @makefile_types = qw(small passthrough traditional); my $tests_per_type = 10; -plan tests => 32 + @makefile_types*$tests_per_type; +plan tests => 30 + @makefile_types*$tests_per_type; ok(1); # Loaded my @make = $Config{make} eq 'nmake' ? ('nmake', '-nologo') : ($Config{make}); @@ -132,11 +132,6 @@ $output =~ s/^/# /gm; # Don't confuse our own test output ok $output, qr/# test\.+ok\s+# All/, 'Should be non-verbose'; - $output = stderr_of( sub { $ran_ok = $build->do_system(@make, 'install', "PREFIX=$libdir", "install_base=$libdir") } ); - ok !$ran_ok; # PREFIX should generate an error - ok $output, qr/PREFIX/, "Error should mention PREFIX"; - - $build->delete_filetree($libdir); ok (! -e $libdir, 1, "Sample installation directory should be cleaned up"); |