summaryrefslogtreecommitdiff
path: root/dev-perl/Net-AMQP-RabbitMQ
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-01-16 20:27:28 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-01-16 20:27:28 +0000
commit2fd57282f0262ca084e05b0f2c63fbada395d02b (patch)
tree4e0f23cea9ce9fd972e70ebc5214bf36fed465cc /dev-perl/Net-AMQP-RabbitMQ
parentc3bc61051d7f12b4c682efa7a5460bbc8815649e (diff)
gentoo resync : 16.01.2021
Diffstat (limited to 'dev-perl/Net-AMQP-RabbitMQ')
-rw-r--r--dev-perl/Net-AMQP-RabbitMQ/Manifest3
-rw-r--r--dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild48
-rw-r--r--dev-perl/Net-AMQP-RabbitMQ/metadata.xml16
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-perl/Net-AMQP-RabbitMQ/Manifest b/dev-perl/Net-AMQP-RabbitMQ/Manifest
new file mode 100644
index 000000000000..1e84fb533387
--- /dev/null
+++ b/dev-perl/Net-AMQP-RabbitMQ/Manifest
@@ -0,0 +1,3 @@
+DIST Net-AMQP-RabbitMQ-2.40009.tar.gz 198363 BLAKE2B 35aea3ba96b6b9cfaf8b8fa14d2a00326e4d64cc74d438ab59b6773f7ce67fd2ea7ded91a487eb20cdbe174c68825434839a8d7afb8e764e4a228e7088bba875 SHA512 2c0f53d59858e777fbc712c3bd06e3464783559dd9424c58a8fe586747e1d43aa4a607268484ec8bf4f10e979788ed5ea9558208096187c6e0c12a473e465459
+EBUILD Net-AMQP-RabbitMQ-2.40009.ebuild 1095 BLAKE2B ce8e7ceb5812cfe232811635a38a187a1d141bc5ef2195e85e73c82ad29049cb080f9e1fbdb4dddc9aed55e92ae9f4765b799c9ed9a9b706177edd0a9c8a02d7 SHA512 9f13b847d0a2615ed0095ea1cd5eb48764894d0741dcaa55f5d007028217df349d2ac1031a6bbcdebd2ccc14d8e441a85d139c7444816d81092d535de4e5d810
+MISC metadata.xml 505 BLAKE2B d62dec2c43dbdb447305841145f339f353322e4191b3c9c88683013db6a734a53479dea77de1c6dd086a3bd81c0b80d70489460a2c278b17f4dec1a8c985302d SHA512 fc9e8ca0552cc6c5f638afaa918602f5fbd008c6a88afea0fc21366b3f2fa7289f1fef57a91111376bdb14566a826474dd0765ee9a9a88fa8e1bbfd3c9ba435c
diff --git a/dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild b/dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild
new file mode 100644
index 000000000000..dc9f888eecc1
--- /dev/null
+++ b/dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR="MSTEMLE"
+
+inherit perl-module
+
+DESCRIPTION="interact with RabbitMQ over AMQP using librabbitmq"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-perl/Math-Int64-0.540.0"
+
+BDEPEND="${RDEPEND}
+ >=virtual/perl-ExtUtils-MakeMaker-6.660.0
+ test? (
+ net-misc/rabbitmq-server
+ )
+"
+
+src_test() {
+ einfo "Starting rabbitmq"
+ local -x RABBITMQ_LOG_BASE="${T}/rabbitmq/log"
+ local -x RABBITMQ_MNESIA_BASE="${T}/rabbitmq/mnesia"
+ local -x RABBITMQ_LOGS="${T}/rabbitmq.log"
+ local -x RABBITMQ_PID_FILE="${T}/rabbitmq.pid"
+ local -x RABBITMQ_ENABLED_PLUGINS_FILE="${T}/rabbitmq/enabled_plugins"
+ /usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 &
+
+ einfo "Waiting for rabbitmq to fully load"
+ while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do
+ sleep 1
+ done
+ einfo "rabbitmq is ready"
+
+ perl-module_src_test
+
+ einfo "Stopping rabbitmq"
+ kill "$(<"${RABBITMQ_PID_FILE}")" || die
+}
diff --git a/dev-perl/Net-AMQP-RabbitMQ/metadata.xml b/dev-perl/Net-AMQP-RabbitMQ/metadata.xml
new file mode 100644
index 000000000000..b375244c4668
--- /dev/null
+++ b/dev-perl/Net-AMQP-RabbitMQ/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">Net-AMQP-RabbitMQ</remote-id>
+ <remote-id type="cpan-module">Net::AMQP::RabbitMQ</remote-id>
+ </upstream>
+</pkgmetadata>