Permalink
Browse files

Use Module::Build. Fix test path to starman bin

  • Loading branch information...
miyagawa committed Mar 28, 2013
1 parent ab7298e commit aaf712a49c642855c6fca72ab32691a7e387f709
Showing with 74 additions and 6 deletions.
  1. +46 −3 Build.PL
  2. +25 −1 META.json
  3. +1 −0 dist.ini
  4. +1 −1 t/findbin.t
  5. +1 −1 t/rand.t
View
@@ -1,3 +1,46 @@
-use 5.006;
-use Module::Build::Tiny 0.013;
-Build_PL();
+
+use strict;
+use warnings;
+
+use Module::Build 0.3601;
+
+
+my %module_build_args = (
+ "build_requires" => {
+ "Module::Build" => "0.3601",
+ "Test::More" => 0,
+ "Test::Requires" => 0
+ },
+ "configure_requires" => {
+ "Module::Build" => "0.3601"
+ },
+ "dist_abstract" => "High-performance preforking PSGI/Plack web server",
+ "dist_author" => [
+ "Tatsuhiko Miyagawa <miyagawa\@bulknews.net>"
+ ],
+ "dist_name" => "Starman",
+ "dist_version" => "0.3006",
+ "license" => "perl",
+ "module_name" => "Starman",
+ "recommends" => {},
+ "recursive_test_files" => 1,
+ "requires" => {
+ "Data::Dump" => 0,
+ "HTTP::Date" => 0,
+ "HTTP::Parser::XS" => 0,
+ "HTTP::Status" => 0,
+ "Net::Server" => "0.91",
+ "Plack" => "0.9971",
+ "Test::TCP" => "1.11",
+ "parent" => 0,
+ "perl" => "5.008001"
+ },
+ "script_files" => [
+ "script/starman"
+ ]
+);
+
+
+my $build = Module::Build->new(%module_build_args);
+
+$build->create_build_script;
View
@@ -14,15 +14,39 @@
},
"name" : "Starman",
"prereqs" : {
+ "build" : {
+ "requires" : {
+ "Module::Build" : "0.3601"
+ }
+ },
"configure" : {
"requires" : {
- "Module::Build::Tiny" : "0.013"
+ "Module::Build" : "0.3601"
}
},
"develop" : {
"requires" : {
"Test::Pod" : "1.41"
}
+ },
+ "runtime" : {
+ "requires" : {
+ "Data::Dump" : "0",
+ "HTTP::Date" : "0",
+ "HTTP::Parser::XS" : "0",
+ "HTTP::Status" : "0",
+ "Net::Server" : "0.91",
+ "Plack" : "0.9971",
+ "Test::TCP" : "1.11",
+ "parent" : "0",
+ "perl" : "5.008001"
+ }
+ },
+ "test" : {
+ "requires" : {
+ "Test::More" : "0",
+ "Test::Requires" : "0"
+ }
}
},
"release_status" : "stable",
View
@@ -1 +1,2 @@
[@Milla]
+installer = ModuleBuild
View
@@ -6,7 +6,7 @@ use Test::More;
my $s = Test::TCP->new(
code => sub {
my $port = shift;
- exec $^X, "bin/starman", "--port", $port, "--max-requests=1", "--workers=1", "t/findbin.psgi";
+ exec $^X, "script/starman", "--port", $port, "--max-requests=1", "--workers=1", "t/findbin.psgi";
},
);
View
@@ -9,7 +9,7 @@ for (1..2) { # preload, non-preload
my $s = Test::TCP->new(
code => sub {
my $port = shift;
- exec $^X, "bin/starman", @preload, "--port", $port, "--max-requests=1", "--workers=1", "t/rand.psgi";
+ exec $^X, "script/starman", @preload, "--port", $port, "--max-requests=1", "--workers=1", "t/rand.psgi";
},
);

0 comments on commit aaf712a

Please sign in to comment.