summaryrefslogtreecommitdiff
blob: de6089d831f9194b036a23b562e06befd66461c8 (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
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit libtool

DESCRIPTION="Port of libtls from LibreSSL to OpenSSL"
HOMEPAGE="https://git.causal.agency/libretls/about/"
SRC_URI="https://causal.agency/libretls/${P}.tar.gz"

LICENSE="ISC"
SLOT="0/28"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"

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

QA_CONFIG_IMPL_DECL_SKIP+=(
	# checks for va_copy and __va_copy as a fallback, ignores result of
	# latter if former exists. The latter is private and doesn't exist
	# on musl; ignore it since it doesn't even matter. bug #906534
	__va_copy
)

src_prepare() {
	default
	elibtoolize
}

src_install() {
	default
	find "${ED}" -name '*.la' -delete || die
}