File: Makefile.PL

package info (click to toggle)
libmail-box-perl 4.01-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,744 kB
  • sloc: perl: 9,021; makefile: 6
file content (149 lines) | stat: -rw-r--r-- 3,038 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
use ExtUtils::MakeMaker;

require 5.016;

use warnings;
use strict;

# Use command 'oodist' to produce your whole software release.
my $version = '4.01';
my $webpages = "../public_html";
my $git      = "https://github.com/markov2/perl5-Mail-Box";
my $publish  = "../public_html/mail-box";
my $homepage = "http://perl.overmeer.net/CPAN/";

my %oodist   = (
	oodoc_version => 3.05,
	first_year    => 2001,
	email         => "markov\@cpan.org",

	include  => [
		'../HTML-FromMail',
		'../MIME-Types',
		'../Mail-Box-IMAP4',
		'../Mail-Box-POP3',
		'../Mail-Box-Parser-C',
		'../Mail-Message',
		'../Mail-Transport',
		'../MailTools',
		'../Object-Realize-Later',
		'../User-Identity',
		'/p/MailDbx',
	],

	use      => [
	],

	parser   => {
		syntax         => 'markov',
		skip_links     => [
		],
		pmhead         => undef,
	},

	tests    => {
	},

	release  => {
		publish        => "$publish/source",
	},

	raw      => {
		publish        => "$publish/raw",
	},

	generate => [
	  {	format         => 'pod3',
		podtail        => undef,
	  },
	  {	format         => 'html',
		webpages       => "$webpages/mailbox/html",
		publish        => "$publish/htmlpkg",
		docroot        => "/mailbox/html",
		templates      => "html",
		stylesheet     => "/oodoc.css",
	  },
	  {	export         => 'website',
		serializer     => 'json',
		markup         => 'html',
		publish        => "$publish/doctree",
	  },
	],
);

my %requires = (
	'Cwd'            => 0,
	'Date::Parse'    => 0,
	'Devel::GlobalDestruction' => 0.09,
	'Errno'          => 0,
	'Fcntl'          => 0,
	'File::Basename' => 0,
	'File::Spec'     => 0.7,
	'File::Compare'  => 0,
	'File::Copy'     => 0,
	'File::Remove'   => 0.20,
	'File::Temp'     => 0,
	'IO::Scalar'     => 0,
	'Log::Report'    => '1.42',
	'POSIX'          => 0,
	'Scalar::Util'   => 1.13,
	'Sys::Hostname'  => 0.0,
	'String::Print'  => '1.01',

	'Mail::Message'          => '4.00',
	'Mail::Transport'        => '4.00',
	'Object::Realize::Later' => '4.00',

# Currently, it seems to be wise not to depend on these
#   File::FcntLock
);

my %optional = (
	'Mail::Box::Parser::C' => '4.00',
	'Mail::Box::IMAP4'     => '4.00',
	'Mail::Box::POP3'      => '4.00',
	'HTML::FromMail'       => '4.00',
);

WriteMakefile
	NAME       => 'Mail::Box',
	VERSION    => $version,
	AUTHOR     => 'Mark Overmeer',
	ABSTRACT   => 'complete E-mail handling suite',
	LICENSE    => 'perl_5',

	META_MERGE => {
		'meta-spec' => { version => 2 },
		resources   => {
			repository => {
				type => 'git',
				url  => "$git.git",
				web  => $git,
			},
			bugtracker => {
				web  => "$git/issues",
			},
			homepage => $homepage,
			license  => [ 'http//dev.perl.org/licenses/' ],
		},
		prereqs => {
			runtime => {
				requires   => \%requires,
				recommends => \%optional,
			},
			develop => {
				requires => {
					'OODoc' => '3.00',
				},
			},
			test => {
				requires => {
					'Test::More' => 1.00,
					'Test::Pod'  => 1.00,
				},
			},
		},

		# You may use multiple set-ups, see "oodist --make"
		x_oodist => \%oodist,
	};