burak / CPAN-Sys-Info-Base
Base class for Sys::Info (Perl)
Clone this repository (size: 55.6 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/burak/cpan-sys-info-base/
| commit 19: | 4ccb4bb19bbe |
| parent 18: | 4c642c449c8a |
| branch: | default |
update builder
- View burak's profile
-
burak's public repos »
- CPAN-Padre-Plugin-HG
- CPAN-Net-Bitbucket
- CPAN-GD-SecurityImage
- CPAN-Lingua-TR-Numbers
- CPAN-Sys-Info-Driver-Windows
- CPAN-Task-Lingua-Any-Numbers
- CPAN-Time-Elapsed
- CPAN-Win32-ASP-CGI
- CPAN-Scalar-Util-Reftype
- CPAN-Parse-HTTP-UserAgent
- CPAN-Acme-CPANAuthors-Turkish
- CPAN-tools
- CPAN-Device-CableModem-Motorola-SB4200
- CPAN-Text-Template-Simple
- CPAN-CGI-Auth-Basic
- CPAN-GD-Thumbnail
- CPAN-Lingua-Any-Numbers
- CPAN-MP3-M3U-Parser
- CPAN-PHP-Session-DBI
- CPAN-Sys-Info
- CPAN-Sys-Info-Base
- CPAN-Sys-Info-Driver-BSD
- CPAN-Sys-Info-Driver-Linux
- CPAN-Sys-Info-Driver-Unknown
- CPAN-Test-Sys-Info
- Send message
11 months ago
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
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 |
} |
| … | … | @@ -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 |
| … | … | @@ -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 |
