File: Makefile.PL

package info (click to toggle)
libclass-returnvalue-perl 0.52-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 136 kB
  • ctags: 141
  • sloc: perl: 1,624; makefile: 50
file content (44 lines) | stat: -rw-r--r-- 1,248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
           use inc::Module::Install;

           name('Class-ReturnValue');
           abstract('A smart return value object');
           author('Jesse Vincent <jesse@bestpractical.com>');
	   version_from('lib/Class/ReturnValue.pm');
           license('perl');
           include_deps('Test::More', 5.004);
           include_deps('Test::Inline');
           requires('Test::More');
           requires('Test::Inline');
           requires('Devel::StackTrace');	
           check_nmake();      # check and download nmake.exe for Win32


{

    package MY;

    sub top_targets {
        my ($self) = @_;
        my $out = "POD2TEST_EXE = pod2test\n";

        $out .= $self->SUPER::top_targets(@_);
       # $out =~ s/^(pure_all\b.*)/$1 testifypods/m;

        $out .= "\n\ntestifypods : \n";
        foreach
          my $pod ( keys %{ $self->{MAN1PODS} }, keys %{ $self->{MAN3PODS} } )
        {
            ( my $test = $pod ) =~ s/\.(pm|pod)$//;
            $test =~ s|/|-|g;
            $test =~ s/^lib\W//;
            $test =~ s/\W/-/;
            $test = "embedded-$test.t";
            $out .= "\t$self->{NOECHO}\$(POD2TEST_EXE) " . "$pod t/$test\n";
        }

        return $out;
    }
}
	&Meta->write;
           &Makefile->write;