burak / CPAN-MP3-M3U-Parser

MP3 playlist parser for Perl

Changed (Δ1.4 KB):

raw changeset »

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

MANIFEST (0 lines added, 1 lines removed)

SPEC (14 lines added, 0 lines removed)

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    => 'MP3::M3U::Parser',
13
    license        => 'perl',
14
    requires       => {
15
        'File::Spec'     => 0,
16
        'IO::File'       => 0,
17
        'Cwd'            => 0,
18
        'Text::Template' => 0,
19
    },
20
    build_requires => {
21
        'Test::More' => '0.40',
22
    },
23
    recommends     => {},
24
    sign           => 0,
25
    dist_author    => 'Burak Gursoy <burak@cpan.org>',
26
    create_license => 1,
27
    no_index       => {
28
        directory => [
29
            'tools',
30
            't',
31
        ]
32
    },
33
    meta_merge => {
34
        resources => {
35
            repository => 'http://bitbucket.org/burak/cpan-mp3-m3u-parser/',
36
        },
37
    },
38
);
39
5
my $mb = Build->new;
6
$mb->change_versions(1);
40
7
$mb->create_build_script;
41
42
sub raw_subclass {
43
    my $file = File::Spec->catfile( 'tools', 'Build.pm' );
44
    my $FH   = IO::File->new;
45
    $FH->open( $file, 'r' ) or die "Can not open($file): $!";
46
    my $rv = do { local $/; <$FH> };
47
    close $FH;
48
    return $rv;
49
}

Up to file-list MANIFEST:

@@ -5,7 +5,6 @@ t/05-sub_html.t
5
5
t/06-sub_search.t
6
6
t/07-scalar_xml.t
7
7
t/08-scalar_html.t
8
tools/Build.pm
9
8
eg/m3u.cgi
10
9
test.m3u
11
10
Changes

Up to file-list SPEC:

1
{
2
    module_name    => 'MP3::M3U::Parser',
3
    requires       => {
4
        'File::Spec'     => 0,
5
        'IO::File'       => 0,
6
        'Cwd'            => 0,
7
        'Text::Template' => 0,
8
    },
9
    meta_merge => {
10
        resources => {
11
            repository => 'http://bitbucket.org/burak/cpan-mp3-m3u-parser/',
12
        },
13
    },
14
}