File: Makefile.PL

package info (click to toggle)
libtest-tester-perl 0.109-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 164 kB
  • ctags: 44
  • sloc: perl: 463; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 603 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
# $Header: $

use strict;

use ExtUtils::MakeMaker;

my $module = "Test::Tester";
my $file_base = $module;
$file_base =~ s/::/\//g;
$file_base = "./lib/$file_base";
my $pm_file = "$file_base.pm";
my $pod_file = "$file_base.pod";

my $doc_file = -e $pod_file ? $pod_file : $pm_file;

(my $dir = $module) =~ s/::/-/g;

WriteMakefile(
	AUTHOR => 'Fergal Daly <fergal@esatclear.ie>',
	NAME => $module,
	VERSION_FROM => $pm_file,
	INSTALLDIRS => 'perl',
	PREREQ_PM => {
		'Test::Builder' => 0,
	},
	dist => {
		PREOP=> "rm -f README; pod2text -80 < $doc_file > README; cp -f README $dir-\$(VERSION); "
	}
);