X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=d14e185a32d45a02860d0999147977d6965b8c9b;hb=263d5dccb56a347a1677bdad3779dcea11d9d5fb;hp=d98c7826d7d47b7b2eb0d655eb7a00c80a3aeebb;hpb=92f8f62a409498010240d0ac9f251c4d61fc64f7;p=dbsrgits%2FDBIx-Class.git diff --git a/Makefile.PL b/Makefile.PL index d98c782..d14e185 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -49,6 +49,8 @@ my $runtime_requires = { 'SQL::Abstract::Limit' => '0.13', 'Sub::Name' => '0.04', 'Data::Dumper::Concise' => '1.000', + 'Scope::Guard' => '0.03', + 'Context::Preserve' => '0.01', }; # this is so we can order requires alphabetically @@ -114,9 +116,6 @@ if ($Module::Install::AUTHOR) { unlink 'MANIFEST'; } - print "Regenerating dbicadmin.pod\n"; - system('perl script/dbicadmin --pod > lib/dbicadmin.pod'); - print "Regenerating Optional/Dependencies.pod\n"; require DBIx::Class::Optional::Dependencies; DBIx::Class::Optional::Dependencies->_gen_pod; @@ -126,13 +125,38 @@ if ($Module::Install::AUTHOR) { # PodInherit(); } +tests_recursive (qw| + t +|); + install_script (qw| script/dbicadmin |); -tests_recursive (qw| - t -|); + +### Mangle makefile - read the comments for more info +# +postamble <<"EOP"; + +# This will add an extra dep-spec for the distdir target, +# which `make` will fold together in a first-come first-serve +# fashion. What we do here is essentially adding extra +# commands to execute once the distdir is assembled (via +# create_distdir), but before control is returned to a higher +# calling rule. +distdir : dbicadmin_pod_inject + +# The pod self-injection code is in fact a hidden option in +# dbicadmin itself +dbicadmin_pod_inject : +\tcd \$(DISTVNAME) && \$(ABSPERL) -Ilib script/dbicadmin --selfinject-pod + +# Regenerate manifest before running create_distdir. +create_distdir : manifest + +EOP + + resources 'IRC' => 'irc://irc.perl.org/#dbix-class'; resources 'license' => 'http://dev.perl.org/licenses/'; @@ -141,8 +165,10 @@ resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/db # Deprecated/internal modules need no exposure no_index directory => $_ for (qw| + lib/DBIx/Class/Admin lib/DBIx/Class/SQLAHacks lib/DBIx/Class/PK/Auto + lib/DBIx/Class/CDBICompat |); no_index package => $_ for (qw/ DBIx::Class::SQLAHacks DBIx::Class::Storage::DBIHacks