summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2016-03-06 19:48:31 +1300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-03-09 21:48:19 +0100
commit31acade3cc7dccf6a2563975591897853d50910d (patch)
tree806eb5706e1e9260530b0476510e0aa6d745c94c /dev-perl/LWP-Online/files
parentnet-misc/wicd: Bump to 1.7.4 (diff)
downloadgentoo-31acade3cc7dccf6a2563975591897853d50910d.tar.gz
gentoo-31acade3cc7dccf6a2563975591897853d50910d.tar.bz2
gentoo-31acade3cc7dccf6a2563975591897853d50910d.zip
dev-perl/LWP-Online: Added to tree at version 1.80.0-r2
Was previously maintained in perl-experimental by Torsten Veller and Kent Fredric since Sept 2009. - Updated for EAPI6 - Patched for NO_NETWORK_TESTING mechanics - Patch includes runtime NO_NETWORK_TESTING mechanics as per https://rt.cpan.org/Public/Bug/Display.html?id=112728 as this specific path is utilized in other CPAN Modules for their network-testing code. - Added as -r2 to be newer than overlay Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-perl/LWP-Online/files')
-rw-r--r--dev-perl/LWP-Online/files/1.08-no-network.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-perl/LWP-Online/files/1.08-no-network.patch b/dev-perl/LWP-Online/files/1.08-no-network.patch
new file mode 100644
index 000000000000..e6b0419eef09
--- /dev/null
+++ b/dev-perl/LWP-Online/files/1.08-no-network.patch
@@ -0,0 +1,30 @@
+diff -Naur LWP-Online-1.08/lib/LWP/Online.pm LWP-Online-1.08b/lib/LWP/Online.pm
+--- LWP-Online-1.08/lib/LWP/Online.pm 2011-07-08 07:02:25.000000000 +0000
++++ LWP-Online-1.08b/lib/LWP/Online.pm 2016-03-06 06:20:12.351333667 +0000
+@@ -167,6 +167,9 @@
+ my @functions = grep { $_ ne ':skip_all' } @_;
+ if ( @functions != @_ ) {
+ require Test::More;
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ Test::More->import( skip_all => 'NO_NETWORK_TESTING set' );
++ }
+ unless ( online() ) {
+ Test::More->import( skip_all => 'Test requires a working internet connection' );
+ }
+diff -Naur LWP-Online-1.08/t/02_main.t LWP-Online-1.08b/t/02_main.t
+--- LWP-Online-1.08/t/02_main.t 2011-07-08 07:02:25.000000000 +0000
++++ LWP-Online-1.08b/t/02_main.t 2016-03-06 06:14:41.521243616 +0000
+@@ -7,7 +7,12 @@
+ $| = 1;
+ $^W = 1;
+ }
+-
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ require Test::More;
++ Test::More->import('skip_all', "NO_NETWORK_TESTING set");
++ }
++}
+ use Test::More tests => 6;
+ use LWP::Online 'online', 'offline';
+