File: Makefile.PL

package info (click to toggle)
libdata-treedumper-perl 0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 352 kB
  • ctags: 88
  • sloc: perl: 4,282; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
$prerequisits = 
	{
	Text::Wrap  => 2001.0929,
	Devel::Size => 0.58, 
	Class::ISA  => 0,
	Sort::Naturally => 0,
	Check::ISA => 0,
	} ;

if($^O ne 'MSWin32')
	{
	$prerequisits->{'Term::Size'} = 0.2 ;
	}
else
	{
	$prerequisits->{'Win32::Console'} = 0
	}

sub MY::libscan
{
	return $_[1] =~ /\.pm$/? $_[1]: '';
}

WriteMakefile(
    'NAME'		=> 'Data::TreeDumper',
    'VERSION_FROM'	=> 'TreeDumper.pm', # finds $VERSION
    'PREREQ_PM'		=> $prerequisits,
    
    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM => 'TreeDumper.pm', # retrieve abstract from module
       AUTHOR     => 'Khemir Nadim ibn Hamouda. <nadim@khemir.net>') : ()),
);