summaryrefslogtreecommitdiff
path: root/Build.PL
blob: d3a7e1cce90dd7ad8ca0798d3064fe143ff4e72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env perl

use strict;
use warnings;
use Module::Build;

my %opts = (
	build_requires => {
		'Test::More' => 0,
		'Test::Compile' => 0,
		'Test::Pod' => 0,
		'Test::Command' => 0,
		'Test::Synopsis' => 0,
	},
	module_name => 'Net::Travel::DE::VRR',
	license => 'unrestricted',
	requires => {
		'Class::Accessor' => 0,
		'perl' => '5.10.0',
		'Getopt::Long' => 0,
		'XML::LibXML' => 0,
		'WWW::Mechanize' => 0,
	},
);

if (-d '.git' and qx{which git} =~ qr{/git$}) {
	$opts{'dist_version'} = qx{git describe};
	chomp $opts{'dist_version'};
}

my $build = Module::Build->new(%opts);
$build->create_build_script;