module-build-checkins Mailing List for Module::Build (Page 34)
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: Randy W. S. <si...@us...> - 2005-02-09 10:12:10
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20437/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: Be smarter about constructing the 'podpath' argument to Pod::Html. Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.20 retrieving revision 1.340.2.21 diff -u -d -r1.340.2.20 -r1.340.2.21 --- Base.pm 9 Feb 2005 09:05:03 -0000 1.340.2.20 +++ Base.pm 9 Feb 2005 10:12:00 -0000 1.340.2.21 @@ -1746,6 +1746,12 @@ @{$self->bindoc_dirs} ], exclude => [ qr/\.(?:bat|com|html)$/ ] ); + my $podpath = join ':', + map $_->[1], + grep -e $_->[0], + map [File::Spec->catdir($self->blib, $_), $_], + qw( script lib ); + my $htmldir = File::Spec::Unix->catdir($self->blib, 'html'); unless (-d $htmldir) { File::Path::mkpath($htmldir, 0, 0755) or die "Couldn't mkdir $htmldir: $!"; @@ -1792,7 +1798,7 @@ my @opts = ( '--flush', "--title=$title", - '--podpath=lib:script', + "--podpath=$podpath", "--infile=$infile", "--outfile=$outfile", '--podroot=' . $self->blib, |
From: Randy W. S. <si...@us...> - 2005-02-09 09:05:28
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26327/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: Correct error introduced in previous revision (1.340.2.19) where $self->libdoc_dirs was called twice instead of once combined with $self->bindoc_dirs. Also re-factored the html generation code and fixed various bugs: document titles incorrectly constructed, path to css stylesheets incorrectly determined for scripts, actions (manify, htmlify, testpod) that dealt with script files would redundantly operate on the script as well as the fix-up version of that script (eg 'script' and 'script.bat'). Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.19 retrieving revision 1.340.2.20 diff -u -d -r1.340.2.19 -r1.340.2.20 --- Base.pm 8 Feb 2005 07:06:23 -0000 1.340.2.19 +++ Base.pm 9 Feb 2005 09:05:03 -0000 1.340.2.20 @@ -1645,7 +1645,7 @@ or die "The 'testpod' action requires Test::Pod version 0.95"; my @files = sort keys %{$self->_find_pods($self->libdoc_dirs)}, - keys %{$self->_find_pods($self->bindoc_dirs)} + keys %{$self->_find_pods($self->bindoc_dirs, exclude => [ qr/\.bat$/ ])} or die "Couldn't find any POD files to test\n"; { package Module::Build::PodTester; # Don't want to pollute the main namespace @@ -1666,7 +1666,8 @@ sub manify_bin_pods { my $self = shift; my $parser = Pod::Man->new( section => 1 ); # binary manpages go in section 1 - my $files = $self->_find_pods($self->{properties}{bindoc_dirs}); + my $files = $self->_find_pods( $self->{properties}{bindoc_dirs}, + exclude => [ qr/\.bat$/ ] ); return unless keys %$files; my $mandir = File::Spec->catdir( $self->blib, 'bindoc' ); @@ -1702,13 +1703,17 @@ } sub _find_pods { - my ($self, $dirs) = @_; + my ($self, $dirs, %args) = @_; my %files; foreach my $spec (@$dirs) { my $dir = $self->localize_file_path($spec); next unless -e $dir; - do { $files{$_} = File::Spec->abs2rel($_, $dir) if $self->contains_pod( $_ ) } - for @{ $self->rscan_dir( $dir ) }; + FILE: foreach my $file ( @{ $self->rscan_dir( $dir ) } ) { + foreach my $regexp ( @{ $args{exclude} } ) { + next FILE if $file =~ $regexp; + } + $files{$file} = File::Spec->abs2rel($file, $dir) if $self->contains_pod( $file ) + } } return \%files; } @@ -1733,87 +1738,77 @@ sub htmlify_pods { my $self = shift; + require Module::Build::PodParser; - - my $blib = $self->blib; - my $html = File::Spec::Unix->catdir($blib, 'html'); - my $script = File::Spec::Unix->catdir($blib, 'script'); - - unless (-d $html) { - File::Path::mkpath($html, 1, 0755) or die "Couldn't mkdir $html: $!"; - } - - my $pods = $self->_find_pods([ @{$self->libdoc_dirs}, @{$self->libdoc_dirs} ]); - if (-d $script) { - File::Find::finddepth( sub { - $pods->{$File::Find::name} = - File::Spec->catfile("script", - File::Basename::basename($File::Find::name) ) - if (-f $_ and not /\.bat$/ and $self->contains_pod($_)); - }, $script); + require Pod::Html; + + my $pods = $self->_find_pods( [ @{$self->libdoc_dirs}, + @{$self->bindoc_dirs} ], + exclude => [ qr/\.(?:bat|com|html)$/ ] ); + + my $htmldir = File::Spec::Unix->catdir($self->blib, 'html'); + unless (-d $htmldir) { + File::Path::mkpath($htmldir, 0, 0755) or die "Couldn't mkdir $htmldir: $!"; } - + + $self->add_to_cleanup('pod2htm*'); + foreach my $pod (keys %$pods){ - $self->_htmlify_pod( - path => $pod, - rel_path => $pods->{$pod}, - htmldir => $html, - backlink => '__top', - css => ($^O =~ /Win32/) ? 'Active.css' : '', - ); - } -} -sub _htmlify_pod { - my ($self, %args) = @_; - require Pod::Html; + my $isbin = 0; + { + my @d = File::Spec->splitdir( + File::Spec->canonpath( (File::Spec->splitpath($pod))[1] ) ); + $isbin = pop( @d ) eq 'script'; + } - $self->add_to_cleanup('pod2htm*'); - - my ($name, $path) = File::Basename::fileparse($args{rel_path}, qr{\..*}); - my @dirs = File::Spec->splitdir($path); - my $isbin = shift @dirs eq 'script'; - my $infile = File::Spec::Unix->abs2rel($args{path}); - - my @rootdirs = $isbin? ('bin') : ('site', 'lib'); - - my $fulldir = File::Spec::Unix->catfile($args{htmldir}, @rootdirs, @dirs); - my $outfile = File::Spec::Unix->catfile($fulldir, $name . '.html'); + my @rootdirs = $isbin ? ('bin') : ('site', 'lib'); + + my ($name, $path) = File::Basename::fileparse($pods->{$pod}, qr{\..*}); + my @dirs = File::Spec->splitdir( File::Spec->canonpath( $path ) ); + pop( @dirs ) if $dirs[-1] eq File::Spec->curdir; + + my $fulldir = File::Spec::Unix->catfile($htmldir, @rootdirs, @dirs); + my $outfile = File::Spec::Unix->catfile($fulldir, $name . '.html'); + my $infile = File::Spec::Unix->abs2rel($pod); + + return if $self->up_to_date($infile, $outfile); + + unless (-d $fulldir){ + File::Path::mkpath($fulldir, 0, 0755) + or die "Couldn't mkdir $fulldir: $!"; + } + + my $path2root = "../" x (@rootdirs+@dirs); + my $htmlroot = File::Spec::Unix->catdir($path2root, 'site'); + my $title = join('::', (@dirs, $name)); + + { + my $fh = IO::File->new($infile); + my $abstract = Module::Build::PodParser->new(fh => $fh)->get_abstract(); + $title .= " - $abstract" if $abstract; + } + + my @opts = ( + '--flush', + "--title=$title", + '--podpath=lib:script', + "--infile=$infile", + "--outfile=$outfile", + '--podroot=' . $self->blib, + "--htmlroot=$htmlroot", + eval {Pod::Html->VERSION(1.03); 1} ? + ('--header', "--backlink=__top") : (), + ); + + # XXX: The logic below is wrong, it should apply only to ActiveState perl. + push( @opts, "--css=$path2root/Active.css" ) if ($^O =~ /Win32/); + + print "HTMLifying $infile -> $outfile\n"; + print "pod2html @opts\n" if $self->verbose; + Pod::Html::pod2html(@opts); # or warn "pod2html @opts failed: $!"; - return if $self->up_to_date($infile, $outfile); - - unless (-d $fulldir){ - File::Path::mkpath($fulldir, 1, 0755) - or die "Couldn't mkdir $fulldir: $!"; - } - - my $path2root = "../" x (@rootdirs+@dirs-1); - my $htmlroot = File::Spec::Unix->catdir($path2root, 'site'); - my $podpath = join ":" => ($isbin ? qw(script lib) : qw(lib)); - my $title = join('::', @dirs) . $name; - - { - my $fh = IO::File->new($infile); - my $abstract = Module::Build::PodParser->new(fh => $fh)->get_abstract(); - $title .= " - $abstract" if $abstract; } - - my $blib = $self->blib; - my @opts = ( - '--flush', - "--title=$title", - "--podpath=$podpath", - "--infile=$infile", - "--outfile=$outfile", - "--podroot=$blib", - "--htmlroot=$htmlroot", - eval {Pod::Html->VERSION(1.03); 1} ? ('--header', "--backlink=$args{backlink}") : (), - ); - push @opts, "--css=$path2root/$args{css}" if $args{css}; - - print "Creating $outfile\n"; - print "pod2html @opts\n" if $self->verbose; - Pod::Html::pod2html(@opts); # or warn "pod2html @opts failed: $!"; } # Adapted from ExtUtils::MM_Unix |
From: Randy W. S. <si...@us...> - 2005-02-08 07:15:45
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28429/lib/Module/Build Modified Files: Base.pm Log Message: Integrate from branch Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.384 retrieving revision 1.385 diff -u -d -r1.384 -r1.385 --- Base.pm 6 Feb 2005 14:35:28 -0000 1.384 +++ Base.pm 8 Feb 2005 07:15:18 -0000 1.385 @@ -1850,7 +1850,7 @@ File::Path::mkpath($html, 1, 0755) or die "Couldn't mkdir $html: $!"; } - my $pods = $self->_find_pods([$self->blib]); + my $pods = $self->_find_pods([ @{$self->libdoc_dirs}, @{$self->libdoc_dirs} ]); if (-d $script) { File::Find::finddepth( sub { $pods->{$File::Find::name} = |
From: Randy W. S. <si...@us...> - 2005-02-08 07:06:33
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26550/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: The html docs that were created during the first invokation of ./Build were being found and treated as pod that needed to be converted to html during subsequent invokations. We now are more specific about the directories we scan for pod that needs to be converted, effectively avoiding blib/html. [Ray Zimmerman] Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.18 retrieving revision 1.340.2.19 diff -u -d -r1.340.2.18 -r1.340.2.19 --- Base.pm 6 Feb 2005 14:35:19 -0000 1.340.2.18 +++ Base.pm 8 Feb 2005 07:06:23 -0000 1.340.2.19 @@ -1743,7 +1743,7 @@ File::Path::mkpath($html, 1, 0755) or die "Couldn't mkdir $html: $!"; } - my $pods = $self->_find_pods([$self->blib]); + my $pods = $self->_find_pods([ @{$self->libdoc_dirs}, @{$self->libdoc_dirs} ]); if (-d $script) { File::Find::finddepth( sub { $pods->{$File::Find::name} = |
From: Randy W. S. <si...@us...> - 2005-02-08 07:06:32
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26550 Modified Files: Tag: release-0_26_branch Changes Log Message: The html docs that were created during the first invokation of ./Build were being found and treated as pod that needed to be converted to html during subsequent invokations. We now are more specific about the directories we scan for pod that needs to be converted, effectively avoiding blib/html. [Ray Zimmerman] Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.35 retrieving revision 1.299.2.36 diff -u -d -r1.299.2.35 -r1.299.2.36 --- Changes 7 Feb 2005 21:11:45 -0000 1.299.2.35 +++ Changes 8 Feb 2005 07:06:22 -0000 1.299.2.36 @@ -2,6 +2,12 @@ 0.2609 + - The html docs that were created during the first invokation of + './Build' were being found and treated as pod that needed to be + converted to html during subsequent invokations. We now are more + specific about the directories we scan for pod that needs to be + converted, effectively avoiding blib/html. [Ray Zimmerman] + - On some Unix platforms (BSD derivatives, mostly) perl's $^X variable isn't set to the full path of the perl executable, just 'perl', when the 'Build' script is run as './Build' and not 'perl |
From: Ken W. <kwi...@us...> - 2005-02-07 21:12:06
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15854 Modified Files: Tag: release-0_26_branch Changes Log Message: Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.34 retrieving revision 1.299.2.35 diff -u -d -r1.299.2.34 -r1.299.2.35 --- Changes 6 Feb 2005 13:44:46 -0000 1.299.2.34 +++ Changes 7 Feb 2005 21:11:45 -0000 1.299.2.35 @@ -14,6 +14,10 @@ - The 'distcheck' action will now die() if it finds an error in the MANIFEST, rather than just printing on STDOUT. [David Golden] + - Got rid of the t/MANIFEST file - it's superfluous, and it had + zero-length, which some versions of Tar don't like. [William + Underwood] + 0.2608 Wed Jan 26 19:46:09 CST 2005 - Add workaround for test files because Devel::Cover causes |
From: Ken W. <kwi...@us...> - 2005-02-07 21:10:28
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15601 Modified Files: MANIFEST Log Message: Get rid of t/MANIFEST Index: MANIFEST =================================================================== RCS file: /cvsroot/module-build/Module-Build/MANIFEST,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- MANIFEST 4 Feb 2005 01:13:15 -0000 1.39 +++ MANIFEST 7 Feb 2005 21:10:10 -0000 1.40 @@ -40,7 +40,6 @@ t/lib/Test/Builder.pm t/lib/Test/More.pm t/lib/Test/Simple.pm -t/MANIFEST t/manifypods.t t/moduleinfo.t t/notes.t |
From: Ken W. <kwi...@us...> - 2005-02-07 21:10:19
|
Update of /cvsroot/module-build/Module-Build/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15601/t Removed Files: MANIFEST Log Message: Get rid of t/MANIFEST --- MANIFEST DELETED --- |
From: Ken W. <kwi...@us...> - 2005-02-07 21:10:06
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15469 Modified Files: Tag: release-0_26_branch MANIFEST Log Message: Get rid of t/MANIFEST Index: MANIFEST =================================================================== RCS file: /cvsroot/module-build/Module-Build/MANIFEST,v retrieving revision 1.35.2.1 retrieving revision 1.35.2.2 diff -u -d -r1.35.2.1 -r1.35.2.2 --- MANIFEST 17 Nov 2004 20:23:53 -0000 1.35.2.1 +++ MANIFEST 7 Feb 2005 21:09:56 -0000 1.35.2.2 @@ -34,7 +34,6 @@ t/files.t t/install.t t/lib/ModuleBuildOne.pm -t/MANIFEST t/manifypods.t t/notes.t t/pod_parser.t |
From: Ken W. <kwi...@us...> - 2005-02-07 21:10:06
|
Update of /cvsroot/module-build/Module-Build/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15469/t Removed Files: Tag: release-0_26_branch MANIFEST Log Message: Get rid of t/MANIFEST --- MANIFEST DELETED --- |
From: Ken W. <kwi...@us...> - 2005-02-06 14:35:43
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29117/lib/Module/Build Modified Files: Base.pm Log Message: No bang Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.383 retrieving revision 1.384 diff -u -d -r1.383 -r1.384 --- Base.pm 6 Feb 2005 13:46:00 -0000 1.383 +++ Base.pm 6 Feb 2005 14:35:28 -0000 1.384 @@ -2074,7 +2074,7 @@ require ExtUtils::Manifest; local $^W; # ExtUtils::Manifest is not warnings clean. my ($missing, $extra) = ExtUtils::Manifest::fullcheck(); - die "MANIFEST appears to be out of sync with the distribution!\n" + die "MANIFEST appears to be out of sync with the distribution\n" if @$missing || @$extra; } |
From: Ken W. <kwi...@us...> - 2005-02-06 14:35:29
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29092/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: No bang Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.17 retrieving revision 1.340.2.18 diff -u -d -r1.340.2.17 -r1.340.2.18 --- Base.pm 6 Feb 2005 13:44:47 -0000 1.340.2.17 +++ Base.pm 6 Feb 2005 14:35:19 -0000 1.340.2.18 @@ -1960,7 +1960,7 @@ require ExtUtils::Manifest; local $^W; # ExtUtils::Manifest is not warnings clean. my ($missing, $extra) = ExtUtils::Manifest::fullcheck(); - die "MANIFEST appears to be out of sync with the distribution!\n" + die "MANIFEST appears to be out of sync with the distribution\n" if @$missing || @$extra; } |
From: Ken W. <kwi...@us...> - 2005-02-06 13:46:27
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19540/lib/Module/Build Modified Files: Base.pm Log Message: Integrate from branch Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.382 retrieving revision 1.383 diff -u -d -r1.382 -r1.383 --- Base.pm 6 Feb 2005 13:30:08 -0000 1.382 +++ Base.pm 6 Feb 2005 13:46:00 -0000 1.383 @@ -2073,7 +2073,9 @@ require ExtUtils::Manifest; local $^W; # ExtUtils::Manifest is not warnings clean. - ExtUtils::Manifest::fullcheck(); + my ($missing, $extra) = ExtUtils::Manifest::fullcheck(); + die "MANIFEST appears to be out of sync with the distribution!\n" + if @$missing || @$extra; } sub _add_to_manifest { |
From: Ken W. <kwi...@us...> - 2005-02-06 13:45:27
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19294 Modified Files: Tag: release-0_26_branch Changes Log Message: die() in 'distcheck' if MANIFEST is out of sync Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.33 retrieving revision 1.299.2.34 diff -u -d -r1.299.2.33 -r1.299.2.34 --- Changes 6 Feb 2005 13:26:16 -0000 1.299.2.33 +++ Changes 6 Feb 2005 13:44:46 -0000 1.299.2.34 @@ -11,6 +11,9 @@ perl lib, and big trouble ensues. To fix this, we now set $^X to the value of Module::Build->find_perl_interpreter(). + - The 'distcheck' action will now die() if it finds an error in the + MANIFEST, rather than just printing on STDOUT. [David Golden] + 0.2608 Wed Jan 26 19:46:09 CST 2005 - Add workaround for test files because Devel::Cover causes |
From: Ken W. <kwi...@us...> - 2005-02-06 13:45:07
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19294/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: die() in 'distcheck' if MANIFEST is out of sync Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.16 retrieving revision 1.340.2.17 diff -u -d -r1.340.2.16 -r1.340.2.17 --- Base.pm 6 Feb 2005 13:26:16 -0000 1.340.2.16 +++ Base.pm 6 Feb 2005 13:44:47 -0000 1.340.2.17 @@ -1959,7 +1959,9 @@ require ExtUtils::Manifest; local $^W; # ExtUtils::Manifest is not warnings clean. - ExtUtils::Manifest::fullcheck(); + my ($missing, $extra) = ExtUtils::Manifest::fullcheck(); + die "MANIFEST appears to be out of sync with the distribution!\n" + if @$missing || @$extra; } sub _add_to_manifest { |
From: Ken W. <kwi...@us...> - 2005-02-06 13:33:53
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17556 Modified Files: Build.PL Log Message: Add a few dependencies and an HTML_support feature Index: Build.PL =================================================================== RCS file: /cvsroot/module-build/Module-Build/Build.PL,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- Build.PL 27 Dec 2004 04:56:18 -0000 1.52 +++ Build.PL 6 Feb 2005 13:33:44 -0000 1.53 @@ -28,9 +28,12 @@ 'File::Path' => 0, 'File::Spec' => 0, 'ExtUtils::Install' => 0, + 'ExtUtils::Manifest' => 0, + 'ExtUtils::Mkbootstrap' => 0, 'IO::File' => 0, 'Cwd' => 0, 'Text::ParseWords' => 0, + 'Getopt::Long' => 0, }, recommends => { 'Archive::Tar' => '1.08', @@ -61,6 +64,11 @@ description => "Can create Unix man pages", requires => { 'Pod::Man' => 0 }, }, + HTML_support => + { + description => "Can create HTML documentation", + requires => { 'Pod::Html' => 0 }, + }, }, add_to_cleanup => ['t/Sample/pod2htm*'], |
From: Ken W. <kwi...@us...> - 2005-02-06 13:30:18
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16829/lib/Module/Build Modified Files: Base.pm Log Message: Integrate from base Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.381 retrieving revision 1.382 diff -u -d -r1.381 -r1.382 --- Base.pm 25 Jan 2005 06:59:50 -0000 1.381 +++ Base.pm 6 Feb 2005 13:30:08 -0000 1.382 @@ -1095,6 +1095,10 @@ use $build_package; +# Some platforms have problems setting \$^X in shebang contexts, fix it up here +\$^X = Module::Build->find_perl_interpreter + unless File::Spec->file_name_is_absolute(\$^X); + if (-e 'Build.PL' and not $build_package->up_to_date("Build.PL", \$0)) { warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\\n"; } |
From: Ken W. <kwi...@us...> - 2005-02-06 13:26:26
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16061/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: Set $^X to find_perl_interpreter() in the Build script Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.15 retrieving revision 1.340.2.16 diff -u -d -r1.340.2.15 -r1.340.2.16 --- Base.pm 24 Jan 2005 03:50:19 -0000 1.340.2.15 +++ Base.pm 6 Feb 2005 13:26:16 -0000 1.340.2.16 @@ -1006,6 +1006,10 @@ use $build_package; +# Some platforms have problems setting \$^X in shebang contexts, fix it up here +\$^X = Module::Build->find_perl_interpreter + unless File::Spec->file_name_is_absolute(\$^X); + if (-e 'Build.PL' and not $build_package->up_to_date("Build.PL", \$0)) { warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\\n"; } |
From: Ken W. <kwi...@us...> - 2005-02-06 13:26:26
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16061 Modified Files: Tag: release-0_26_branch Changes Log Message: Set $^X to find_perl_interpreter() in the Build script Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.32 retrieving revision 1.299.2.33 diff -u -d -r1.299.2.32 -r1.299.2.33 --- Changes 27 Jan 2005 01:46:34 -0000 1.299.2.32 +++ Changes 6 Feb 2005 13:26:16 -0000 1.299.2.33 @@ -1,5 +1,16 @@ Revision history for Perl extension Module::Build. +0.2609 + + - On some Unix platforms (BSD derivatives, mostly) perl's $^X + variable isn't set to the full path of the perl executable, just + 'perl', when the 'Build' script is run as './Build' and not 'perl + ./Build'. This can lead to some other modules (maybe + Test::Harness, maybe IO::File, I dunno...) getting very confused + about where they are, and they try to load stuff from the wrong + perl lib, and big trouble ensues. To fix this, we now set $^X to + the value of Module::Build->find_perl_interpreter(). + 0.2608 Wed Jan 26 19:46:09 CST 2005 - Add workaround for test files because Devel::Cover causes |
From: Randy W. S. <si...@us...> - 2005-02-04 01:13:24
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20469 Modified Files: MANIFEST Log Message: Index: MANIFEST =================================================================== RCS file: /cvsroot/module-build/Module-Build/MANIFEST,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- MANIFEST 27 Dec 2004 04:39:56 -0000 1.38 +++ MANIFEST 4 Feb 2005 01:13:15 -0000 1.39 @@ -7,6 +7,7 @@ lib/Module/Build/Base.pm lib/Module/Build/Compat.pm lib/Module/Build/Cookbook.pm +lib/Module/Build/ModuleInfo.pm lib/Module/Build/Platform/aix.pm lib/Module/Build/Platform/Amiga.pm lib/Module/Build/Platform/cygwin.pm @@ -41,6 +42,7 @@ t/lib/Test/Simple.pm t/MANIFEST t/manifypods.t +t/moduleinfo.t t/notes.t t/parents.t t/pod_parser.t |
From: Ken W. <kwi...@us...> - 2005-01-27 01:46:44
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20126 Modified Files: Tag: release-0_26_branch Changes Log Message: Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.299.2.31 retrieving revision 1.299.2.32 diff -u -d -r1.299.2.31 -r1.299.2.32 --- Changes 24 Jan 2005 03:52:02 -0000 1.299.2.31 +++ Changes 27 Jan 2005 01:46:34 -0000 1.299.2.32 @@ -1,6 +1,6 @@ Revision history for Perl extension Module::Build. -0.2608 +0.2608 Wed Jan 26 19:46:09 CST 2005 - Add workaround for test files because Devel::Cover causes require to fail when the argument to require is an expression |
From: Randy W. S. <si...@us...> - 2005-01-25 07:00:03
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29361/lib/Module/Build Modified Files: Base.pm Log Message: 'build_class' was not being properly initialized. Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.380 retrieving revision 1.381 diff -u -d -r1.380 -r1.381 --- Base.pm 24 Jan 2005 21:59:59 -0000 1.380 +++ Base.pm 25 Jan 2005 06:59:50 -0000 1.381 @@ -514,7 +514,8 @@ my $self = shift; my $class = $self->_prop_class; # Set the build class. - $self->{build_properties}{build_class} ||= ref $self; + $self->{properties}{build_class} ||= ref $self; + for my $prop ($self->valid_properties) { $self->{properties}{$prop} = $valid_properties{$class}->{$prop} unless exists $self->{properties}{$prop}; |
From: Randy W. S. <si...@us...> - 2005-01-24 22:01:32
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22921/lib/Module/Build Modified Files: Base.pm Authoring.pod Log Message: Added new method Module::Build::prepare_metadata() for authors to override in order to add custom fields to META.yml. Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.379 retrieving revision 1.380 diff -u -d -r1.379 -r1.380 --- Base.pm 24 Jan 2005 03:41:58 -0000 1.379 +++ Base.pm 24 Jan 2005 21:59:59 -0000 1.380 @@ -2370,8 +2370,21 @@ require YAML; # We use YAML::Node to get the order nice in the YAML file. - my $node = YAML::Node->new({}); - + my $node = $self->prepare_metadata( YAML::Node->new({}) ); + + # YAML API changed after version 0.30 + my $yaml_sub = $YAML::VERSION le '0.30' ? \&YAML::StoreFile : \&YAML::DumpFile; + $self->{wrote_metadata} = $yaml_sub->($self->{metafile}, $node ); + + $self->_add_to_manifest('MANIFEST', $self->{metafile}); +} + +sub prepare_metadata { + my $self = shift; + my $node = shift; + + my $p = $self->{properties}; + foreach (qw(dist_name dist_version dist_author dist_abstract license)) { (my $name = $_) =~ s/^dist_//; $node->{$name} = $self->$_(); @@ -2380,17 +2393,13 @@ foreach (qw(requires recommends build_requires conflicts)) { $node->{$_} = $p->{$_} if exists $p->{$_} and keys %{ $p->{$_} }; } - + $node->{dynamic_config} = $p->{dynamic_config} if exists $p->{dynamic_config}; $node->{provides} = $self->find_dist_packages; $node->{generated_by} = "Module::Build version $Module::Build::VERSION"; - - # YAML API changed after version 0.30 - my $yaml_sub = $YAML::VERSION le '0.30' ? \&YAML::StoreFile : \&YAML::DumpFile; - $self->{wrote_metadata} = $yaml_sub->($self->{metafile}, $node ); - $self->_add_to_manifest('MANIFEST', $self->{metafile}); + return $node; } sub _read_manifest { Index: Authoring.pod =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Authoring.pod,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Authoring.pod 24 Jan 2005 21:43:16 -0000 1.6 +++ Authoring.pod 24 Jan 2005 22:00:16 -0000 1.7 @@ -963,6 +963,22 @@ will return C<undef> - there shouldn't be many unknown platforms though. +=item prepare_metadata() + +This method is provided for authors to override to customize the +fields of F<META.yml>. It is passed a YAML::Node node object which can +be modified as desired and then returned. Eg. + + package My::Builder; + use base 'Module::Build'; + + sub prepare_metadata { + my $self = shift; + my $node = $self->SUPER::prepare_metadata( shift ); + $node->{custom_field} = 'foo'; + return $node; + } + =item prereq_failures() Returns a data structure containing information about any failed |
From: Randy W. S. <si...@us...> - 2005-01-24 22:00:39
|
Update of /cvsroot/module-build/Module-Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22921 Modified Files: Changes Log Message: Added new method Module::Build::prepare_metadata() for authors to override in order to add custom fields to META.yml. Index: Changes =================================================================== RCS file: /cvsroot/module-build/Module-Build/Changes,v retrieving revision 1.328 retrieving revision 1.329 diff -u -d -r1.328 -r1.329 --- Changes 22 Jan 2005 02:00:20 -0000 1.328 +++ Changes 24 Jan 2005 22:00:18 -0000 1.329 @@ -3,6 +3,9 @@ 0.27_01 (Beta for 0.28) + - Added new method Module::Build::prepare_metadata() for authors to + override in order to add custom fields to META.yml. + - Refactored methods relating to parsing perl module files for package, version, and pod data into a new class: Module::Build::ModuleInfo. |
From: Randy W. S. <si...@us...> - 2005-01-24 21:43:54
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19621/lib/Module/Build Modified Files: Authoring.pod Log Message: Misc documentation updates: added docs for 'installdirs' parameter to constructor, resorted parameter and method lists, depracated contains_pod() in favor of Module::Build::ModuleInfo. Index: Authoring.pod =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Authoring.pod,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Authoring.pod 22 Jan 2005 02:00:21 -0000 1.5 +++ Authoring.pod 24 Jan 2005 21:43:16 -0000 1.6 @@ -154,14 +154,6 @@ harm performance in environments like mod_perl, where as much as possible of a module's code should be loaded during startup. -=item build_requires - -Modules listed in this section are necessary to build and install the -given module, but are not necessary for regular usage of it. This is -actually an important distinction - it allows for tighter control over -the body of installed modules, and facilitates correct dependency -checking on binary/packaged distributions of the module. - =item build_class The Module::Build class or subclass to use in the build @@ -173,6 +165,14 @@ C<build_requires> so that they should be available when C<./Build> is executed. +=item build_requires + +Modules listed in this section are necessary to build and install the +given module, but are not necessary for regular usage of it. This is +actually an important distinction - it allows for tighter control over +the body of installed modules, and facilitates correct dependency +checking on binary/packaged distributions of the module. + =item c_source An optional C<c_source> argument specifies a directory which contains @@ -368,6 +368,13 @@ files. May be given as a string indicating a single directory, or as a list reference indicating multiple directories. +=item installdirs + +Determines where files are installed within the normal perl hierarchy +as determined by F<Config.pm>. Valid values are: C<core>, C<site>, +C<vendor>. The default is C<site>. See +L<Module::Build/"How Installation Paths are Determined"> + =item license Specifies the licensing terms of your distribution. Valid options include: @@ -647,10 +654,6 @@ =over 4 -=item current_action() - -Returns the name of the currently-running action, such as "build" or "test". - =item add_build_element($type) Adds a new type of entry to the build process. Accepts a single @@ -804,6 +807,8 @@ =item contains_pod($file) +[Deprecated] Please see L<Module::Build::ModuleInfo> instead. + Returns true if the given file appears to contain POD documentation. Currently this checks whether the file has a line beginning with '=pod', '=head', or '=item', but the exact semantics may change in the @@ -833,6 +838,10 @@ data in a directory called C<_build/>. Both of these will be removed when the C<realclean> action is performed. +=item current_action() + +Returns the name of the currently-running action, such as "build" or "test". + =item dispatch($action, %args) This method is also called from the auto-generated C<Build> script. @@ -1070,6 +1079,7 @@ =back + =head2 Autogenerated Accessors In addition to the aforementioned methods, there are also some get/set |