summaryrefslogtreecommitdiff
path: root/dev-perl/Net-XMPP
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/Net-XMPP
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Net-XMPP')
-rw-r--r--dev-perl/Net-XMPP/Manifest5
-rw-r--r--dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild35
-rw-r--r--dev-perl/Net-XMPP/files/1.05-no-dot-inc.patch133
-rw-r--r--dev-perl/Net-XMPP/files/1.05-no-network-tests.patch65
-rw-r--r--dev-perl/Net-XMPP/metadata.xml25
5 files changed, 263 insertions, 0 deletions
diff --git a/dev-perl/Net-XMPP/Manifest b/dev-perl/Net-XMPP/Manifest
new file mode 100644
index 000000000000..0a595edc9f77
--- /dev/null
+++ b/dev-perl/Net-XMPP/Manifest
@@ -0,0 +1,5 @@
+AUX 1.05-no-dot-inc.patch 3578 BLAKE2B 7fea81108b326bc20a3bb804cad1a75dd6d8ae590bf392612f2745c4e95cdfebc73603a5b3178f74846372e5dce8258974548c63a53a3bbd329e8e38e1e0bbce SHA512 01c8572fdef916ff937d36356d308c441cb2512f34fd1a5e2458b02b9f9c79619addea75b108a5030668bb50f8f086c9f4b51faf1e7e16722d535335634ec405
+AUX 1.05-no-network-tests.patch 1569 BLAKE2B 68d736865c0f727c03b64ef1dc8654a903f8098056fb9d7b1975ebdb5f2b4e0c7493d712d2fe35c1bd5533e60cfee475e321b37b24f3d7d773df0134aa7c2a5b SHA512 a51cbbacd06b94a94881b5b36164d596d5ee2d9818fc1ae544ddc7468cb92f0c7041863cc9aad4eb16c9885bf4b946e8bfc9ef7087280417651b8c5d7f79dc56
+DIST Net-XMPP-1.05.tar.gz 103876 BLAKE2B 5ddc98125b26518c59aa4ab39a974b9cbf1575bd59bb66d5329a43e1d5c3d150f34cc93f545f2cd56846e7b4e46142c47aff7da9b279181a02a57bf95ff1757b SHA512 cdd5474fcbdf7ff6c7d1247f9828f5dfb1828c258af366a831bab8e5faab423b73aa16c34228818526ebcc3180ef0ccc52d6e6cb61e2fe689458b87ec7fab699
+EBUILD Net-XMPP-1.50.0.ebuild 753 BLAKE2B 3f94930f751341b9902e5bc44cd85ffb8a842139cded228f4ff35b4ae5f41b7de345cda74f97ce598296c2290b46b24c099e97bda2e55298c8aee47db9ae28a2 SHA512 a837b15ac4d821554466de4afd687cb656f4f0e643ad1b86b185be8b45ea97687725e3e15433a3f402dcb426441c6b500dfc885cd4d7efeaf245fd794177211d
+MISC metadata.xml 1305 BLAKE2B 2ec03661e185b80764b28cce46f08bef4817cd3c1b2244b8222c1f5eb507afd77e143d7605b38cdf221639b8b1f13a959bf42dfce3da0cb0857e3112913f74f8 SHA512 4a016ed35a0d553609a3ce69b71095c00064f39a1960dad6bf53da42d3d9e65ee4fa7256128b5af2ca40779a69b28ea02286b6b0427a9692639fa8575c9068bd
diff --git a/dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild b/dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild
new file mode 100644
index 000000000000..1b1ae496478c
--- /dev/null
+++ b/dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=DAPATRICK
+DIST_VERSION=1.05
+DIST_EXAMPLES=( "examples/*" )
+inherit perl-module
+
+DESCRIPTION="XMPP Perl Library"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-perl/Authen-SASL-2.120.0
+ virtual/perl-Digest-SHA
+ virtual/perl-Scalar-List-Utils
+ >=dev-perl/XML-Stream-1.240.0
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/Module-Build-0.360.300
+ test? (
+ >=dev-perl/LWP-Online-1.70.0
+ >=dev-perl/YAML-Tiny-1.410.0
+ >=virtual/perl-Test-Simple-0.920.0
+ )
+"
+PATCHES=(
+ "${FILESDIR}/${DIST_VERSION}-no-network-tests.patch"
+ "${FILESDIR}/${DIST_VERSION}-no-dot-inc.patch"
+)
diff --git a/dev-perl/Net-XMPP/files/1.05-no-dot-inc.patch b/dev-perl/Net-XMPP/files/1.05-no-dot-inc.patch
new file mode 100644
index 000000000000..773b9f014b6f
--- /dev/null
+++ b/dev-perl/Net-XMPP/files/1.05-no-dot-inc.patch
@@ -0,0 +1,133 @@
+From bad1310f14223c12c1d8933ef5de17fd323374f5 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Wed, 29 Nov 2017 19:07:38 +1300
+Subject: Fix tests failing under Perl 5.26 w/ PERL_USE_UNSAFE_INC=0
+
+ require t/foo.pl
+
+Used to work as a result of the assumed '.' at the end of `@INC`.
+This is no longer true under Perl 5.26 without PERL_USE_UNSAFE_INC=1
+in your environment (which gets defaulted on under CPAN installers and
+under Test::Harness if not explicitly disabled, and will be hard-off
+in Perl 5.30)
+
+Bug: https://bugs.gentoo.org/623002
+Bug: https://github.com/dap/Net-XMPP/pull/16
+---
+ t/iq.t | 2 +-
+ t/jid.t | 2 +-
+ t/message.t | 2 +-
+ t/packet_iqauth.t | 2 +-
+ t/packet_iqroster.t | 2 +-
+ t/presence.t | 2 +-
+ t/rawxml.t | 2 +-
+ t/roster.t | 2 +-
+ 8 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/t/iq.t b/t/iq.t
+index 9174e6d..1742d6c 100644
+--- a/t/iq.t
++++ b/t/iq.t
+@@ -3,7 +3,7 @@ use Test::More tests=>115;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+diff --git a/t/jid.t b/t/jid.t
+index dc07440..fa426a4 100644
+--- a/t/jid.t
++++ b/t/jid.t
+@@ -3,7 +3,7 @@ use Test::More tests=>15;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $jid = Net::XMPP::JID->new('host.com/xxx@yyy.com/zzz');
+ ok( defined($jid), "new()" );
+diff --git a/t/message.t b/t/message.t
+index 70bcef8..7c2f554 100644
+--- a/t/message.t
++++ b/t/message.t
+@@ -3,7 +3,7 @@ use Test::More tests=>136;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+diff --git a/t/packet_iqauth.t b/t/packet_iqauth.t
+index 748917b..f80b5ae 100644
+--- a/t/packet_iqauth.t
++++ b/t/packet_iqauth.t
+@@ -3,7 +3,7 @@ use Test::More tests=>55;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+diff --git a/t/packet_iqroster.t b/t/packet_iqroster.t
+index 706e5f0..4bd48e8 100644
+--- a/t/packet_iqroster.t
++++ b/t/packet_iqroster.t
+@@ -3,7 +3,7 @@ use Test::More tests=>57;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+diff --git a/t/presence.t b/t/presence.t
+index ce6980d..14f9516 100644
+--- a/t/presence.t
++++ b/t/presence.t
+@@ -3,7 +3,7 @@ use Test::More tests=>132;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+diff --git a/t/rawxml.t b/t/rawxml.t
+index b4f091b..43b6380 100644
+--- a/t/rawxml.t
++++ b/t/rawxml.t
+@@ -3,7 +3,7 @@ use Test::More tests=>54;
+
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $message = Net::XMPP::Message->new();
+ ok( defined($message), "new()");
+diff --git a/t/roster.t b/t/roster.t
+index 19ed87b..a365d2e 100644
+--- a/t/roster.t
++++ b/t/roster.t
+@@ -11,7 +11,7 @@ BEGIN {
+ }
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+-require "t/mytestlib.pl";
++require "./t/mytestlib.pl";
+
+ my $debug = Net::XMPP::Debug->new(setdefault=>1,
+ level=>-1,
+--
+2.14.3
+
diff --git a/dev-perl/Net-XMPP/files/1.05-no-network-tests.patch b/dev-perl/Net-XMPP/files/1.05-no-network-tests.patch
new file mode 100644
index 000000000000..e20b39316b94
--- /dev/null
+++ b/dev-perl/Net-XMPP/files/1.05-no-network-tests.patch
@@ -0,0 +1,65 @@
+From ce5bd091758174c06e0b250040d85b1cc1c8bad0 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sun, 6 Mar 2016 20:35:45 +1300
+Subject: Disable network tests when tests forcibly required by ENV
+
+Bug: https://bugs.gentoo.org/612256
+---
+ t/gtalk.t | 7 ++++++-
+ t/lib/Net/XMPP/Test/Utils.pm | 1 +
+ t/roster.t | 10 +++++++++-
+ 3 files changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/t/gtalk.t b/t/gtalk.t
+index 747b7df..3b1af73 100644
+--- a/t/gtalk.t
++++ b/t/gtalk.t
+@@ -2,7 +2,12 @@ use strict;
+ use warnings;
+
+ use Test::More;
+-
++# https://github.com/dap/Net-XMPP/issues/11
++BEGIN {
++ if ($ENV{NO_NETWORK_TESTING}) {
++ Test::More->import(skip_all => "NO_NETWORK_TESTS set");
++ }
++}
+ ######################## XML::Stream mocking starts
+ #{
+ # package XML::Stream;
+diff --git a/t/lib/Net/XMPP/Test/Utils.pm b/t/lib/Net/XMPP/Test/Utils.pm
+index d69eca3..3c4565e 100644
+--- a/t/lib/Net/XMPP/Test/Utils.pm
++++ b/t/lib/Net/XMPP/Test/Utils.pm
+@@ -23,6 +23,7 @@ sub can_run_tests {
+ }
+
+ sub conn_is_available {
++ return if $ENV{NO_NETWORK_TESTING};
+ return online();
+ }
+
+diff --git a/t/roster.t b/t/roster.t
+index 25ee505..19ed87b 100644
+--- a/t/roster.t
++++ b/t/roster.t
+@@ -1,6 +1,14 @@
+ use lib "t/lib";
+-use Test::More tests=>75;
+
++BEGIN {
++ require Test::More;
++ if ($ENV{NO_NETWORK_TESTING}) {
++ Test::More->import(skip_all => "NO_NETWORK_TESTS set");
++ }
++ else {
++ Test::More->import( tests => 75 );
++ }
++}
+ BEGIN{ use_ok( "Net::XMPP" ); }
+
+ require "t/mytestlib.pl";
+--
+2.14.3
+
diff --git a/dev-perl/Net-XMPP/metadata.xml b/dev-perl/Net-XMPP/metadata.xml
new file mode 100644
index 000000000000..22afb1097b2b
--- /dev/null
+++ b/dev-perl/Net-XMPP/metadata.xml
@@ -0,0 +1,25 @@
+<?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>Net::XMPP is a collection of Perl modules that provide a Perl Developer access to the XMPP protocol.</longdescription>
+ <upstream>
+ <remote-id type="cpan">Net-XMPP</remote-id>
+ <remote-id type="cpan-module">Net::XMPP</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Client</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Connection</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Debug</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::IQ</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::JID</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Message</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Namespaces</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Presence</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::PrivacyLists</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Protocol</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Roster</remote-id>
+ <remote-id type="cpan-module">Net::XMPP::Stanza</remote-id>
+ </upstream>
+</pkgmetadata>