summaryrefslogtreecommitdiff
path: root/Build.PL
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2011-11-21 13:59:36 +0000
committerAdam Spiers <stow@adamspiers.org>2011-11-26 15:10:26 +0000
commit58625800eed76e9d4a5c6d003ef0c16d5b8dbb83 (patch)
treeb71704859d34833cd589a3a88111caccab7d3b4e /Build.PL
parent382ad5c58d70f957c0ae07349af2aebbcf71da4f (diff)
downloadstow-58625800eed76e9d4a5c6d003ef0c16d5b8dbb83.tar.gz
Reorganise more files into subdirectories and add CPAN support via Module::Build
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL58
1 files changed, 58 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 0000000..e5d11c0
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,58 @@
+use strict;
+use warnings;
+
+use Module::Build;
+
+# These are required by the test suite.
+use lib "t";
+use lib "bin";
+
+my $build = Module::Build->new(
+ module_name => 'Stow',
+ keywords => [ qw/stow symlink software package management install/ ],
+ license => 'gpl',
+
+ # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
+ # https://rt.cpan.org/Ticket/Display.html?id=71502
+ # 'meta-spec' => {
+ # version => '2.0',
+ # url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
+ # },
+ meta_add => {
+ resources => {
+ license => 'http://www.gnu.org/licenses/gpl-2.0.html' ,
+ homepage => 'https://savannah.gnu.org/projects/stow',
+
+ # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
+ # https://rt.cpan.org/Ticket/Display.html?id=71502
+ # bugtracker => {
+ # web => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Stow',
+ # mailto => 'mysqldiff@adamspiers.org',
+ # },
+ #bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Stow',
+
+ # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
+ # https://rt.cpan.org/Ticket/Display.html?id=71502
+ # repository => {
+ # url => 'git:github.com/aspiers/stow.git',
+ # web => 'http://github.com/aspiers/stow',
+ # type => 'git',
+ # },
+ repository => 'http://github.com/aspiers/stow',
+ #repository => 'https://savannah.gnu.org/git/?group=stow',
+ },
+ },
+ requires => {
+ 'perl' => '5.006',
+ 'Carp' => 0,
+ 'File::Slurp' => 0,
+ 'IO::File' => 0,
+ },
+ script_files => [ 'bin/stow' ],
+ all_from => 'lib/Stow.pm',
+ configure_requires => {
+ 'Module::Build' => 0,
+ },
+);
+
+$build->create_build_script();