Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 49 additions & 26 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
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' => 'lib/File/Download.pm',
'ABSTRACT' => "A simple module for file downloading",
'AUTHOR' => 'Byrne Reese <byrne@majordojo.com>',
'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',
# }
WriteMakefile (
'NAME' => 'File::Download',
'VERSION_FROM' => cwd().'/'.'lib/File/Download.pm',
'ABSTRACT' => "A simple module for file downloading",
'AUTHOR' => 'Byrne Reese <byrne@majordojo.com> and Matt Pagel <pagel@cs.wisc.edu>',
'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 <byrne@majordojo.com>');
version_from('lib/File/Download.pm');
author('Byrne Reese <byrne@majordojo.com> and Matt Pagel <pagel@cs.wisc.edu>');
version_from(cwd().'/'.'lib/File/Download.pm');
license('perl');
no_index(directory => 't');
sign(0);
Expand All @@ -35,16 +39,35 @@ 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,
],
'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();
Expand Down
10 changes: 8 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

File::Download 0.3 -- a module for downloading large files
File::Download 0.4_050601 -- a module for downloading large files in perl > 5.6.1

Copyright (c) 2009 Byrne Reese, Gisle Aas. All rights reserved.
Copyright (c) 2015 Matt Pagel, Byrne Reese, Gisle Aas. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

Expand All @@ -11,6 +11,12 @@ To install this module, please run:
make
make test
make install

or
manually create a File-Download subdirectory within your cpan/build directory
move or extract all files from this repository into the new directory
navigate to that directory at a command/shell prompt and type
cpan .

For more information on the module, please see the POD documentation
inside Download.pm. ("perldoc File::Download", once it is installed.)
Expand Down
Loading