Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (55 sloc) 1.759 kb
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
use strict;
use warnings;
use Module::Build::SysPath;
use File::Which 'which';

use 5.010;

if (not which('patch')) {
    print STDERR "patch command is not installed on this system\n";
    exit 0;
}

my $builder = Module::Build::SysPath->new(
    module_name => 'CPAN::Patches',
    license => 'perl',
    dist_author => 'Jozef Kutej <jkutej@cpan.org>',
    dist_version_from => 'lib/CPAN/Patches.pm',
    
    configure_requires => {
        'Module::Build::SysPath' => 0.16,
        'File::Which' => 0,
        'Module::Build' => 0.36,
    },
    build_requires => {
        'Module::Build::SysPath' => 0.13,
        'Test::More' => 0,
        'Test::Dirs' => 0.03,
        'Test::Differences' => 0,
        'Test::Exception' => 0,
        'File::Temp' => 0,
        'File::chdir' => 0,
    },
    requires => {
        'Moose' => 0,
        'IO::Any' => 0,
        'Carp' => 0,
        'YAML::Syck' => 0,
        'JSON::Util' => 0,
        'Getopt::Long' => 0,
        'Pod::Usage' => 0,
        'File::chdir' => 0,
        'Scalar::Util' => 0,
        'Module::Pluggable' => 0,
    },
    script_files => [
        'script/cpan-patches',
    ],
    add_to_cleanup => [ 'CPAN-Patches-*' ],
    create_readme => 1,
    sign => 1,
    meta_merge => {
        resources => {
            repository => 'git://github.com/jozef/CPAN-Patches.git',
            bugtracker => 'http://github.com/jozef/CPAN-Patches/issues',
        },
        keywords => [ qw/ cpan patch / ],
    },
);

$builder->create_build_script();
Something went wrong with that request. Please try again.