testing/perl-net-xmpp: new aport

https://metacpan.org/release/Net-XMPP/
XMPP Support Library

Needed by testing/perl-net-jabber
This commit is contained in:
Celeste 2024-01-06 03:53:48 +00:00 committed by omni
parent 6be3baab87
commit 8bb4dd48e6
3 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,43 @@
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-net-xmpp
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-XMPP
pkgver=1.05
pkgrel=0
pkgdesc="XMPP Support Library"
url="https://metacpan.org/release/Net-XMPP/"
arch="noarch"
license="LGPL-2.1-or-later"
depends="perl perl-authen-sasl perl-xml-stream"
makedepends="perl-module-build"
checkdepends="perl-lwp-online perl-test-memory-cycle perl-yaml-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAPATRICK/Net-XMPP-$pkgver.tar.gz
loop-var.patch
no-gtalk.patch
"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL \
--installdirs=vendor \
--create_packlist=0
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
}
sha512sums="
cdd5474fcbdf7ff6c7d1247f9828f5dfb1828c258af366a831bab8e5faab423b73aa16c34228818526ebcc3180ef0ccc52d6e6cb61e2fe689458b87ec7fab699 Net-XMPP-1.05.tar.gz
8d815b04233b140881ff105f64d5017dbd937ed03521516a8cd2ba60bb0e07dec7d27903d8a35eb4e23b4ef52ccb4703fa7f0ea698dcca64d1ead3a6a7f2740b loop-var.patch
678db0127de65198b52094afc94c7d057fead39a3f70dc782c4d661ace8d199cd37f632fe29e0699f9f656ae467cd91c191803f3043e966d2db2a7c475fb48c5 no-gtalk.patch
"

View File

@ -0,0 +1,26 @@
Patch-Source: https://github.com/dap/Net-XMPP/commit/a0224e2b2c4a46b53a2591c0f369d63ae580d592.patch
Reference: https://rt.cpan.org/Public/Bug/Display.html?id=58949
--
From a0224e2b2c4a46b53a2591c0f369d63ae580d592 Mon Sep 17 00:00:00 2001
From: Darian Anthony Patrick <dap@darianpatrick.com>
Date: Mon, 22 Dec 2014 15:02:25 -0800
Subject: [PATCH] RT#58949 User array member alias
---
lib/Net/XMPP/Stanza.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Net/XMPP/Stanza.pm b/lib/Net/XMPP/Stanza.pm
index 15d6c5b..cb1b7b2 100644
--- a/lib/Net/XMPP/Stanza.pm
+++ b/lib/Net/XMPP/Stanza.pm
@@ -1366,7 +1366,7 @@ sub _parse_tree
{
foreach my $xTree (@xTrees)
{
- if( exists($Net::XMPP::Namespaces::NS{$xTrees[0]->get_attrib("xmlns")}))
+ if( exists($Net::XMPP::Namespaces::NS{$xTree->get_attrib("xmlns")}))
{
$self->AddChild($xTree);
$self->{TREE}->remove_child($xTree);

View File

@ -0,0 +1,11 @@
--- a/t/gtalk.t
+++ b/t/gtalk.t
@@ -52,7 +52,7 @@
}
my $repeat = 5;
-plan tests => 2 + 6 * $repeat;
+plan skip_all => 'Google Talk is no longer available';
# TODO ask user if it is ok to do network tests!
print_size('before loading Net::XMPP');