net-libs/cppzmq: add 4.10.0

Signed-off-by: David Roman <droman@ifae.es>
Closes: https://github.com/gentoo/gentoo/pull/39171
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
David Roman
2024-10-31 11:50:44 +01:00
committed by Andrew Ammerlaan
parent 00b5f99d56
commit f255686bde
2 changed files with 38 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST cppzmq-4.10.0.tar.gz 47099 BLAKE2B 7c85b95f45901b21a4f66c109427ac383494d58c27e54db7f56cc53b913ae154caa2f51c538c1e80f5479181ff83c9a1b1a389c74f2fa6545de874299c8bbc5b SHA512 4a4f3c2a270b9b21591b08a81f2ab6a72693af213c115f2c0aa5b737fd0363d09dba92437f48268ff982e6c27d6830f79244599bd9198e3402c6cca566cea27a
DIST cppzmq-4.9.0.tar.gz 46936 BLAKE2B 230c5a983fb902bdf880b1b0464033a389c500cae635b501275cc3df0980765bd48c1e1a1bb4e1a3d49b1fe63648d77feebc39a7f35c0474bfdc7e2e918c920f SHA512 a9d1c25084b5b84dfa20a005299213c3bb610e46ac7433236fd8d3c60c7e71153c738da4645343080c0d1cad9008aca1a3091d4247c7a2f08c506ed3054d55a7

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High-level CPP Binding for ZeroMQ"
HOMEPAGE="https://github.com/zeromq/cppzmq"
SRC_URI="https://github.com/zeromq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=net-libs/zeromq-4.3.1"
# Tests require cmake modules from catch2 and headers from older version of catch
DEPEND="${RDEPEND}
test? ( =dev-cpp/catch-2* )"
PATCHES=(
"${FILESDIR}/${PN}-4.9.0-disable-static.patch"
)
src_configure() {
local mycmakeargs=(
-DCPPZMQ_CMAKECONFIG_INSTALL_DIR="/usr/$(get_libdir)/cmake/${PN}/"
-DCPPZMQ_BUILD_TESTS="$(usex test)"
)
if has_version -d '>=net-libs/zeromq-4.3.1[drafts]'; then
mycmakeargs+=( -DENABLE_DRAFTS=on )
fi
cmake_src_configure
}