[Bast-commits] r6473 - DBIx-Class/0.08/trunk
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun May 31 14:07:18 GMT 2009
Author: ribasushi
Date: 2009-05-31 14:07:18 +0000 (Sun, 31 May 2009)
New Revision: 6473
Modified:
DBIx-Class/0.08/trunk/Makefile.PL
Log:
Last set of Makefile.PL optimizations
Modified: DBIx-Class/0.08/trunk/Makefile.PL
===================================================================
--- DBIx-Class/0.08/trunk/Makefile.PL 2009-05-31 09:24:15 UTC (rev 6472)
+++ DBIx-Class/0.08/trunk/Makefile.PL 2009-05-31 14:07:18 UTC (rev 6473)
@@ -96,17 +96,6 @@
);
if ($Module::Install::AUTHOR) {
-
- foreach my $module (keys %force_requires_if_author) {
- build_requires ($module => $force_requires_if_author{$module});
- }
-
- system('pod2text lib/DBIx/Class.pm > README');
-}
-
-auto_provides;
-
-if ($Module::Install::AUTHOR) {
warn <<'EOW';
******************************************************************************
******************************************************************************
@@ -117,23 +106,27 @@
******************************************************************************
EOW
+
+ foreach my $module (keys %force_requires_if_author) {
+ build_requires ($module => $force_requires_if_author{$module});
+ }
+
+ system('pod2text lib/DBIx/Class.pm > README');
}
+auto_provides;
+
auto_install;
WriteAll();
+# Re-write META.yml to _exclude_ all forced requires (we do not want to ship this)
if ($Module::Install::AUTHOR) {
- # Need to do this _after_ WriteAll else it loses track of them
- Meta->{values}{build_requires} = [ grep {
- my $ok = 1;
- foreach my $module (keys %force_requires_if_author) {
- if ($_->[0] =~ /$module/) {
- $ok = 0;
- last;
- }
- }
- $ok;
- } @{Meta->{values}{build_requires}} ];
+
+ Meta->{values}{build_requires} = [ grep
+ { not exists $force_requires_if_author{$_->[0]} }
+ ( @{Meta->{values}{build_requires}} )
+ ];
+
Meta->write;
}
More information about the Bast-commits
mailing list