'Module::Build' => {
'MAINTAINER' => 'kwilliams',
- 'DISTRIBUTION' => 'LEONT/Module-Build-0.40.tar.gz',
+ 'DISTRIBUTION' => 'LEONT/Module-Build-0.4002.tar.gz',
'FILES' => q[cpan/Module-Build],
'EXCLUDED' => [
qw( t/par.t
t/signature.t
),
qr{^contrib/},
- qr{^devtools},
qr{^inc},
],
'CUSTOMIZED' => ['lib/Module/Build/ConfigData.pm'],
Revision history for Perl extension Module::Build.
+0.4002 - Fri Jul 27 20:04:09 EEST 2012
+
+ [BUG FIXES]
+
+ - Test for TAP::Harness version properly
+
+ - Install to 'site' on 5.12+
+
+ [DOCUMENTATION]
+
+ - Document extra_{compiler|linker}_flags accessors [Nick Wellnhofer]
+
+0.4001 - Tue Jun 26 20:54:15 CEST 2012
+ [BUG FIXES]
+
+ - Parse Pod name a litte more leniently [Paul Evans]
+
+ [DOCUMENTATION]
+
+ - Various spelling fixes [Leon Timmermans, Jonathan Yu]
+
+ - Fixes configuration keys used for script location [Leon Timmermans, reported by Samuel Ferencik]
+
+ [OTHER]
+
+ - use warnings
+
0.40 - Fri Feb 24 18:47:48 CET 2012
- Released 0.39_02 as 0.40 without any code changes
Wardley (C<Template::Config>), and Larry Wall (perl's own Config.pm)
have developed independently.
-The configuration system emplyed here was developed in the context of
+The configuration system employed here was developed in the context of
C<Module::Build>. Under this system, configuration information for a
module C<Foo>, for example, is stored in a module called
C<Foo::ConfigData>) (I would have called it C<Foo::Config>, but that
was taken by all those other systems mentioned in the previous
paragraph...). These C<...::ConfigData> modules contain the
-configuration data, as well as publically accessible methods for
+configuration data, as well as publicly accessible methods for
querying and setting (yes, actually re-writing) the configuration
data. The C<config_data> script (whose docs you are currently
reading) is merely a front-end for those methods. If you wish, you
use vars qw($VERSION @ISA);
@ISA = qw(Module::Build::Base);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
lib => installprivlib installsitelib installvendorlib
arch => installarchlib installsitearch installvendorarch
- script => installscript installsitebin installvendorbin
+ script => installscript installsitescript installvendorscript
bin => installbin installsitebin installvendorbin
bindoc => installman1dir installsiteman1dir installvendorman1dir
libdoc => installman3dir installsiteman3dir installvendorman3dir
[version 0.36]
The C<needs_compiler> parameter indicates whether a compiler is required to
-build the distsribution. The default is false, unless XS files are found or
+build the distribution. The default is false, unless XS files are found or
the C<c_source> parameter is set, in which case it is true. If true,
L<ExtUtils::CBuilder> is automatically added to C<build_requires> if needed.
arguments, no shell will get involved and the command will be executed
directly.
+=item extra_compiler_flags()
+
+=item extra_compiler_flags(@flags)
+
+[version 0.25]
+
+Set or retrieve the extra compiler flags. Returns an arrayref of flags.
+
+=item extra_linker_flags()
+
+=item extra_linker_flags(@flags)
+
+[version 0.25]
+
+Set or retrieve the extra linker flags. Returns an arrayref of flags.
+
=item feature($name)
=item feature($name => $value)
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+use warnings;
+
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
-BEGIN { require 5.00503 }
+BEGIN { require 5.006001 }
use Carp;
use Cwd ();
sub _parse_conditions {
my ($self, $spec) = @_;
+ return ">= 0" if not defined $spec;
if ($spec =~ /^\s*([\w.]+)\s*$/) { # A plain number, maybe with dots, letters, and underscores
return (">= $spec");
} else {
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
use File::Basename ();
use File::Spec;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Config;
package Module::Build::Cookbook;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
=head1 NAME
package Module::Build::Dumper;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
# This is just a split-out of a wrapper function to do Data::Dumper
# stuff "the right way". See:
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
require Module::Metadata;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Data::Dumper;
use IO::File;
use vars qw($VERSION);
use IO::File;
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
# This code is mostly borrowed from ExtUtils::MM_Unix 6.10_03, with a
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use vars qw(@ISA);
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use Config;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Config;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use vars qw(@ISA);
local $_;
while (<$fh>) {
next unless /^=(?!cut)/ .. /^=cut/; # in POD
- last if ($self->{abstract}) = /^ (?: [a-z0-9:]+ \s+ - \s+ ) (.*\S) /ix;
+ # Accept Name - abstract or C<Name> - abstract
+ last if ($self->{abstract}) = /^ (?: [a-z0-9:]+ | [BCIF] < [a-z0-9:]+ > ) \s+ - \s+ (.*\S) /ix;
}
my @author;
package inc::latest;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use Carp;
Arguments to C<inc::latest> are module names that are checked against both the
current C<@INC> array and against specially-named directories in C<inc>. If
-the bundled verison is newer than the installed one (or the module isn't
+the bundled version is newer than the installed one (or the module isn't
installed, then, the bundled directory is added to the start of <@INC> and the
module is loaded from there.
my @list = inc::latest->loaded_modules;
This takes no arguments and always returns a list of module names requested for
-loading via "use inc::latest 'MODULE'", regardless of wether the load was
+loading via "use inc::latest 'MODULE'", regardless of whether the load was
successful or not.
=item write()
package inc::latest::private;
use strict;
use vars qw($VERSION);
-$VERSION = '0.40';
+$VERSION = '0.4002';
$VERSION = eval $VERSION;
use File::Spec;
{
my $mb_prereq = { 'Module::Build' => $Module::Build::VERSION };
my $mb_config_req = {
- 'Module::Build' => int($Module::Build::VERSION * 100)/100
+ 'Module::Build' => sprintf '%2.2f', int($Module::Build::VERSION * 100)/100
};
my $node;
my $output = stdout_stderr_of( sub {
use strict;
use lib 't/lib';
-use MBTest tests => 9;
+use MBTest tests => 12;
blib_load('Module::Build::PodParser');
is $pp->get_author->[0], 'C<Foo::Bar> was written by Engelbert Humperdinck I<E<lt>eh@example.comE<gt>> in 2004.', 'author';
is $pp->get_abstract, 'Perl extension for blah blah blah', 'abstract';
}
+
+
+{
+ # Now with C<Module::Name>
+ untie *FH;
+ tie *FH, 'IO::StringBased', <<'EOF';
+=head1 Name
+
+C<Foo::Bar> - Perl extension for blah blah blah
+
+=head1 Author
+
+C<Foo::Bar> was written by Engelbert Humperdinck I<E<lt>eh@example.comE<gt>> in 2004.
+
+Home page: http://example.com/~eh/
+
+=cut
+EOF
+
+ my $pp = Module::Build::PodParser->new(fh => \*FH);
+ ok $pp, 'object created';
+
+ is $pp->get_author->[0], 'C<Foo::Bar> was written by Engelbert Humperdinck I<E<lt>eh@example.comE<gt>> in 2004.', 'author';
+ is $pp->get_abstract, 'Perl extension for blah blah blah', 'abstract';
+}
use strict;
use Test::More;
use lib 't/lib';
-if (eval { require TAP::Harness } && TAP::Harness->VERSION >= 3) {
+if (eval { require TAP::Harness && TAP::Harness->VERSION(3) }) {
plan tests => 9;
} else {
plan skip_all => 'TAP::Harness 3+ not installed'