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,
17 'Variable::Magic' => '0.39',
21 configure_requires => {
22 'ExtUtils::Depends' => 0,
23 'ExtUtils::MakeMaker' => 0,
27 'ExtUtils::Depends' => 0,
28 'ExtUtils::MakeMaker' => 0,
37 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
38 homepage => "http://search.cpan.org/dist/$dist/",
39 license => 'http://dev.perl.org/licenses/',
40 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
44 use ExtUtils::Depends;
46 my $ed = ExtUtils::Depends->new($name);
48 $ed->add_pm($file => do { local $_ = $file; s/^lib/\$(INST_LIB)/; $_ });
49 $ed->install('sub_op.h');
50 $ed->save_config('Files.pm');
52 my %ed_vars = $ed->get_makefile_vars;
53 $ed_vars{clean}->{FILES} .= ' ' . join ' ',
56 qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
60 AUTHOR => 'Vincent Pit <perl@profvince.com>',
62 VERSION_FROM => $file,
63 ABSTRACT_FROM => $file,
65 PREREQ_PM => \%PREREQ_PM,
66 MIN_PERL_VERSION => 5.010,
69 PREOP => "pod2text $file > \$(DISTVNAME)/README",
70 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
72 FUNCLIST => [ qw/sub_op_register boot_Sub__Op/ ],
77 my $args_dat = './args.dat';
79 open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
82 $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
89 configure_test.pl: args.dat
91 t/Sub-Op-LexicalSub/Makefile: configure_test.pl
92 $(FULLPERLRUN) configure_test.pl
94 all clean:: t/Sub-Op-LexicalSub/Makefile
95 cd t/Sub-Op-LexicalSub && $(MAKE) $@