burak / CPAN-GD-Thumbnail

Thumbnail maker for Perl via GD

Changed (Δ1.2 KB):

raw changeset »

Build.PL (4 lines added, 43 lines removed)

META.yml

Makefile.PL

SPEC (11 lines added, 0 lines removed)

t/1-pod.t

t/2-pod-coverage.t

tools/Build.pm

Up to file-list Build.PL:

1
1
use strict;
2
use Module::Build;
3
use File::Spec;
4
use IO::File;
2
use lib qw( builder );
3
use Build;
5
4
6
my $class = Module::Build->subclass(
7
                class => 'MBSubclass',
8
                code  => raw_subclass(),
9
            );
10
11
my $mb = $class->new(
12
    module_name    => 'GD::Thumbnail',
13
    license        => 'perl',
14
    requires       => {
15
        'GD' => 0,
16
    },
17
    build_requires => {
18
        'Test::More' => '0.40',
19
    },
20
    recommends     => {},
21
    sign           => 0,
22
    dist_author    => 'Burak Gursoy <burak@cpan.org>',
23
    create_license => 1,
24
    no_index       => {
25
        directory => [
26
            'tools',
27
            't',
28
        ]
29
    },
30
    meta_merge => {
31
        resources => {
32
            repository => 'http://bitbucket.org/burak/cpan-gd-thumbnail/',
33
        },
34
    },
35
);
36
5
my $mb = Build->new;
6
$mb->change_versions(1);
37
7
$mb->create_build_script;
38
39
sub raw_subclass {
40
    my $file = File::Spec->catfile( 'tools', 'Build.pm' );
41
    my $FH   = IO::File->new;
42
    $FH->open( $file, 'r' ) or die "Can not open($file): $!";
43
    my $rv = do { local $/; <$FH> };
44
    close $FH;
45
    return $rv;
46
}

Up to file-list SPEC:

1
{
2
    module_name    => 'GD::Thumbnail',
3
    requires       => {
4
        'GD' => 0,
5
    },
6
    meta_merge => {
7
        resources => {
8
            repository => 'http://bitbucket.org/burak/cpan-gd-thumbnail/',
9
        },
10
    },
11
}