diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2022-01-13 13:48:37 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2022-01-13 13:49:00 +0300 |
commit | 58af5ee9e2981fdabc62ad8e8483a9ed2861aa9c (patch) | |
tree | cd5ee45c8617dd379b4ef1e65ec1f2f959cc77fd /dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild | |
parent | media-sound/snapcast: alsa-lib is required with USE=-client too (diff) | |
download | gentoo-58af5ee9e2981fdabc62ad8e8483a9ed2861aa9c.tar.gz gentoo-58af5ee9e2981fdabc62ad8e8483a9ed2861aa9c.tar.bz2 gentoo-58af5ee9e2981fdabc62ad8e8483a9ed2861aa9c.zip |
dev-perl/Net-AMQP-RabbitMQ: Initial import
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild')
-rw-r--r-- | dev-perl/Net-AMQP-RabbitMQ/Net-AMQP-RabbitMQ-2.40009.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
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 +} |