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.39',
22 configure_requires => {
23 'ExtUtils::Depends' => 0,
24 'ExtUtils::MakeMaker' => 0,
28 'ExtUtils::Depends' => 0,
29 'ExtUtils::MakeMaker' => 0,
38 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
39 homepage => "http://search.cpan.org/dist/$dist/",
40 license => 'http://dev.perl.org/licenses/',
41 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
45 use ExtUtils::Depends;
47 my $ed = ExtUtils::Depends->new($name);
49 $ed->add_pm($file => do { local $_ = $file; s/^lib/\$(INST_LIB)/; $_ });
50 $ed->install('sub_op.h');
51 $ed->save_config('Files.pm');
53 my %ed_vars = $ed->get_makefile_vars;
54 $ed_vars{clean}->{FILES} .= ' ' . join ' ',
57 qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
61 AUTHOR => 'Vincent Pit <perl@profvince.com>',
63 VERSION_FROM => $file,
64 ABSTRACT_FROM => $file,
66 PREREQ_PM => \%PREREQ_PM,
67 MIN_PERL_VERSION => 5.010,
70 PREOP => "pod2text $file > \$(DISTVNAME)/README",
71 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
73 FUNCLIST => [ qw/sub_op_register boot_Sub__Op/ ],
78 my $args_dat = './args.dat';
80 open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
83 $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
90 configure_test.pl: args.dat
92 t/Sub-Op-LexicalSub/Makefile: configure_test.pl
93 $(FULLPERLRUN) configure_test.pl
95 all clean:: t/Sub-Op-LexicalSub/Makefile
96 cd t/Sub-Op-LexicalSub && $(MAKE) $@