5 use ExtUtils::MakeMaker;
9 (my $name = $dist) =~ s{-}{::}g;
11 (my $file = $dist) =~ s{-}{/}g;
12 $file = "lib/$file.pm";
15 'B::Hooks::EndOfScope' => 0,
18 'Variable::Magic' => '0.40',
22 configure_requires => {
23 'ExtUtils::Depends' => 0,
24 'ExtUtils::MakeMaker' => 0,
29 'ExtUtils::Depends' => 0,
30 'ExtUtils::MakeMaker' => 0,
39 bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
40 homepage => "http://search.cpan.org/dist/$dist/",
41 license => 'http://dev.perl.org/licenses/',
42 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
46 use ExtUtils::Depends;
48 my $ed = ExtUtils::Depends->new($name);
50 $ed->add_pm($file => do { local $_ = $file; s/^lib/\$(INST_LIB)/; $_ });
51 $ed->install('sub_op.h');
52 $ed->save_config('Files.pm');
54 my %ed_vars = $ed->get_makefile_vars;
55 $ed_vars{clean}->{FILES} .= ' ' . join ' ',
58 qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
62 AUTHOR => 'Vincent Pit <perl@profvince.com>',
64 VERSION_FROM => $file,
65 ABSTRACT_FROM => $file,
67 PREREQ_PM => \%PREREQ_PM,
68 MIN_PERL_VERSION => 5.010,
71 PREOP => "pod2text $file > \$(DISTVNAME)/README",
72 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
85 my $args_dat = './args.dat';
87 open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
90 $arg =~ s{\s*(['"])\s*(.*)\s*\1\s*$}{$2}s;
91 $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
98 configure_test.pl: args.dat
100 t/Sub-Op-LexicalSub/Makefile: configure_test.pl
101 $(FULLPERLRUN) configure_test.pl
103 all clean:: t/Sub-Op-LexicalSub/Makefile
104 cd t/Sub-Op-LexicalSub && $(MAKE) $@