diff options
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/cppzmq/Manifest | 1 | ||||
-rw-r--r-- | net-libs/cppzmq/cppzmq-4.9.0.ebuild | 37 | ||||
-rw-r--r-- | net-libs/cppzmq/files/cppzmq-4.9.0-disable-static.patch | 21 |
3 files changed, 59 insertions, 0 deletions
diff --git a/net-libs/cppzmq/Manifest b/net-libs/cppzmq/Manifest index c871669859bc..3a3ccc22362a 100644 --- a/net-libs/cppzmq/Manifest +++ b/net-libs/cppzmq/Manifest @@ -1 +1,2 @@ DIST cppzmq-4.6.0.tar.gz 35078 BLAKE2B 282cc8db524eb76a35835db12ae1d5f18d7729149979afb9e7a364497b8fb1db1f65b4df5c0aa905440e260cc797d45e839fc61694560cf60c20f855e34eb2c0 SHA512 f30b37c970790de2684086638084e65310396072c1c1d00415c9a36b7ef6d79fe500ce174fddab699a602a80341e2fb7f309dec2eb96252531b5ca5cf7ac5027 +DIST cppzmq-4.9.0.tar.gz 46936 BLAKE2B 230c5a983fb902bdf880b1b0464033a389c500cae635b501275cc3df0980765bd48c1e1a1bb4e1a3d49b1fe63648d77feebc39a7f35c0474bfdc7e2e918c920f SHA512 a9d1c25084b5b84dfa20a005299213c3bb610e46ac7433236fd8d3c60c7e71153c738da4645343080c0d1cad9008aca1a3091d4247c7a2f08c506ed3054d55a7 diff --git a/net-libs/cppzmq/cppzmq-4.9.0.ebuild b/net-libs/cppzmq/cppzmq-4.9.0.ebuild new file mode 100644 index 000000000000..1cf6afcb3d30 --- /dev/null +++ b/net-libs/cppzmq/cppzmq-4.9.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 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}/${P}-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 +} diff --git a/net-libs/cppzmq/files/cppzmq-4.9.0-disable-static.patch b/net-libs/cppzmq/files/cppzmq-4.9.0-disable-static.patch new file mode 100644 index 000000000000..d34893a60f05 --- /dev/null +++ b/net-libs/cppzmq/files/cppzmq-4.9.0-disable-static.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 05001ad..c640fd7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,7 +21,7 @@ if (NOT TARGET libzmq AND NOT TARGET libzmq-static) + message(FATAL_ERROR "ZeroMQ was not found, neither as a CMake package nor via pkg-config") + endif() + +- if (ZeroMQ_FOUND AND NOT (TARGET libzmq OR TARGET libzmq-static)) ++ if (ZeroMQ_FOUND AND NOT TARGET libzmq) + message(FATAL_ERROR "ZeroMQ version not supported!") + endif() + endif() +@@ -52,7 +52,6 @@ foreach (target cppzmq cppzmq-static) + endforeach() + + target_link_libraries(cppzmq INTERFACE libzmq) +-target_link_libraries(cppzmq-static INTERFACE libzmq-static) + + include(GNUInstallDirs) + include(CMakePackageConfigHelpers) |