diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/Net-HTTP |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/Net-HTTP')
-rw-r--r-- | dev-perl/Net-HTTP/Manifest | 15 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/Net-HTTP-6.120.0.ebuild | 37 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/Net-HTTP-6.130.0.ebuild | 37 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/Net-HTTP-6.150.0.ebuild | 37 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/Net-HTTP-6.160.0.ebuild | 37 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild | 29 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/files/6.12-networktest.patch | 131 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/files/networktest.patch | 48 | ||||
-rw-r--r-- | dev-perl/Net-HTTP/metadata.xml | 15 |
9 files changed, 386 insertions, 0 deletions
diff --git a/dev-perl/Net-HTTP/Manifest b/dev-perl/Net-HTTP/Manifest new file mode 100644 index 000000000000..4684566e0967 --- /dev/null +++ b/dev-perl/Net-HTTP/Manifest @@ -0,0 +1,15 @@ +AUX 6.12-networktest.patch 3533 SHA256 ca674d4533fe74a8c32594d82f4185a709e9e4e58c534c2ba589ad91d5e6b726 SHA512 789a613b42202aabe9bc35a82266096d73843906a193fa4d6b42a1dd3bbd9f84fd7d561dd4a19d28c77df1eaf65b270b8e3dff823cb1e7de07fd5798e0571182 WHIRLPOOL 1a49211c5c3101a1713da032835144fd7594e1c38bc5c220542b751e8815fe6d7a2de461c63ff737b59c0ab7de89df5c0f5ddc65e06734d01793d353ff162b32 +AUX networktest.patch 1554 SHA256 9e07ee0289f3386a96dbb5e735586fb761dc6d6440e6a2fdc48f2bc2561a0c2f SHA512 97d03089bf155955fd047bbc069d11274faff4f22ea410a80b650f44ea7708708e490b26f9b31037800a140c1b79c0270af3053569efe0776ce6fb272d16797a WHIRLPOOL f02082f5a862da1e37cd63029ca26dba926d4ae73910dcbb4e1c4b899827d5ac9be7b83d9002b1d7fba9a9c60fddc03044942fe9347e441332ea652b113661b8 +DIST Net-HTTP-6.09.tar.gz 17686 SHA256 52762b939d84806908ba544581c5708375f7938c3c0e496c128ca3fbc425e58d SHA512 ae36c8367206f18190237f9c6db417054b78f99cfa79cc651550d3612505faf9d31e415c8b32e7f87f4fd389ccaa0e23f62c3781f6f27485b7296b2fe48d7e45 WHIRLPOOL e29a0193e607507538d4e6c7e08808a4c5c8a58d035fa3054a82fc9e148105961de8a8b12c5dff485246a0f4b97075832785ddfa992cce7720d7e56047ef631c +DIST Net-HTTP-6.12.tar.gz 29548 SHA256 8565aff76b3d09084642f3a83c654fb4ced8220e8e19d35c78b661519b4c1be6 SHA512 5353f1c5914f90338f05342904224ff7998133e025de4389a68e9abf521040a1f9bb4c9b8c13f65bb014947fc3186c1d7e078a699f40a3edf5afed3a0da8746d WHIRLPOOL a19a97e4b4a6c7aae425bb20926cfc485417a63b60745b13d266fab36857b03dd3da2390ae468fd0d305db808df0521796571e13093b15ea8be46d1ad5d271b9 +DIST Net-HTTP-6.13.tar.gz 29658 SHA256 2d25e696c5239c8a4aa5a97f07ecaa77cf908cc72bbeef7fa6573570af31ce87 SHA512 7c94248d03fc4b0334439a055edcf840b5dadcd2e69f05834c54e4c45908f68c2783da3189e4cd2a5f3caf51f95e483241a7e2f1f58851029c70cffc3bbfac03 WHIRLPOOL b620354b9c62041ebd36da02de8cb5738d166b96e14f9a90fef7cda17c411b53a21f246be290777c604d78dc08c0e8a298de3469bdb7b8b5d7d69af0c55874c6 +DIST Net-HTTP-6.15.tar.gz 34262 SHA256 650c9aca583ed8ecda988f4330f62520d2441a9325276eea27d01b47b86615a5 SHA512 10d539a1aaeb2e5850d3a626bd3989824d76f512d5165e934bd0b0d57220ba80aab872e3c36f2d9ef9e1e49e74d2cde31b335ae616b3b299cfd6acea061e3347 WHIRLPOOL c3bccb285322f5928ef59f0cfdfc929395042a3fcfd9b616c162d7e50a035956bd6d56aa49da0bbe3dfc176a62e4276e0dce8bf7ff02d9ff1c327c0bfd063b1e +DIST Net-HTTP-6.16.tar.gz 34458 SHA256 70c45b6aaf3e9fb1ce30a1fc3cf828cfaee45c5c0bd147b2f617efade1765e78 SHA512 467a536c4ecc5caeeebe2a0523cc311515c39df53d604d8dc9ad78fbe01c8cc5b24bf483884d2aa2a168bc213ddfe964d679474a1be860f10d87283806c0a496 WHIRLPOOL 1c8801097ab0bfbf3901a0d32cde68d6857ea7f905d6ca30be392097a82006968294ff85340cc59d1004f06cda6bea361a67d6bfa7e6eb524b6aa11dcc6cd713 +EBUILD Net-HTTP-6.120.0.ebuild 949 SHA256 3bfe307ce90b7ce870131fd1b6960a3120d19b15a8c21e4fa4a850b319bd5e8e SHA512 c053e14afa685938589653d08683f2e09ddb50181cbc92ac24c856fa65eba3861c70c71428a760d75c112009fcec1b40351d01eb0169c240aa1ed74abd0f4d73 WHIRLPOOL 6fa24c7f1f60bf881948e2347b949214e940d291aee244630feefccb4c0f0ec601c84fa3e4d3ca037ab4c1edd3c2a29cb863537511b66e03cc38d06e1609e877 +EBUILD Net-HTTP-6.130.0.ebuild 950 SHA256 4a99b7f49630ab55324dcf28095df3a7067c0dbf1656f013966af7e88eb19158 SHA512 c49af5f47571dc5055a4f3c76e3ea0ffc30578e0670c14c88809d40762dc99e0d47408e96dba8f3dff603c2788202f73fe4b99c4d8eb070753f6265a3be17d13 WHIRLPOOL 97a20569e175414ae3289e238db54054b1b71ff9d68fcaddb2e9eb8403e3d719631a96921eaa5c52cb8ef73d2c2e5865237f3d112240ed60765f67cfac77cefe +EBUILD Net-HTTP-6.150.0.ebuild 926 SHA256 3b8a3506dfea81b70b37854001f206a410bccf9af57bfaf6bf8b59bd59559c34 SHA512 fdafd78214b436c190e74e3a7703de2a6d6c3bf2625042359c9a20938e44dd5e2651947c758f2bdecf707ed17c4d0776485a5fabd04164760c23142be22607e9 WHIRLPOOL fc4e84b3f96e0c51ccb8519ba6716615437e8bac10693af8353d138df7f00f0678d707582fc2ca4238e3e68cedab2ff4ed1febcb3670010e7640049bfd4313aa +EBUILD Net-HTTP-6.160.0.ebuild 925 SHA256 10b6e437a36f5351bdcdfa259824f3652f27a2981442495b83a5112da7490581 SHA512 ae7717fd2ffc8999a9f4d8940673094be1f51bc7eab31b545622741eeb792be65e8251b1b21675b90cbc6dc2f890c2271d5fcb5bee962c85367a21c22dc7a1ce WHIRLPOOL 1bffbe93847a50ae4c73eecdb1c2ce2f46f365644e40b7fc495f7de6b3ef3d45763cbdb6baf6e81dc31c5e50e4c610dfe7cf2c2e3e199a692b58e06105e36cb5 +EBUILD Net-HTTP-6.90.0.ebuild 767 SHA256 bc0b60a05431f870f271046dde54093c978d0cdb319859234275164e7cabeed8 SHA512 041ff42f3e6e6cd726e135fa531c83290446190d7f9326a5f19d37d2b9139e980ae1853ae23fc42f9294289b914c12fceed61f795088f65781dba85bf75bb426 WHIRLPOOL fa29fe21bc2ea9b092a41483dd3b130f521d0f9b4654042ed90fe2d25a0b8b0f107342fe679a4544dd8b89220916f968d701892707c7dd6258985c69542658cb +MISC ChangeLog 3121 SHA256 be37e2c117892309a77da60068a014adf74252528e38054ea0fbc8c1fa50a902 SHA512 caca4d51eee523ad6ef73c0a3af6c176d4fcd450f57906bc598c8d9e381f3a46b7c7ccf6d45bf9e5f1990ae446a2d9dac71cdd4e5b2c89ed62930411f4584793 WHIRLPOOL d2e28a6d8e037fc7d618e9543ce021e742c1f51b4e7b52eadf75c6d26cd5a8eb3cc4ee39d067ed5e488b97f2479a7c05fbffff614a9c87ba9f6c8437a92e27b3 +MISC ChangeLog-2015 5647 SHA256 304fb67b307b14b58404e5fb8c7738202207df8a38749c2e3987efe079b90854 SHA512 c107e7798b4995a1661cc6e672cf0c8a23b2e534aa250f852ce1ba10bb73893ecafd2fa2d55eca9f55ae2908a2c57d9d59c09b7c4469e10c37c04a183296d84e WHIRLPOOL bb263a4a71463c7f1ce01f46ad382da40a72b075bec5dd2b7203a64bffef28291a1e412a8a0a6b9763287c8fdc008e77ba31e17b76a05d08067f35868f45a507 +MISC metadata.xml 552 SHA256 bec391f8c472d85707ae24649eee2ddd73da963db676bef0f53ad07019fef530 SHA512 961ea4e69d6fee34cb1e0086fb4fd451ecb36192a1ab48373350f77e6f7e84e79f20dd7d8fb51429a7e678287f494472358d8e6ad5f8839ce2f159d7bdbb2be0 WHIRLPOOL be66044e9e791c10489666421563b830d87b7bcd2b48f0ee15b06328ccff8f80753a1023af40a2c40416cc10bd58c169e9780d2416746ca892523552c690dec1 diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.120.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.120.0.ebuild new file mode 100644 index 000000000000..638461912442 --- /dev/null +++ b/dev-perl/Net-HTTP/Net-HTTP-6.120.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=OALDERS +DIST_VERSION=6.12 +inherit perl-module + +DESCRIPTION="Low-level HTTP connection (client)" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="minimal test" + +PATCHES=( "${FILESDIR}/${DIST_VERSION}-networktest.patch" ) +RDEPEND=" + !minimal? ( + virtual/perl-IO-Socket-IP + dev-perl/IO-Socket-INET6 + >=dev-perl/IO-Socket-SSL-1.380.0 + ) + virtual/perl-Carp + !<dev-perl/libwww-perl-6 + virtual/perl-Compress-Raw-Zlib + virtual/perl-IO + virtual/perl-IO-Compress + dev-perl/URI +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + virtual/perl-Data-Dumper + virtual/perl-Socket + virtual/perl-Test-Simple + ) +" diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.130.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.130.0.ebuild new file mode 100644 index 000000000000..01cfc32c35d2 --- /dev/null +++ b/dev-perl/Net-HTTP/Net-HTTP-6.130.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=OALDERS +DIST_VERSION=6.13 +inherit perl-module + +DESCRIPTION="Low-level HTTP connection (client)" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="minimal test" + +PATCHES=( "${FILESDIR}/6.12-networktest.patch" ) +RDEPEND=" + !minimal? ( + virtual/perl-IO-Socket-IP + dev-perl/IO-Socket-INET6 + >=dev-perl/IO-Socket-SSL-1.380.0 + ) + virtual/perl-Carp + !<dev-perl/libwww-perl-6 + virtual/perl-Compress-Raw-Zlib + virtual/perl-IO + virtual/perl-IO-Compress + dev-perl/URI +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + virtual/perl-Data-Dumper + virtual/perl-Socket + virtual/perl-Test-Simple + ) +" diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.150.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.150.0.ebuild new file mode 100644 index 000000000000..e208578046b2 --- /dev/null +++ b/dev-perl/Net-HTTP/Net-HTTP-6.150.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=OALDERS +DIST_VERSION=6.15 +inherit perl-module + +DESCRIPTION="Low-level HTTP connection (client)" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="minimal test" + +RDEPEND=" + !minimal? ( + virtual/perl-IO-Socket-IP + dev-perl/IO-Socket-INET6 + >=dev-perl/IO-Socket-SSL-1.380.0 + ) + virtual/perl-Carp + !<dev-perl/libwww-perl-6 + virtual/perl-Compress-Raw-Zlib + virtual/perl-IO + virtual/perl-IO-Compress + dev-perl/URI +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + virtual/perl-Data-Dumper + virtual/perl-File-Spec + virtual/perl-Socket + virtual/perl-Test-Simple + ) +" diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.160.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.160.0.ebuild new file mode 100644 index 000000000000..6a472b846bd8 --- /dev/null +++ b/dev-perl/Net-HTTP/Net-HTTP-6.160.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=OALDERS +DIST_VERSION=6.16 +inherit perl-module + +DESCRIPTION="Low-level HTTP connection (client)" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="minimal test" + +RDEPEND=" + !minimal? ( + virtual/perl-IO-Socket-IP + dev-perl/IO-Socket-INET6 + >=dev-perl/IO-Socket-SSL-2.12.0 + ) + virtual/perl-Carp + !<dev-perl/libwww-perl-6 + virtual/perl-Compress-Raw-Zlib + virtual/perl-IO + virtual/perl-IO-Compress + dev-perl/URI +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + virtual/perl-Data-Dumper + virtual/perl-File-Spec + virtual/perl-Socket + virtual/perl-Test-Simple + ) +" diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild new file mode 100644 index 000000000000..a917229f7c78 --- /dev/null +++ b/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=ETHER +DIST_VERSION=6.09 +inherit perl-module + +DESCRIPTION="Low-level HTTP connection (client)" + +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="minimal" + +PATCHES=( "${FILESDIR}/networktest.patch" ) +RDEPEND=" + !minimal? ( + >=dev-perl/IO-Socket-SSL-1.380.0 + ) + !<dev-perl/libwww-perl-6 + virtual/perl-Compress-Raw-Zlib + virtual/perl-IO + virtual/perl-IO-Compress + dev-perl/URI +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker +" diff --git a/dev-perl/Net-HTTP/files/6.12-networktest.patch b/dev-perl/Net-HTTP/files/6.12-networktest.patch new file mode 100644 index 000000000000..3b67a939fe64 --- /dev/null +++ b/dev-perl/Net-HTTP/files/6.12-networktest.patch @@ -0,0 +1,131 @@ +From 3cfadd0fd690678e57eb5b6d1e0528724195238d Mon Sep 17 00:00:00 2001 +From: Olaf Alders <olaf@wundersolutions.com> +Date: Thu, 29 Dec 2016 22:25:12 -0500 +Subject: [PATCH 1/2] Allow for 302s in live tests. + +--- + t/live-https.t | 7 ++----- + t/live.t | 7 ++----- + 2 files changed, 4 insertions(+), 10 deletions(-) + +diff --git a/t/live-https.t b/t/live-https.t +index 3482bbf..82e3b3d 100644 +--- a/t/live-https.t ++++ b/t/live-https.t +@@ -63,12 +63,9 @@ for ( 1 .. 2 ) { + $buf .= $tmp; + } + $buf =~ s/\r//g; +- +- # ( my $out = $buf ) =~ s/^/# /gm; +- # print $out; + +- is( $code, "200" ); ++ ok( $code == 302 || $code == 200, 'success' ); + like( $h{'Content-Type'}, qr{text/html} ); +- like( $buf, qr{</html>} ); ++ like( $buf, qr{</html>}i ); + } + +diff --git a/t/live.t b/t/live.t +index 747515a..9a8306d 100644 +--- a/t/live.t ++++ b/t/live.t +@@ -57,12 +57,9 @@ for ( 1 .. 2 ) { + $buf .= $tmp; + } + $buf =~ s/\r//g; +- +- # ( my $out = $buf ) =~ s/^/# /gm; +- # print $out; + +- is( $code, "200" ); ++ ok( $code == 302 || $code == 200, 'success' ); + like( $h{'Content-Type'}, qr{text/html} ); +- like( $buf, qr{</html>} ); ++ like( $buf, qr{</html>}i ); + } + +-- +2.11.0 + +From e9e0dcfb01425e3f620312375eaa50c4d6d0e561 Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentfredric@gmail.com> +Date: Sun, 8 Jan 2017 17:54:44 +1300 +Subject: [PATCH 2/2] Use NO_NETWORK_TESTING env var to fence off live tests + +--- + t/live-https.t | 4 ++-- + t/live.t | 4 ++-- + t/rt-112313.t | 25 ++++++++++++++++++++----- + 3 files changed, 24 insertions(+), 9 deletions(-) + +diff --git a/t/live-https.t b/t/live-https.t +index 82e3b3d..7d5d258 100644 +--- a/t/live-https.t ++++ b/t/live-https.t +@@ -1,6 +1,6 @@ + BEGIN { +- unless ( -f "t/LIVE_TESTS" || -f "LIVE_TESTS" ) { +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n"; ++ if ( $ENV{NO_NETWORK_TESTING} ) { ++ print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n"; + exit; + } + eval { +diff --git a/t/live.t b/t/live.t +index 9a8306d..a7c2f9d 100644 +--- a/t/live.t ++++ b/t/live.t +@@ -1,6 +1,6 @@ + BEGIN { +- unless ( -f "t/LIVE_TESTS" || -f "LIVE_TESTS" ) { +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n"; ++ if ( $ENV{NO_NETWORK_TESTING} ) { ++ print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n"; + exit; + } + eval { +diff --git a/t/rt-112313.t b/t/rt-112313.t +index 365d498..f98040d 100644 +--- a/t/rt-112313.t ++++ b/t/rt-112313.t +@@ -1,3 +1,23 @@ ++BEGIN { ++ if ( $ENV{NO_NETWORK_TESTING} ) { ++ print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n"; ++ exit; ++ } ++ eval { ++ require IO::Socket::INET; ++ my $s = IO::Socket::INET->new( ++ PeerHost => "httpbin.org:80", ++ Timeout => 5, ++ ); ++ die "Can't connect: $@" unless $s; ++ }; ++ if ($@) { ++ print "1..0 # SKIP Can't connect to httpbin.org\n"; ++ print $@; ++ exit; ++ } ++} ++ + use strict; + use warnings; + use Test::More; +@@ -15,11 +35,6 @@ use Net::HTTP; + # So, we check that the reponse growth is only one byte after each iteration and also test multiple + # times across the 1024, 2048 and 3072 boundaries... + +-unless (-f "t/LIVE_TESTS" || -f "LIVE_TESTS") +-{ +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n"; +- exit; +-} + + sub try + { +-- +2.11.0 + diff --git a/dev-perl/Net-HTTP/files/networktest.patch b/dev-perl/Net-HTTP/files/networktest.patch new file mode 100644 index 000000000000..c1789424f0ce --- /dev/null +++ b/dev-perl/Net-HTTP/files/networktest.patch @@ -0,0 +1,48 @@ +diff -Naur Net-HTTP-6.09/Makefile.PL Net-HTTP-6.09b/Makefile.PL +--- Net-HTTP-6.09/Makefile.PL 2015-05-02 03:08:06.000000000 +0000 ++++ Net-HTTP-6.09b/Makefile.PL 2016-03-01 03:52:01.412179572 +0000 +@@ -3,16 +3,6 @@ + require 5.006002; + use strict; + use ExtUtils::MakeMaker; +-use Getopt::Long qw(GetOptions); +-GetOptions(\my %opt, 'live-tests',) or warn "Usage: $0 [--live-tests]\n"; +- +-my $flag_file = "t/LIVE_TESTS"; +-if ($opt{"live-tests"}) { +- open(my $fh, ">", $flag_file) || die; +-} +-else { +- unlink($flag_file); +-} + + WriteMakefile( + NAME => 'Net::HTTP', +diff -Naur Net-HTTP-6.09/t/apache-https.t Net-HTTP-6.09b/t/apache-https.t +--- Net-HTTP-6.09/t/apache-https.t 2015-05-01 18:12:51.000000000 +0000 ++++ Net-HTTP-6.09b/t/apache-https.t 2016-03-01 03:51:19.511547486 +0000 +@@ -1,8 +1,8 @@ + #!perl -w + + BEGIN { +- unless (-f "t/LIVE_TESTS" || -f "LIVE_TESTS") { +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n"; ++ if ($ENV{NO_NETWORK_TESTING}) { ++ print "1..0 # SKIP Live tests disabled\n"; + exit; + } + eval { +diff -Naur Net-HTTP-6.09/t/apache.t Net-HTTP-6.09b/t/apache.t +--- Net-HTTP-6.09/t/apache.t 2015-05-01 18:12:51.000000000 +0000 ++++ Net-HTTP-6.09b/t/apache.t 2016-03-01 04:01:59.267131963 +0000 +@@ -1,8 +1,8 @@ + #!perl -w + + BEGIN { +- unless (-f "t/LIVE_TESTS" || -f "LIVE_TESTS") { +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n"; ++ if( $ENV{NO_NETWORK_TESTING} ) { ++ print "1..0 # SKIP Live tests disabled\n"; + exit; + } + eval { diff --git a/dev-perl/Net-HTTP/metadata.xml b/dev-perl/Net-HTTP/metadata.xml new file mode 100644 index 000000000000..16153c6dcc90 --- /dev/null +++ b/dev-perl/Net-HTTP/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>perl@gentoo.org</email> + <name>Gentoo Perl Project</name> + </maintainer> + <upstream> + <remote-id type="cpan">Net-HTTP</remote-id> + <remote-id type="cpan-module">Net::HTTP</remote-id> + <remote-id type="cpan-module">Net::HTTP::Methods</remote-id> + <remote-id type="cpan-module">Net::HTTP::NB</remote-id> + <remote-id type="cpan-module">Net::HTTPS</remote-id> + </upstream> +</pkgmetadata> |