File: Makefile.PL

package info (click to toggle)
libclass-container-perl 0.12-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 128 kB
  • ctags: 30
  • sloc: perl: 627; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (4)
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

use ExtUtils::MakeMaker;

unless (eval "use Scalar::Util; 1") {
  warn("You seem not to have the Scalar::Util module installed.\n" .
       "Its installation is recommended (but not required) for Class::Container - see the README.\n");
  sleep 4;
}

my $module = 'Class::Container';
my ($file, $dir);
($file = "lib/$module.pm") =~ s{::}{/}g;
($dir  = $module) =~ s/::/-/g;

WriteMakefile
  (
   'NAME'       => $module,
   'VERSION_FROM' => $file, # finds $VERSION
   'dist' => { COMPRESS=>"gzip",
               SUFFIX=>"gz",
               PREOP=>('rm -f README; '.
                       "pod2text -80 < $file > README; ".
                       "cp -f README $dir-\$(VERSION); "
                      ),
             },
   'PREREQ_PM' => {
		   Params::Validate => '0.23',
		  },
   'PL_FILES' => {},
   ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
    (ABSTRACT_FROM => $file, # retrieve abstract from module
     AUTHOR     => 'Ken Williams <ken@mathforum.org>') : 
    ()
   ),
   NO_META => 1,
  );