mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
dev-libs/capnproto: add 1.4.0
Closes: https://bugs.gentoo.org/957653 Signed-off-by: Brett A C Sheffield <bacs@librecast.net> Part-of: https://codeberg.org/gentoo/gentoo/pulls/759 Merges: https://codeberg.org/gentoo/gentoo/pulls/759 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
d03705c6be
commit
fe9595b956
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user