summaryrefslogtreecommitdiff
path: root/Build.PL
blob: dfb4a93a7a0fc0bb688469de91332fd90e307972 (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
#!/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,
	},
	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;