From fe9595b956c4741beedd0179950b0c88ac2bc94a Mon Sep 17 00:00:00 2001 From: Brett A C Sheffield Date: Mon, 27 Apr 2026 18:09:12 +0000 Subject: [PATCH] dev-libs/capnproto: add 1.4.0 Closes: https://bugs.gentoo.org/957653 Signed-off-by: Brett A C Sheffield Part-of: https://codeberg.org/gentoo/gentoo/pulls/759 Merges: https://codeberg.org/gentoo/gentoo/pulls/759 Signed-off-by: Sam James --- dev-libs/capnproto/Manifest | 1 + dev-libs/capnproto/capnproto-1.4.0.ebuild | 47 +++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-libs/capnproto/capnproto-1.4.0.ebuild diff --git a/dev-libs/capnproto/Manifest b/dev-libs/capnproto/Manifest index c2e34aa3466d..7f03b7cc8396 100644 --- a/dev-libs/capnproto/Manifest +++ b/dev-libs/capnproto/Manifest @@ -1,2 +1,3 @@ DIST capnproto-1.0.2.tar.gz 2412146 BLAKE2B c4f519ced618cd7473194fce9fae96cce22abf2ee4a30f4fd8550e82875727cb8f9c420bd8faba71190bf05870b82e4ff2e74729c7bc2e2e255163e9e764f8d3 SHA512 56551ecad52cf06e5dd52401e6d848eae41126c6ba2bb31a9ec1c82e1b47e0e6171d69db923c118c614aec0d396ddf35724081cccef3a605c39d0b5379a2c03e DIST capnproto-1.1.0.tar.gz 2418611 BLAKE2B c3ad74d509135e9e22ef645f017227ea35c6f0dc4e5d2b7757fc3b7948dacfad4cbf9e89c2f2a1d111cd5d2c4c7673e73ce138a439e5787cb160defacda99eb8 SHA512 6992efffbfb375e2ce141e5e99bcab4c2ff2e1a71817d70dc71966633c18c7136e25220bf54da66928346d43697dbdf504e04a9d24cb00313a75b8d990cf53dd +DIST capnproto-1.4.0.tar.gz 2423748 BLAKE2B 7194f5cce53fa0e4e24a724da019c31b536860388417e2500fcb23c4a7c9e933d88b626b5f3632b050b33172217652cd890f328a87f331eeb409ef665aaf7167 SHA512 6f31294ffe613b28ee891a7e7465d35781697dc7ed51f806b7c707c8fc94ead01099ab356041646e382320ff922f40c393b4b58f3106bbc3fb547386d7c0ed1a diff --git a/dev-libs/capnproto/capnproto-1.4.0.ebuild b/dev-libs/capnproto/capnproto-1.4.0.ebuild new file mode 100644 index 000000000000..c4f7d96b2722 --- /dev/null +++ b/dev-libs/capnproto/capnproto-1.4.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="RPC/Serialization system with capabilities support" +HOMEPAGE="https://capnproto.org" +SRC_URI="https://github.com/capnproto/capnproto/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${P}/c++ + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="+ssl test zlib" +RESTRICT="!test? ( test )" + +RDEPEND=" + ssl? ( dev-libs/openssl:= ) + zlib? ( virtual/zlib:= ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_configure() { + append-atomic-flags + if [[ ${LIBS} == *atomic* ]] ; then + # append-libs won't work here, cmake doesn't respect it + # ... and ldflags gets missed once + append-flags -latomic + fi + + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DWITH_OPENSSL=$(usex ssl) + -DWITH_ZLIB=$(usex zlib) + ) + + cmake_src_configure +} + +src_test() { + cmake_build check +}