summaryrefslogtreecommitdiff
path: root/dev-libs/s2n-tls/s2n-tls-1.6.0.ebuild
blob: 3da282aeaac7177bf2fabd686ab0a7cab0020369 (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
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="s2n-tls is a C99 implementation of the TLS/SSL protocols"
HOMEPAGE="https://github.com/aws/s2n-tls"
SRC_URI="https://github.com/aws/s2n-tls/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

inherit cmake

LICENSE="Apache-2.0"
SLOT="$(ver_cut 1)"
KEYWORDS="amd64 arm64 ~riscv x86"

IUSE="test"

DEPEND="dev-libs/openssl:="
RDEPEND="${DEPEND}"

RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}/s2n-tls-1.6.0-cmake_version.patch"
	"${FILESDIR}/s2n-tls-1.6.0-cmake_LDFLAGS.patch"
)

src_configure()
{
	local mycmakeargs=(
		-DBUILD_TESTING=$(usex test ON OFF)
		-DUNSAFE_TREAT_WARNINGS_AS_ERRORS=OFF
	)

	cmake_src_configure
}