--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+DIST_AUTHOR=ADAMK
+DIST_VERSION=1.08
+inherit perl-module
+
+DESCRIPTION="Does your process have access to the web"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+# https://rt.cpan.org/Public/Bug/Display.html?id=112728
+PATCHES=("${FILESDIR}/${DIST_VERSION}-no-network.patch")
+# LWP::Simple -> libwww-perl
+RDEPEND="
+ >=dev-perl/libwww-perl-5.805.0
+ >=dev-perl/URI-1.350.0
+"
+DEPEND="${RDEPEND}
+ >=virtual/perl-ExtUtils-MakeMaker-6.420.0
+ test? ( >=virtual/perl-Test-Simple-0.420.0 )
+"
--- /dev/null
+DIST LWP-Online-1.08.tar.gz 32250 SHA256 e26f91b7781f2a6d3b8c364961d5e74fae660d202dc97e3c88288030d736ce9c SHA512 2b255f60ee6521757ce3d49cc0720e3985ff17e3db7b7868ced6a9e1c5444dc067c80b7d34dbe7be9679c134f3de1dbe0e9421a1a20ff388c812aacd1d964497 WHIRLPOOL 68a2635d8086357c5d4564b5846ffffb0ac8337145d405f12d3e6b5a09dd0fec0948d654714f291bf3fc822289ba8c6839f644b08d48757746a88d8e27bed128
--- /dev/null
+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';
+
--- /dev/null
+<?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>
+ <longdescription>LWP::Online is a Perl Module for testing the state of internet accessibility</longdescription>
+ <upstream>
+ <remote-id type="cpan">LWP-Online</remote-id>
+ <remote-id type="cpan-module">LWP::Online</remote-id>
+ </upstream>
+</pkgmetadata>