forked from endevver/file-download
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
77 lines (71 loc) · 2.03 KB
/
Makefile.PL
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
use strict;
use warnings;
use 5.006_001; use 5.6.1; #5.6.0 may work as well, but we may as well require a step up.
use ExtUtils::MakeMaker;
use Cwd qw(cwd getcwd);
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile (
'NAME' => 'File::Download',
'VERSION_FROM' => cwd().'/'.'lib/File/Download.pm',
'ABSTRACT' => "A simple module for file downloading",
'AUTHOR' => 'Byrne Reese <[email protected]> and Matt Pagel <[email protected]>',
'DISTNAME' => 'File-Download',
# 'LICENSE' => 'perl',
'LIBS' => [''], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
# 'PM' => {'Spec.pm' => '$(INST_LIBDIR)/File/Spec.pm',
# 'OS2.pm' => '$(INST_LIBDIR)/File/Spec/OS2.pm',
# 'Win32.pm' => '$(INST_LIBDIR)/File/Spec/Win32.pm',
# 'VMS.pm' => '$(INST_LIBDIR)/File/Spec/VMS.pm',
# 'Unix.pm' => '$(INST_LIBDIR)/File/Spec/Unix.pm',
# }
);
__END__
use inc::Module::Install;
name('File-Download');
abstract('A simple file download module');
author('Byrne Reese <[email protected]> and Matt Pagel <[email protected]>');
version_from(cwd().'/'.'lib/File/Download.pm');
license('perl');
no_index(directory => 't');
sign(0);
include('ExtUtils::AutoInstall');
requires('LWP::UserAgent');
requires('LWP::MediaTypes');
requires('URI');
requires('HTTP::Date');
requires('HTTP::Request');
requires('HTTP::Response');
requires('Class::Accessor::Constructor');
requires('File::Spec');
requires('File::stat');
requires('integer');
requires('Cwd');
# requires('Config::IniFiles');
features(
'Downloader' => [
-default => 1,
'LWP' => 1,
'LWP::UserAgent' => 1,
'LWP::MediaTypes' => 1,
'URI' => 1,
'HTTP::Date' => 1,
'File::Spec' => 1,
'File::stat' => 1,
'Class::Accessor' => 1,
'Class::Accessor::Constructor' => 1,
'integer' => 1,
'HTTP' => 1,
'HTTP::Date' => 1,
'HTTP::Request' => 1,
'HTTP::Response' => 1,
'Cwd' => 1,
# 'Config::IniFiles' => 1
],
);
auto_include();
auto_install();
&WriteAll;
__END__