From: Jarkko Hietaniemi Date: Mon, 4 Aug 2003 04:44:08 +0000 (+0000) Subject: Upgrade to ExtUtils::MakeMaker 6.15. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=64964e6db0c4795cc54eb4a384a3552aad1ae32d;p=p5sagit%2Fp5-mst-13.2.git Upgrade to ExtUtils::MakeMaker 6.15. p4raw-id: //depot/perl@20464 --- diff --git a/lib/ExtUtils/Changes b/lib/ExtUtils/Changes index f4a7c37..f7d9216 100644 --- a/lib/ExtUtils/Changes +++ b/lib/ExtUtils/Changes @@ -1,3 +1,17 @@ +6.15 Sun Aug 3 16:41:05 PDT 2003 + - Make FIXIN on Win32 use the new pl2bat rather than an already + installed one when building the core (Mattia Barbon) + +6.14 Sun Aug 3 16:23:27 PDT 2003 + - Adding a reference to the Module::Build META.yml spec in the META.yml + itself and the metafile documentation. + - Removed Begin/End comments from manifypods that were getting in the + way of users adding code to the manifypods target. + - Putting a POD2MAN macro back as an alias to POD2MAN_EXE and using + it instead of POD2MAN. This allows people to generate their own man + installation targets in a backwards compatible way. + * Adding reference to the Module::Build META file spec in the docs. + 6.13 Thu Jul 31 16:48:01 PDT 2003 - Generated META.yml now has the prereqs in sorted order (Andy Lester) - Arguments to child Makefile.PLs were still having .. prepended. This @@ -24,7 +38,6 @@ * Noting where to find make in the README * Noting that MakeMaker does not produce a GNU make compatible Makefile on Windows. - * 6.10_08 with a new version #. 6.10_08 Mon Jul 21 18:17:06 PDT 2003 * $Config{installvendorman*dir} was being ignored and our default diff --git a/lib/ExtUtils/META.yml b/lib/ExtUtils/META.yml index afcdb13..0f08ff3 100644 --- a/lib/ExtUtils/META.yml +++ b/lib/ExtUtils/META.yml @@ -1,6 +1,7 @@ +# http://module-build.sourceforge.net/META-spec.html #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# name: ExtUtils-MakeMaker -version: 6.13 +version: 6.15 version_from: lib/ExtUtils/MakeMaker.pm installdirs: perl requires: @@ -10,4 +11,4 @@ requires: Pod::Man: 0 distribution_type: module -generated_by: ExtUtils::MakeMaker version 6.13 +generated_by: ExtUtils::MakeMaker version 6.15 diff --git a/lib/ExtUtils/MM_Any.pm b/lib/ExtUtils/MM_Any.pm index 347ae39..8b418c0 100644 --- a/lib/ExtUtils/MM_Any.pm +++ b/lib/ExtUtils/MM_Any.pm @@ -2,7 +2,7 @@ package ExtUtils::MM_Any; use strict; use vars qw($VERSION @ISA); -$VERSION = 0.06; +$VERSION = 0.07; @ISA = qw(File::Spec); use Config; @@ -326,18 +326,15 @@ put them into the INST_* directories. sub manifypods { my $self = shift; - my $POD2MAN_EXE_macro = $self->POD2MAN_EXE_macro(); + my $POD2MAN_macro = $self->POD2MAN_macro(); my $manifypods_target = $self->manifypods_target(); return <{"MAN${section}PODS"}; push @man_cmds, $self->split_command(<POD2MAN_EXE_macro + my $pod2man_macro = $self->POD2MAN_macro -Returns a definition for the POD2MAN_EXE macro. This is a program +Returns a definition for the POD2MAN macro. This is a program which emulates the pod2man utility. You can add more switches to the command by simply appending them on the macro. Typical usage: - $(POD2MAN_EXE) --section=3 --perm_rw=$(PERM_RW) podfile man_page + $(POD2MAN) --section=3 --perm_rw=$(PERM_RW) podfile1 man_page1 ... =cut -sub POD2MAN_EXE_macro { +sub POD2MAN_macro { my $self = shift; # Need the trailing '--' so perl stops gobbling arguments and - happens # to be an alternative end of line seperator on VMS so we quote it return <<'END_OF_DEF'; POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" +POD2MAN = $(POD2MAN_EXE) END_OF_DEF } @@ -588,6 +586,7 @@ MAKE_FRAG } my $meta = <{DISTNAME} version: $self->{VERSION} diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm index 9638c95..23701e0 100644 --- a/lib/ExtUtils/MM_Unix.pm +++ b/lib/ExtUtils/MM_Unix.pm @@ -20,7 +20,7 @@ use vars qw($VERSION @ISA use ExtUtils::MakeMaker qw($Verbose neatvalue); -$VERSION = '1.40'; +$VERSION = '1.41'; require ExtUtils::MM_Any; @ISA = qw(ExtUtils::MM_Any); @@ -1031,8 +1031,6 @@ sub dynamic { my($self) = shift; ' -## $(INST_PM) has been moved to the all: target. -## It remains here for awhile to allow for old usage: "make dynamic" dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT) $(NOECHO) $(NOOP) '; @@ -2598,13 +2596,21 @@ sub installbin { $fromto{$from}=$to; } @to = values %fromto; + + my $fixin; + if( $Is_Win32 ) { + $fixin = $self->{PERL_CORE} ? '$(PERLRUN) ../../win32/bin/pl2bat.pl' + : 'pl2bat.bat'; + } + else { + $fixin = q{$(PERLRUN) "-MExtUtils::MY" -e "MY->fixin(shift)"}; + } + push(@m, qq{ EXE_FILES = @{$self->{EXE_FILES}} -} . ($Is_Win32 - ? q{FIXIN = pl2bat.bat -} : q{FIXIN = $(PERLRUN) "-MExtUtils::MY" -e "MY->fixin(shift)" -}).qq{ +FIXIN = $fixin + pure_all :: @to \$(NOECHO) \$(NOOP) diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 4cc0ff1..53c485e 100644 --- a/lib/ExtUtils/MakeMaker.pm +++ b/lib/ExtUtils/MakeMaker.pm @@ -2,8 +2,8 @@ package ExtUtils::MakeMaker; BEGIN {require 5.005_03;} -$VERSION = '6.13'; -($Revision) = q$Revision: 1.127 $ =~ /Revision:\s+(\S+)/; +$VERSION = '6.15'; +($Revision) = q$Revision: 1.130 $ =~ /Revision:\s+(\S+)/; require Exporter; use Config; @@ -2038,7 +2038,7 @@ MakeMaker object. The following lines will be parsed o.k.: $VERSION = '1.00'; *VERSION = \'1.01'; - $VERSION = sprintf "%d.%03d", q$Revision: 1.127 $ =~ /(\d+)/g; + $VERSION = sprintf "%d.%03d", q$Revision: 1.130 $ =~ /(\d+)/g; $FOO::VERSION = '1.10'; *FOO::VERSION = \'1.11'; our $VERSION = 1.2.3; # new for perl5.6.0 @@ -2363,7 +2363,8 @@ meta-data file has been introduced, F. F is a YAML document (see http://www.yaml.org) containing basic information about the module (name, version, prerequisites...) in an easy to read format. The format is developed and defined by the -Module::Build developers. +Module::Build developers (see +http://module-build.sourceforge.net/META-spec.html) MakeMaker will automatically generate a F file for you and add it to your F as part of the 'distdir' target (and thus diff --git a/lib/ExtUtils/t/MM_Unix.t b/lib/ExtUtils/t/MM_Unix.t index 46e5402..6683761 100644 --- a/lib/ExtUtils/t/MM_Unix.t +++ b/lib/ExtUtils/t/MM_Unix.t @@ -2,7 +2,7 @@ BEGIN { if( $ENV{PERL_CORE} ) { - chdir 't' if -d 't'; + chdir 't'; @INC = '../lib'; } else {