Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-HTTP/files/, dev-perl/Net-HTTP/
Date: Tue, 01 Mar 2016 14:41:58
Message-Id: 1456817987.4e62d2ece234b73ab40be0635e4ca260696b4d58.dilfridge@gentoo
1 commit: 4e62d2ece234b73ab40be0635e4ca260696b4d58
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 1 07:38:31 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 07:39:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e62d2ec
7
8 dev-perl/Net-HTTP: Bump to version 6.90.0
9
10 - EAPI6
11 - Test cleanup esp Network special casing.
12
13 Upstream:
14 - Better support for IPv6 and SSL
15
16 Package-Manager: portage-2.2.27
17
18 dev-perl/Net-HTTP/Manifest | 1 +
19 dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild | 30 +++++++++++++++++++
20 dev-perl/Net-HTTP/files/networktest.patch | 48 +++++++++++++++++++++++++++++++
21 3 files changed, 79 insertions(+)
22
23 diff --git a/dev-perl/Net-HTTP/Manifest b/dev-perl/Net-HTTP/Manifest
24 index e34d256..751c5a8 100644
25 --- a/dev-perl/Net-HTTP/Manifest
26 +++ b/dev-perl/Net-HTTP/Manifest
27 @@ -1 +1,2 @@
28 DIST Net-HTTP-6.06.tar.gz 15609 SHA256 1d4e3ced899efad12431564d93abe73dd2a1224aa208af5f4ab829e7a2dd39d4 SHA512 fefa06eb960b354ec5f760b720d2d7e29820fbc5aad8fd0dbc8a63ec6a7cda0000b8449cce83e38d2f4bf03bf8aa0aa19351c7f5508cb435bb9b938b34ab9e53 WHIRLPOOL 4c2ff0ed5b4fb1299b5928a8dc868fac894fa9992d4e1fa6dc0624e0ebaee4edb28cd58f817696462fa271ecf45a3085646312f7c89d729d45fdedf13484546f
29 +DIST Net-HTTP-6.09.tar.gz 17686 SHA256 52762b939d84806908ba544581c5708375f7938c3c0e496c128ca3fbc425e58d SHA512 ae36c8367206f18190237f9c6db417054b78f99cfa79cc651550d3612505faf9d31e415c8b32e7f87f4fd389ccaa0e23f62c3781f6f27485b7296b2fe48d7e45 WHIRLPOOL e29a0193e607507538d4e6c7e08808a4c5c8a58d035fa3054a82fc9e148105961de8a8b12c5dff485246a0f4b97075832785ddfa992cce7720d7e56047ef631c
30
31 diff --git a/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild b/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild
32 new file mode 100644
33 index 0000000..8257b71
34 --- /dev/null
35 +++ b/dev-perl/Net-HTTP/Net-HTTP-6.90.0.ebuild
36 @@ -0,0 +1,30 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +DIST_AUTHOR=ETHER
44 +DIST_VERSION=6.09
45 +inherit perl-module
46 +
47 +DESCRIPTION="Low-level HTTP connection (client)"
48 +
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE="minimal"
52 +
53 +PATCHES=( "${FILESDIR}/networktest.patch" )
54 +RDEPEND="
55 + !minimal? (
56 + >=dev-perl/IO-Socket-SSL-1.380.0
57 + )
58 + !<dev-perl/libwww-perl-6
59 + virtual/perl-Compress-Raw-Zlib
60 + virtual/perl-IO
61 + virtual/perl-IO-Compress
62 + dev-perl/URI
63 +"
64 +DEPEND="${RDEPEND}
65 + virtual/perl-ExtUtils-MakeMaker
66 +"
67
68 diff --git a/dev-perl/Net-HTTP/files/networktest.patch b/dev-perl/Net-HTTP/files/networktest.patch
69 new file mode 100644
70 index 0000000..c178942
71 --- /dev/null
72 +++ b/dev-perl/Net-HTTP/files/networktest.patch
73 @@ -0,0 +1,48 @@
74 +diff -Naur Net-HTTP-6.09/Makefile.PL Net-HTTP-6.09b/Makefile.PL
75 +--- Net-HTTP-6.09/Makefile.PL 2015-05-02 03:08:06.000000000 +0000
76 ++++ Net-HTTP-6.09b/Makefile.PL 2016-03-01 03:52:01.412179572 +0000
77 +@@ -3,16 +3,6 @@
78 + require 5.006002;
79 + use strict;
80 + use ExtUtils::MakeMaker;
81 +-use Getopt::Long qw(GetOptions);
82 +-GetOptions(\my %opt, 'live-tests',) or warn "Usage: $0 [--live-tests]\n";
83 +-
84 +-my $flag_file = "t/LIVE_TESTS";
85 +-if ($opt{"live-tests"}) {
86 +- open(my $fh, ">", $flag_file) || die;
87 +-}
88 +-else {
89 +- unlink($flag_file);
90 +-}
91 +
92 + WriteMakefile(
93 + NAME => 'Net::HTTP',
94 +diff -Naur Net-HTTP-6.09/t/apache-https.t Net-HTTP-6.09b/t/apache-https.t
95 +--- Net-HTTP-6.09/t/apache-https.t 2015-05-01 18:12:51.000000000 +0000
96 ++++ Net-HTTP-6.09b/t/apache-https.t 2016-03-01 03:51:19.511547486 +0000
97 +@@ -1,8 +1,8 @@
98 + #!perl -w
99 +
100 + BEGIN {
101 +- unless (-f "t/LIVE_TESTS" || -f "LIVE_TESTS") {
102 +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n";
103 ++ if ($ENV{NO_NETWORK_TESTING}) {
104 ++ print "1..0 # SKIP Live tests disabled\n";
105 + exit;
106 + }
107 + eval {
108 +diff -Naur Net-HTTP-6.09/t/apache.t Net-HTTP-6.09b/t/apache.t
109 +--- Net-HTTP-6.09/t/apache.t 2015-05-01 18:12:51.000000000 +0000
110 ++++ Net-HTTP-6.09b/t/apache.t 2016-03-01 04:01:59.267131963 +0000
111 +@@ -1,8 +1,8 @@
112 + #!perl -w
113 +
114 + BEGIN {
115 +- unless (-f "t/LIVE_TESTS" || -f "LIVE_TESTS") {
116 +- print "1..0 # SKIP Live tests disabled; pass --live-tests to Makefile.PL to enable\n";
117 ++ if( $ENV{NO_NETWORK_TESTING} ) {
118 ++ print "1..0 # SKIP Live tests disabled\n";
119 + exit;
120 + }
121 + eval {