1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="RabbitMQ C client"
9 HOMEPAGE="https://github.com/alanxz/rabbitmq-c"
11 if [[ ${PV} == *9999* ]]; then
13 EGIT_REPO_URI="https://github.com/alanxz/${PN}.git"
15 SRC_URI="https://github.com/alanxz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ppc ppc64 ~s390 sparc x86"
21 IUSE="doc libressl test +ssl static-libs tools"
23 REQUIRED_USE="test? ( static-libs )"
25 RESTRICT="!test? ( test )"
28 libressl? ( dev-libs/libressl:= )
29 !libressl? ( dev-libs/openssl:0= )
31 tools? ( dev-libs/popt )"
33 doc? ( app-doc/doxygen )
34 tools? ( app-text/xmlto )"
35 DOCS=( AUTHORS README.md THANKS TODO )
40 -DBUILD_API_DOCS=$(usex doc)
41 -DBUILD_STATIC_LIBS=$(usex static-libs)
42 -DBUILD_TESTS=$(usex test)
43 -DBUILD_TOOLS=$(usex tools)
44 -DBUILD_TOOLS_DOCS=$(usex tools)
45 -DENABLE_SSL_SUPPORT=$(usex ssl)
51 pushd "${BUILD_DIR}" > /dev/null || die
53 # Skip "basic" test which requires running local rabbitmq-server instance,
54 # see https://github.com/alanxz/rabbitmq-c/issues/530
55 ctest -v -E basic || die