Skip to content
Permalink
Browse files

p5-http-daemon: update to version 6.03, dependencies

* now builds using Module::Build::Tiny
* patch to correctly skip tests inappropriate for darwin
  • Loading branch information
dbevans committed Apr 1, 2019
1 parent 21f1e6b commit 69ecd33c6b8e23738124467e5cecf95a88ffca57
Showing with 43 additions and 5 deletions.
  1. +13 −5 perl/p5-http-daemon/Portfile
  2. +30 −0 perl/p5-http-daemon/files/patch-fix-os-name.diff
@@ -4,22 +4,30 @@ PortSystem 1.0
PortGroup perl5 1.0

perl5.branches 5.26 5.28
perl5.setup HTTP-Daemon 6.01
revision 1
perl5.setup HTTP-Daemon 6.03
platforms darwin
maintainers nomaintainer
license {Artistic-1 GPL}
supported_archs noarch

description HTTP::Daemon - a simple HTTP server class
long_description ${description}

checksums rmd160 426d00f81025ed56e861384a8722163589814a66 \
sha256 43fd867742701a3f9fcc7bd59838ab72c6490c0ebaf66901068ec6997514adc2
checksums rmd160 b6a5b202d694a687c1a5f21c287977aea22e5e2a \
sha256 384c2a18ec3bb447bba998c0e2688fbb765a7a877a875ad165057030ef61860c \
size 43989

if {${perl5.major} != ""} {
depends_build-append \
port:p${perl5.major}-module-build-tiny \
port:p${perl5.major}-test-needs

depends_lib-append \
port:p${perl5.major}-http-date \
port:p${perl5.major}-http-message \
port:p${perl5.major}-lwp-mediatypes

patchfiles patch-fix-os-name.diff

perl5.use_module_build
supported_archs noarch
}
@@ -0,0 +1,30 @@
diff -ur t.orig/local/http.t t/local/http.t
--- t.orig/local/http.t 2019-04-01 16:51:16.000000000 -0700
+++ t/local/http.t 2019-04-01 16:56:50.000000000 -0700
@@ -2,7 +2,7 @@

use Test::Needs 'LWP::UserAgent';

-if ($^O eq "MacOS") {
+if ($^O eq "darwin") {
print "1..0\n";
exit(0);
}
diff -ur t.orig/robot/ua-get.t t/robot/ua-get.t
--- t.orig/robot/ua-get.t 2019-04-01 16:51:16.000000000 -0700
+++ t/robot/ua-get.t 2019-04-01 16:55:43.000000000 -0700
@@ -1,4 +1,4 @@
-if($^O eq "MacOS") {
+if($^O eq "darwin") {
print "1..0\n";
exit(0);
}
diff -ur t.orig/robot/ua.t t/robot/ua.t
--- t.orig/robot/ua.t 2019-04-01 16:51:16.000000000 -0700
+++ t/robot/ua.t 2019-04-01 16:56:23.000000000 -0700
@@ -1,4 +1,4 @@
-if($^O eq "MacOS") {
+if($^O eq "darwin") {
print "1..0\n";
exit(0);
}

0 comments on commit 69ecd33

Please sign in to comment.
You can’t perform that action at this time.