File: Build.PL

package info (click to toggle)
liburi-encode-perl 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 128 kB
  • ctags: 9
  • sloc: perl: 204; makefile: 2
file content (46 lines) | stat: -rwxr-xr-x 1,194 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
#!perl

####################
# LOAD MODULES
####################
use strict;
use warnings FATAL => 'all';
use Module::Build;

# Autoflush ON
local $| = 1;

####################
# INIT BUILDER
####################

my $builder = Module::Build->new(
    module_name        => 'URI::Encode',
    license            => 'perl',
    dist_author        => 'Mithun Ayachit <mithun@cpan.org>',
    configure_requires => { 'Module::Build' => 0.38 },
    build_requires     => {
        'Test::More' => 0,
        'version'    => 0,
    },
    requires => {
        'perl'   => '5.8.1',  # for Unicode support
        'Encode' => '2.12',
    },
    add_to_cleanup     => ['URI-Encode-*'],
    create_license     => 1,
    create_makefile_pl => 'traditional',
    meta_merge         => {
        keywords  => [qw(uri escape encode percent)],
        resources => {
            bugtracker => 'https://github.com/mithun/perl-uri-encode/issues',
            repository => 'git://github.com/mithun/perl-uri-encode.git',
            homepage   => 'https://github.com/mithun/perl-uri-encode',
        },
    },
);

####################
# CREATE BUILD SCRIPT
####################
$builder->create_build_script();