| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
6 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnutls.asc
|
| 7 |
|
inherit dot-a libtool multilib-minimal verify-sig
|
|
7 |
inherit libtool multilib-minimal verify-sig
|
| 8 |
8 |
|
| 9 |
9 |
DESCRIPTION="Secure communications library implementing the SSL, TLS and DTLS protocols"
|
| 10 |
10 |
HOMEPAGE="https://www.gnutls.org/"
|
| ... | ... | |
| 17 |
17 |
# Subslot format:
|
| 18 |
18 |
# <libgnutls.so number>.<libgnutlsxx.so number>
|
| 19 |
19 |
SLOT="0/30.30"
|
| 20 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
| 21 |
|
IUSE="brotli +cxx dane doc examples +idn nls +openssl pkcs11 sslv2 sslv3"
|
|
20 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
21 |
IUSE="brotli +cxx dane doc examples +idn nls +openssl pkcs11 +post-quantum sslv2 sslv3"
|
| 22 |
22 |
IUSE+=" systemtap static-libs test test-full +tls-heartbeat tools zlib zstd"
|
| 23 |
23 |
REQUIRED_USE="test-full? ( cxx dane doc examples idn nls openssl pkcs11 tls-heartbeat tools )"
|
| 24 |
24 |
RESTRICT="!test? ( test )"
|
| ... | ... | |
| 32 |
32 |
dane? ( >=net-dns/unbound-1.4.20:=[${MULTILIB_USEDEP}] )
|
| 33 |
33 |
nls? ( >=virtual/libintl-0-r1:=[${MULTILIB_USEDEP}] )
|
| 34 |
34 |
pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
|
|
35 |
post-quantum? ( >=dev-libs/leancrypto-1.2.0:=[${MULTILIB_USEDEP}] )
|
| 35 |
36 |
idn? ( >=net-dns/libidn2-0.16-r1:=[${MULTILIB_USEDEP}] )
|
| 36 |
37 |
zlib? ( virtual/zlib:=[${MULTILIB_USEDEP}] )
|
| 37 |
38 |
zstd? ( >=app-arch/zstd-1.3.0:=[${MULTILIB_USEDEP}] )
|
| ... | ... | |
| 93 |
94 |
}
|
| 94 |
95 |
|
| 95 |
96 |
multilib_src_configure() {
|
| 96 |
|
use static-libs && lto-guarantee-fat
|
| 97 |
|
|
| 98 |
97 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
|
| 99 |
98 |
|
| 100 |
99 |
local libconf=()
|
| ... | ... | |
| 137 |
136 |
$(use_with brotli '' link)
|
| 138 |
137 |
$(use_with idn)
|
| 139 |
138 |
$(use_with pkcs11 p11-kit)
|
|
139 |
$(use_with post-quantum leancrypto)
|
| 140 |
140 |
$(use_with zlib '' link)
|
| 141 |
141 |
$(use_with zstd '' link)
|
| 142 |
142 |
--disable-rpath
|
| ... | ... | |
| 159 |
159 |
einstalldocs
|
| 160 |
160 |
find "${ED}" -type f -name '*.la' -delete || die
|
| 161 |
161 |
|
| 162 |
|
use static-libs && strip-lto-bytecode
|
| 163 |
|
|
| 164 |
162 |
if use examples; then
|
| 165 |
163 |
docinto examples
|
| 166 |
164 |
dodoc doc/examples/*.c
|