summaryrefslogtreecommitdiff
path: root/Build.PL
diff options
context:
space:
mode:
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL50
1 files changed, 50 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 0000000..ddb9c7a
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,50 @@
+use strict;
+use warnings;
+
+use Module::Build;
+
+my $build = Module::Build->new(
+ module_name => 'IO::Async',
+ requires => {
+ 'Future' => '0.26', # ->is_failed
+ 'Future::Utils' => '0.18', # try_repeat
+ 'Exporter' => '5.57',
+ 'File::stat' => 0,
+ 'IO::Poll' => 0,
+ 'Socket' => '2.007',
+ 'Storable' => 0,
+ 'Struct::Dumb' => 0,
+ 'Time::HiRes' => 0,
+
+ # Fails on perl 5.8.3 for unknown reasons
+ # https://rt.cpan.org/Ticket/Display.html?id=64493
+ # Now 5.16 is stable, I see even less reason to worry about such an old Perl
+
+ # Furthermore we've started using 5.10'isms
+ 'perl' => '5.010',
+ },
+ recommends => {
+ 'IO::Socket::IP' => 0,
+ },
+ test_requires => {
+ 'File::Temp' => 0,
+ 'Test::Fatal' => 0,
+ 'Test::Identity' => 0,
+ 'Test::More' => '0.88',
+ 'Test::Refcount' => 0,
+ },
+ configure_requires => {
+ 'Module::Build' => '0.4004', # test_requires
+ },
+ license => 'perl',
+ create_makefile_pl => 'traditional',
+ create_license => 1,
+ create_readme => 1,
+ meta_merge => {
+ resources => {
+ x_IRC => "irc://irc.perl.org/#io-async",
+ },
+ },
+);
+
+$build->create_build_script;