net-libs/rabbitmq-c - 0.18.1 (gentoo)

Search

Install

Install this version:

emerge -a =net-libs/rabbitmq-c-0.18.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/rabbitmq-c-0.18.1

Or alternatively:

emerge --autounmask-write -a =net-libs/rabbitmq-c-0.18.1

Package Information

Description:
RabbitMQ C client
Homepage:
https://github.com/alanxz/rabbitmq-c
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.18.1 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 0/4
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="RabbitMQ C client"
HOMEPAGE="https://github.com/alanxz/rabbitmq-c"

if [[ ${PV} == *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/alanxz/${PN}.git"
else
	SRC_URI="https://github.com/alanxz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi

LICENSE="MIT"
SLOT="0/4"
IUSE="doc test +ssl tools"

RESTRICT="!test? ( test )"

RDEPEND="ssl? ( dev-libs/openssl:0= )
	tools? ( dev-libs/popt )"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( app-text/doxygen )
	tools? ( app-text/xmlto )"

src_configure() {
	local mycmakeargs=(
		-DBUILD_API_DOCS=$(usex doc)
		# tests link against the static library
		-DBUILD_STATIC_LIBS=$(usex test)
		-DINSTALL_STATIC_LIBS=OFF
		-DBUILD_TESTING=$(usex test)
		-DBUILD_TOOLS=$(usex tools)
		-DBUILD_TOOLS_DOCS=$(usex tools)
		-DENABLE_SSL_SUPPORT=$(usex ssl)
	)
	cmake_src_configure
}

src_test() {
	# Skip "basic" test which requires running local rabbitmq-server instance,
	# see https://github.com/alanxz/rabbitmq-c/issues/530
	cmake_src_test -E basic
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/rabbitmq-c | euse -E <flag> -p net-libs/rabbitmq-c | euse -D <flag> -p net-libs/rabbitmq-c

Global/Standard Flags

doc
ssl
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

ssl? ( dev-libs/openssl:0= )
	tools? ( dev-libs/popt )

RDEPEND

ssl? ( dev-libs/openssl:0= )
	tools? ( dev-libs/popt )

BDEPEND

doc? ( app-text/doxygen )
	tools? ( app-text/xmlto )

Manifest for 0.18.1

Type File Size Source URLs
DIST rabbitmq-c-0.18.1.tar.gz 140210 bytes https://github.com/alanxz/rabbitmq-c/archive/v0.18.1.tar.gz