~ubuntu-branches/ubuntu/wily/libgraphviz-perl/wily

« back to all changes in this revision

Viewing changes to Build.PL

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2015-07-04 22:07:20 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150704220720-wa57i227pwqysxco
Tags: 2.18-1
* Team upload.
* New upstream release.
* Update upstream copyright and license.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
use Module::Build;
5
5
 
6
 
if (open my $fh, '|dot', )
7
 
{
8
 
        close $fh;
9
 
}
10
 
else
11
 
{
12
 
        die "Please install Graphviz from http://www.graphviz.org/.\n";
 
6
if ($^O eq 'MSWin32') {
 
7
        require File::Which;
 
8
        if (!File::Which::which('dot'))
 
9
        {
 
10
                print "Please install Graphviz from http://www.graphviz.org/.\n";
 
11
                exit;
 
12
        }
 
13
} else {
 
14
        if (open my $fh, '|dot', )
 
15
        {
 
16
                close $fh;
 
17
        }
 
18
        else
 
19
        {
 
20
                print "Please install Graphviz from http://www.graphviz.org/.\n";
 
21
                exit;
 
22
        }
13
23
}
14
24
 
15
25
Module::Build -> new
20
30
        dist_author    => 'Leon Brocard <acme@astray.com>',
21
31
        build_requires =>
22
32
        {
23
 
                'Test::More' => 0.47,
24
 
#               'Test::Pod'  => 1.45, # Make it optional. See t/pod.t
 
33
                'Test::More' => 1.001014,
 
34
                'Test::Pod' => 1.48,
25
35
        },
26
36
        configure_requires =>
27
37
        {
28
 
                'Module::Build' => 0.3800,
 
38
                'Module::Build' => 0.4211,
 
39
                'File::Which' => 1.09,
 
40
        },
 
41
        meta_merge =>
 
42
        {
 
43
                resources =>
 
44
                {
 
45
                'repository' => 'https://github.com/ronsavage/GraphViz',
 
46
                'bugtracker' => 'https://rt.cpan.org/Public/Dist/Display.html?Name=GraphViz',
 
47
                'license' => 'http://opensource.org/licenses/Artistic-2.0',
 
48
                },
29
49
        },
30
50
        requires =>
31
51
        {
32
 
                'Carp'              => 1.01,
33
 
                'Config'            => 0,
34
 
                'File::Which'       => 1.09,
35
 
                'Getopt::Long'      => 2.34,
36
 
                'IO::Dir'           => 1.04,
37
 
                'IO::File'          => 1.10,
38
 
                'IPC::Run'          => 0.6,
39
 
                'lib'               => 0,
40
 
                'LWP::Simple'       => 6.00,
 
52
                'Carp' => 1.01,
 
53
                'Config' => 0,
 
54
                'Getopt::Long' => 2.34,
 
55
                'IO::Dir' => 1.04,
 
56
                'IO::File' => 1.10,
 
57
                'IPC::Run' => 0.6,
 
58
                'lib' => 0,
 
59
                'LWP::Simple' => 6.00,
41
60
                'Parse::RecDescent' => 1.965001,
42
 
                'Pod::Usage'        => 1.16,
43
 
                'strict'            => 0,
44
 
                'Time::HiRes'       => 1.51,
45
 
                'vars'              => 0,
46
 
                'warnings'          => 0,
47
 
                'XML::Twig'         => 3.38,
48
 
                'XML::XPath'        => 1.13,
 
61
                'Pod::Usage' => 1.16,
 
62
                'strict' => 0,
 
63
                'Time::HiRes' => 1.51,
 
64
                'vars' => 0,
 
65
                'warnings' => 0,
 
66
                'XML::Twig' => 3.38,
 
67
                'XML::XPath' => 1.13,
 
68
                'perl' => 5.006,
49
69
        },
50
70
) -> create_build_script();