From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-perl/Net-XMPP/Manifest | 9 +++++ dev-perl/Net-XMPP/Net-XMPP-1.20.0-r1.ebuild | 40 ++++++++++++++++++++ dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild | 43 ++++++++++++++++++++++ dev-perl/Net-XMPP/files/1.02-defined.patch | 14 +++++++ .../Net-XMPP/files/1.05-no-network-tests.patch | 28 ++++++++++++++ dev-perl/Net-XMPP/metadata.xml | 25 +++++++++++++ 6 files changed, 159 insertions(+) create mode 100644 dev-perl/Net-XMPP/Manifest create mode 100644 dev-perl/Net-XMPP/Net-XMPP-1.20.0-r1.ebuild create mode 100644 dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild create mode 100644 dev-perl/Net-XMPP/files/1.02-defined.patch create mode 100644 dev-perl/Net-XMPP/files/1.05-no-network-tests.patch create mode 100644 dev-perl/Net-XMPP/metadata.xml (limited to 'dev-perl/Net-XMPP') diff --git a/dev-perl/Net-XMPP/Manifest b/dev-perl/Net-XMPP/Manifest new file mode 100644 index 000000000000..e6c8be603864 --- /dev/null +++ b/dev-perl/Net-XMPP/Manifest @@ -0,0 +1,9 @@ +AUX 1.02-defined.patch 553 SHA256 6b37f1bb3e4ab22e3253044322580054a5bcbe560c62ebc98febe51ccfc2c5c7 SHA512 a45eeb254e7b8507e43c4e38ecbb7c1ae570f2910b2fd2bebbeb498e47c6c4f8a1c08d26c5b36c2b9abb794c05798ef31d7a94a21bd0f74f3561e2fb65e5ac31 WHIRLPOOL 68e071d121a53fd2a932c62d4da82d7a6cbbb6aafc1d7b9d135ca0fca8819375f48ae2dacdf39a7c7a0577f13902367462d152cfcc30ac0e13f42db9401f5df8 +AUX 1.05-no-network-tests.patch 858 SHA256 04041e0362764239ad2547cca6dc3d73403afd9b0f6c6631ca6d67a24d7234f1 SHA512 ee6924a399d205e573cf379ac9bf797977242e87554b986271c9295944cc224b7585cb83180fa6e515ea01e84254d5438ed6fe7a08811213fbe35f39fd9dab30 WHIRLPOOL 6ad96bdb5a0b56e185c011624b1d7aeec79298f8f68994f484c46264275e343d3382aa3bec4e47bb61341302a6e0366c2d27ceccba65b2bbdcd8a68b6cd3339c +DIST Net-XMPP-1.02.tar.gz 121653 SHA256 69761441e214042b10b6608afaffbb1b5262e4aaaddb4b315dbf2ea48c4742ea SHA512 7a373e627de7e909ef50d6525b438dd7f094c7e6ad3cb66fff6087048fe9b127e376cf45d1621e55deec2c59fe043ff19f180d0b264fa1dd0c392701dfc43497 WHIRLPOOL e3238e9dac4caf00de645c9eadbc530b725a6872a89ee82043931b7d21a6375419554020dc573aeed3b4415f8a65ddc4685c497bfe1951dd5d802d4fb8557b70 +DIST Net-XMPP-1.05.tar.gz 103876 SHA256 4c02200577c2b235a163a09bfaa152bf000fe5f1499ad80ce16ab66808949362 SHA512 cdd5474fcbdf7ff6c7d1247f9828f5dfb1828c258af366a831bab8e5faab423b73aa16c34228818526ebcc3180ef0ccc52d6e6cb61e2fe689458b87ec7fab699 WHIRLPOOL 9aee53ba25515722c88c4e810fdae78751b811426c70df39d57c2b606436278c143f2592230f605fee49edab7617cd37faf1e1fd20eaed7908f364049e4ee3da +EBUILD Net-XMPP-1.20.0-r1.ebuild 865 SHA256 83ff478d094535be48946989e82bc85cafc5a24c7a6e3e741ec3b11b85c2a550 SHA512 91f46ab81ee85801eae1f83fd8216309a82fff77ed69f0e7058d21a5b4bedcb630e9c69eaf2998af99414b0abc2b3c876f2a0b1d219af92a484ace5e6b5100a3 WHIRLPOOL f2f88f260f099b7f77422b15148486af4d29635669b6de5aa05841c5066bbc29c05293cf4edfa4ea47bf16cc4d6c70e6140aad66d311de6332f9a84542be26d8 +EBUILD Net-XMPP-1.50.0.ebuild 902 SHA256 c085b4621c0f2b35fb57ea51c9533e583001edb2f807dca44023055dba6e3060 SHA512 8c72295398805bf4fa555eb423f0d14d18d618c38a6b73c4ebf9c9e1f09aa4f82c540f79877c9cffb7c02ae3e7ae9d6b2ab429feb5f8db9d1ff7b29f4d92b838 WHIRLPOOL 4c1d66549ca040a89816018f4770f2d49bf9bb5439ac783aa9e639ba7677c7990d18041e83b1704982620011be0c75c673c8bb5176915d38f14b791ecc0ec363 +MISC ChangeLog 3478 SHA256 39ce661b55525dc61d12e5743b29f4c1677d7e719c781b7139f000db1b4652ba SHA512 081287e1caa0baa9d19d731f7e135f61a7a4afa656be195e69ce2deee0d384d6523516ad0b8aaeade715fba6e1a70c9288c0a69d145191ecd048398ec82c684d WHIRLPOOL a39c7f9a256c29658560a8e69c515c93467613944439852902e97391decbbfb7f0a84be1896127548ae49a833acb3894a61c6ede188d0a5df3dc76570f236554 +MISC ChangeLog-2015 4950 SHA256 f800045b04ca64b4c696dd5d56752a1d5f8dd1302cb80e9c478099502ee3dd18 SHA512 532a737c10361937513be5d273b968fd6bacbf636dc7fe190f4f3641623427ec74440fd0546e254084ff632b24a867b35912ee7f4f90325e77ce82f58a1b8366 WHIRLPOOL 09800fde7d4253d50e082b1117298a095d1c6e721f6e9fa08458bb62d4d298bbd026bd9c02bd79a5796ed8f1ae85762c6f0c94e1afc67507fafff0ee2597d1d8 +MISC metadata.xml 1305 SHA256 4b7b94985416d1fc2fad79112aaf90c7cbd7e9db7beed649873b92514926000f SHA512 4a016ed35a0d553609a3ce69b71095c00064f39a1960dad6bf53da42d3d9e65ee4fa7256128b5af2ca40779a69b28ea02286b6b0427a9692639fa8575c9068bd WHIRLPOOL 5170257b47ce466149f1bccad6522eecf9a215041746a3e2d50974b1113587ad4e194b1a96d94bd9d12d8b125f2962e92e7a6ab6e1074184a91e8f14333429b3 diff --git a/dev-perl/Net-XMPP/Net-XMPP-1.20.0-r1.ebuild b/dev-perl/Net-XMPP/Net-XMPP-1.20.0-r1.ebuild new file mode 100644 index 000000000000..dff14f6f34c1 --- /dev/null +++ b/dev-perl/Net-XMPP/Net-XMPP-1.20.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MODULE_AUTHOR=HACKER +MODULE_VERSION=1.02 +inherit perl-module + +DESCRIPTION="XMPP Perl Library" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND=">=dev-perl/XML-Stream-1.22 + dev-perl/Digest-SHA1" +DEPEND="dev-perl/Module-Build + ${RDEPEND}" + +SRC_TEST="do" +PATCHES=( "${FILESDIR}"/1.02-defined.patch ) + +src_prepare() { + for i in 2_client_jabberd1.4.t 3_client_jabberd2.t ; do + mv "${S}"/t/${i}{,.disable} || die + sed -i -e "/${i}/d" "${S}"/MANIFEST || die + done + perl-module_src_prepare +} + +src_test() { + # bug 526390 + # this test fails in version 1.02. + # please comment out this section when bumping the package + # to check whether it still fails. + perl_rm_files t/roster.t + perl-module_src_test +} 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..15a7bce72198 --- /dev/null +++ b/dev-perl/Net-XMPP/Net-XMPP-1.50.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=DAPATRICK +DIST_VERSION=1.05 +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 examples" + +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 + ) +" +src_test() { + eapply "${FILESDIR}/${DIST_VERSION}-no-network-tests.patch" + perl-module_src_test +} + +src_install() { + perl-module_src_install + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +} diff --git a/dev-perl/Net-XMPP/files/1.02-defined.patch b/dev-perl/Net-XMPP/files/1.02-defined.patch new file mode 100644 index 000000000000..adac59b481e4 --- /dev/null +++ b/dev-perl/Net-XMPP/files/1.02-defined.patch @@ -0,0 +1,14 @@ +https://rt.cpan.org/Public/Bug/Display.html?id=58333 +http://github.com/dap/Net-XMPP/commit/2d1164d7c50d7c034f3d1efb03ad9319b24dfd24 + +--- Net-XMPP-1.02/lib/Net/XMPP/Debug.pm ++++ Net-XMPP-1.02/lib/Net/XMPP/Debug.pm +@@ -151,7 +151,7 @@ + my %args; + while($#_ >= 0) { $args{ lc pop(@_) } = pop(@_); } + +- delete($args{file}) if (lc($args{file}) eq "stdout"); ++ delete($args{file}) if (defined $args{file} && lc($args{file}) eq "stdout"); + + $args{time} = 0 if !exists($args{time}); + $args{setdefault} = 0 if !exists($args{setdefault}); 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..921121805def --- /dev/null +++ b/dev-perl/Net-XMPP/files/1.05-no-network-tests.patch @@ -0,0 +1,28 @@ +diff -Naur Net-XMPP-1.05/t/gtalk.t Net-XMPP-1.05b/t/gtalk.t +--- Net-XMPP-1.05/t/gtalk.t 2014-12-22 21:28:51.000000000 +0000 ++++ Net-XMPP-1.05b/t/gtalk.t 2016-03-06 07:14:13.313580716 +0000 +@@ -2,7 +2,12 @@ + 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 -Naur Net-XMPP-1.05/t/lib/Net/XMPP/Test/Utils.pm Net-XMPP-1.05b/t/lib/Net/XMPP/Test/Utils.pm +--- Net-XMPP-1.05/t/lib/Net/XMPP/Test/Utils.pm 2014-12-22 21:28:51.000000000 +0000 ++++ Net-XMPP-1.05b/t/lib/Net/XMPP/Test/Utils.pm 2016-03-06 06:59:57.227261659 +0000 +@@ -23,6 +23,7 @@ + } + + sub conn_is_available { ++ return if $ENV{NO_NETWORK_TESTING}; + return online(); + } + 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 @@ + + + + + perl@gentoo.org + Gentoo Perl Project + + Net::XMPP is a collection of Perl modules that provide a Perl Developer access to the XMPP protocol. + + Net-XMPP + Net::XMPP + Net::XMPP::Client + Net::XMPP::Connection + Net::XMPP::Debug + Net::XMPP::IQ + Net::XMPP::JID + Net::XMPP::Message + Net::XMPP::Namespaces + Net::XMPP::Presence + Net::XMPP::PrivacyLists + Net::XMPP::Protocol + Net::XMPP::Roster + Net::XMPP::Stanza + + -- cgit v1.2.3