summaryrefslogtreecommitdiff
path: root/dev-perl/LWP-Online
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-perl/LWP-Online
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-perl/LWP-Online')
-rw-r--r--dev-perl/LWP-Online/LWP-Online-1.80.0-r2.ebuild34
-rw-r--r--dev-perl/LWP-Online/Manifest1
-rw-r--r--dev-perl/LWP-Online/files/1.08-no-network.patch30
-rw-r--r--dev-perl/LWP-Online/metadata.xml14
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-perl/LWP-Online/LWP-Online-1.80.0-r2.ebuild b/dev-perl/LWP-Online/LWP-Online-1.80.0-r2.ebuild
new file mode 100644
index 000000000000..936f1f299a13
--- /dev/null
+++ b/dev-perl/LWP-Online/LWP-Online-1.80.0-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=ADAMK
+DIST_VERSION=1.08
+inherit perl-module
+
+DESCRIPTION="Does your process have access to the web"
+
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+RESTRICT="!test? ( 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 )
+"
+
+src_prepare() {
+ sed -i -e 's/use inc::Module::Install::DSL 1\.01;/use lib q[.];\nuse inc::Module::Install::DSL 1.01;/' Makefile.PL ||
+ die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+ perl-module_src_prepare
+}
diff --git a/dev-perl/LWP-Online/Manifest b/dev-perl/LWP-Online/Manifest
new file mode 100644
index 000000000000..7ae52ceb1668
--- /dev/null
+++ b/dev-perl/LWP-Online/Manifest
@@ -0,0 +1 @@
+DIST LWP-Online-1.08.tar.gz 32250 BLAKE2B 4696ef7d50498b5373bd52568afac5876aa7afbe41ca6fed0029274bc0b52e05b005179fa520a63c2e43e9ba78df0dc1e99a2011f4ff13915f2cad829e706064 SHA512 2b255f60ee6521757ce3d49cc0720e3985ff17e3db7b7868ced6a9e1c5444dc067c80b7d34dbe7be9679c134f3de1dbe0e9421a1a20ff388c812aacd1d964497
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';
+
diff --git a/dev-perl/LWP-Online/metadata.xml b/dev-perl/LWP-Online/metadata.xml
new file mode 100644
index 000000000000..22abbcfe7bee
--- /dev/null
+++ b/dev-perl/LWP-Online/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>