1#!/usr/bin/perl
2
3use strict;
4
5# For PRIVATE Module::Install extensions
6use lib 'private-lib';
7
8use lib '.';
9use inc::Module::Install;
10
11all_from('lib/FileHandle/Unget.pm');
12
13auto_set_bugtracker;
14githubmeta;
15
16# Perl 5.6 doesn't work with URI::Escape. We get an error about Exporter not exporting "import"
17perl_version '5.008';
18
19configure_requires(
20  # Module::Install::Bugtracker needs this
21  'URI::Escape' => 0,
22);
23
24requires(
25  'Scalar::Util' => '1.14',
26);
27
28test_requires(
29  'File::Slurper' => 0,
30  'Test::More' => 0,
31  'File::Spec::Functions' => 0,
32);
33
34license 'gpl2';
35
36use_standard_tests(without => 'pod_coverage');
37
38auto_license(holder => 'David Coppit');
39no_index 'directory' => 'private-lib';
40
41enable_verbose_cpan_testing();
42
43realclean_files('inc');
44
45WriteAll;
46
47# ---- Workaround for broken module ----
48# https://rt.cpan.org/Ticket/Display.html?id=125772
49{
50  package Module::Install::StandardTests;
51
52  sub write_standard_test_compile {
53      my $self = shift;
54      $self->write_test_file('000_standard__compile.t', q/
55          BEGIN {
56            if ($^O eq 'MSWin32') {
57              require Test::More;
58              Test::More->import(skip_all =>
59                  "Test::Compile doesn't work properly on Windows");
60            } else {
61              require Test::More;
62              Test::More->import();
63              eval "use Test::Compile";
64              Test::More->builder->BAIL_OUT(
65                  "Test::Compile required for testing compilation") if $@;
66              all_pm_files_ok();
67            }
68          }
69      /);
70  }
71}
72