commit: 3392181973e404e17e54e74e285dfa223e83ddc4 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jun 19 00:07:09 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jun 19 00:07:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33921819
dev-perl/Redis: add 2.0.0 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-perl/Redis/Manifest | 1 + dev-perl/Redis/Redis-2.0.0.ebuild | 75 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/dev-perl/Redis/Manifest b/dev-perl/Redis/Manifest index d7f2a5fa6ca6..133868b3b265 100644 --- a/dev-perl/Redis/Manifest +++ b/dev-perl/Redis/Manifest @@ -1 +1,2 @@ DIST Redis-1.998.tar.gz 59660 BLAKE2B a4716462f18eb40585932d8e759cbcf0577c5b1680c5efe88386bcb1aee62a3c73c075e01c622df6ce4b0b04ddd6f06677c2d616b5f9c483d43bd18d16e1d87a SHA512 232f0e602f6165da426ff6ee6a531f81eea3491c0312dae2813bdb15ac34469f6621c7683d5bd6b2be0cdcc09edf3f1f19cc03c848d43d41e630fe1306f62268 +DIST Redis-2.000.tar.gz 66883 BLAKE2B 5bbfc4830f6e2ac33d2c07ea42e961144c3cc4bb91f594ecf8da639314d7afc0b44c15751596c5c9b2f62e388500bf002b4d8204fdfcf824fd06fb3226f8ca1e SHA512 9848efc9c9318131e9126e0e59c137b4524e70f3fb5414e05bfd5eb5ad7a516727404287b1ad91339e9cc7256b905e013739bcc9dd0b98b15897a453eddc6a15 diff --git a/dev-perl/Redis/Redis-2.0.0.ebuild b/dev-perl/Redis/Redis-2.0.0.ebuild new file mode 100644 index 000000000000..d70397725fab --- /dev/null +++ b/dev-perl/Redis/Redis-2.0.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=DAMS +DIST_TEST="do" +DIST_VERSION=2.000 +inherit perl-module + +DESCRIPTION="Perl bindings for Redis database" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="minimal" + +RDEPEND=" + >=dev-perl/IO-Socket-Timeout-0.290.0 + dev-perl/Try-Tiny +" +BDEPEND=" + ${RDEPEND} + >=dev-perl/Module-Build-Tiny-0.34.0 + test? ( + !minimal? ( + dev-db/redis + ) + virtual/perl-Digest-SHA + virtual/perl-File-Spec + virtual/perl-IO + dev-perl/IO-String + virtual/perl-IPC-Cmd + dev-perl/Test-Deep + dev-perl/Test-Fatal + >=virtual/perl-Test-Simple-0.980.0 + dev-perl/Test-SharedFork + >=dev-perl/Test-TCP-1.190.0 + ) +" + +src_test() { + local badfiles=( + "t/release-distmeta.t" + "t/release-pod-coverage.t" + ) + + if use minimal; then + einfo "Disabling Redis Server spawning tests (USE=minimal)" + badfiles+=( + t/01-basic.t + t/02-responses.t + t/03-pubsub.t + t/04-pipeline.t + t/05-nonblock.t + t/06-on-connect.t + t/07-reconnect.t + t/08-unix-socket.t + t/10-tie-list.t + t/11-timeout.t + t/20-tie-hash.t + t/30-scripts.t + t/42-client_cmds.t + t/44-no-unicode-bug.t + t/50-fork_safe.t + ) + fi + + perl_rm_files "${badfiles[@]}" + + # https://github.com/PerlRedis/perl-redis/issues/127#issuecomment-354670681 + export REDIS_DEBUG=1 + + perl-module_src_test +}