File: Makefile.PL

package info (click to toggle)
libparse-debcontrol-perl 2.005-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 384 kB
  • sloc: perl: 910; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (5)
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
use ExtUtils::MakeMaker;

my $mod = my $pm = "Parse::DebControl";
$pm =~ s/::/\//g;
$pm = "lib/$pm.pm";

unless(-e "CHANGES")
{
	open CHANGES,">>CHANGES";
	print CHANGES "Temp CHANGES file\n";
	close CHANGES;
}

WriteMakefile(
	'NAME'		=> $mod,
	'VERSION_FROM'	=> $pm, # finds $VERSION
	'PREREQ_PM'	=>
		{ 
			'Test::More' => '0.45',
			'IO::Scalar' => '2.104',
			'Compress::Zlib' => '0',
			'LWP::UserAgent' => '0',
			'LWP::Simple' => '0',
		},

	'dist'		=>
		{
			#Auto-generate the CHANGES file
			PREOP => "podselect $pm -section CHANGES | pod2text -w 1000 -i 5 | perl -pe \"s/^\s+(Version.*)/\$1/g;\" > CHANGES",
		},

	($] >= 5.005 ?    ## Add these new keywords supported since 5.005
		(
			ABSTRACT_FROM	=> $pm, # retrieve abstract from module
			AUTHOR     	=> 'Jay Bonci <jaybonci@cpan.org>') 
		: ()),
);