burak / CPAN-Sys-Info-Base

Base class for Sys::Info (Perl)

Changed (Δ1.2 KB):

raw changeset »

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

Changes (3 lines added, 0 lines removed)

MANIFEST (1 lines added, 6 lines removed)

Makefile.PL

PREREQ

SPEC (8 lines added, 0 lines removed)

lib/Sys/Info/Base.pm (1 lines added, 1 lines removed)

t/01-pod.t

t/02-pod-coverage.t

tools/Build.pm

Up to file-list Build.PL:

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

Up to file-list Changes:

@@ -2,6 +2,9 @@ Revision history for Perl extension Sys:
2
2
3
3
Time zone is GMT+2.
4
4
5
0.72 Thu Apr 23 16:36:03 2009
6
    => Update builder.
7
5
8
0.71 Sat Apr 11 03:37:15 2009
6
9
    => Update build tool.
7
10

Up to file-list MANIFEST:

@@ -4,15 +4,10 @@ lib/Sys/Info/Device.pm
4
4
lib/Sys/Info/Driver.pm
5
5
lib/Sys/Info/OS.pm
6
6
lib/Sys/Info/Device/CPU.pm
7
t/01-pod.t
8
t/02-pod-coverage.t
9
7
t/03-basic.t
10
8
t/slurp.txt
11
Makefile.PL
12
9
Build.PL
13
10
Changes
14
11
MANIFEST
15
12
README
16
PREREQ
17
META.yml
18
tools/Build.pm
13
SPEC

Up to file-list SPEC:

1
{
2
    module_name    => 'Sys::Info::Base',
3
    meta_merge => {
4
        resources => {
5
            repository => 'http://bitbucket.org/burak/cpan-sys-info-base/',
6
        },
7
    },
8
}

Up to file-list lib/Sys/Info/Base.pm:

@@ -6,7 +6,7 @@ use Carp qw( croak );
6
6
use File::Spec;
7
7
use Sys::Info::Constants qw( :date OSID );
8
8
9
$VERSION = '0.71';
9
$VERSION = '0.72';
10
10
11
11
my %LOAD_MODULE; # cache
12
12