File: Makefile.PL

package info (click to toggle)
libtest-time-perl 0.04-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 284 kB
  • ctags: 397
  • sloc: perl: 4,529; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
44
BEGIN {
	use inc::Module::Install;

	my @mip = qw(
		Module::Install::AuthorTests
		Module::Install::Repository
		Module::Install::ReadmeFromPod
		Module::Install::TestBase
	);
	for (@mip) {
		eval "require $_";
		if ($@) {
			eval "require inc::$_";
			if ($@) {
				warn $@;
				printf("# Install following (perl Makefile.PL | cpanm):\n%s", join("\n", @mip));
				exit 1;
			}
		}
	}
};

name 'Test-Time';
all_from 'lib/Test/Time.pm';

# requires 'Exporter::Lite';

build_requires 'Test::More';
build_requires 'Test::Name::FromLine';

# Module::Install::AuthorTests
author_tests('xt');

# Module::Install::Repository
auto_set_repository;

# Module::Install::TestBase
use_test_base;

# Module::Install::ReadmeFromPod
readme_from 'lib/Test/Time.pm';

auto_include;
WriteAll;