blob: 597703566a01ec76d8889b1ae39b6769d6c616f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++14 implementation of the TLS-1.3 standard"
HOMEPAGE="https://github.com/facebookincubator/fizz"
SRC_URI="https://github.com/facebookincubator/fizz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="examples test"
RDEPEND="
>=dev-cpp/folly-${PV}:=
dev-cpp/gflags
dev-cpp/glog
dev-libs/double-conversion
dev-libs/libevent
dev-libs/libfmt
dev-libs/libsodium
dev-libs/openssl:0=
"
DEPEND="
${RDEPEND}
test? ( >=dev-cpp/gtest-1.11.0 )
"
RESTRICT="!test? ( test )"
CMAKE_USE_DIR="${S}/fizz"
src_prepare() {
cmake_src_prepare
sed -i '/Sodium/d' fizz/cmake/fizz-config.cmake.in || die
}
src_configure() {
local mycmakeargs=(
-DBUILD_EXAMPLES=$(usex examples)
-DBUILD_TESTS=$(usex test)
-DLIB_INSTALL_DIR=$(get_libdir)
)
cmake_src_configure
}
|