Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gnutls/
Date: Sat, 14 May 2022 21:24:24
Message-Id: 1652563344.ff2d87bef7fad4ee0a9c9167eff25ff87c187f10.sam@gentoo
1 commit: ff2d87bef7fad4ee0a9c9167eff25ff87c187f10
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 04:02:16 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 21:22:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff2d87be
7
8 net-libs/gnutls: add 3.7.5
9
10 Bumps subslot for libgnutlscxx ABI break too.
11
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 net-libs/gnutls/Manifest | 2 +
15 net-libs/gnutls/gnutls-3.7.5.ebuild | 143 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 145 insertions(+)
17
18 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
19 index c96604490651..b80bc56323a2 100644
20 --- a/net-libs/gnutls/Manifest
21 +++ b/net-libs/gnutls/Manifest
22 @@ -2,3 +2,5 @@ DIST gnutls-3.7.2.tar.xz 6091508 BLAKE2B f408ff65f2e08cf294b449dfac64a272a8ba40e
23 DIST gnutls-3.7.3.tar.xz 6119292 BLAKE2B 811e6fbb62fbd35fa63e66cfcbfc3bf899cea5cece1d2a68bc650f507df0f7be9f59c707c90fa19b7ef5a52455a663da49682704e0884af06075c566afbfc0bf SHA512 3ace744affe23e284342658d6d2d2de49dd50065489cbc8be18fc7d38187253e5268ca54027ce5cd517056c249ac039a7481e4548cec04325de37ae85617d077
24 DIST gnutls-3.7.4.tar.xz 6131772 BLAKE2B 1c44528952275f48e4e458558c4e03c5b90dfb267482d6815f6c836f9530abb486a23ae5ea70ba2db7e272eee8e2066b259374f02a9bb9e714487466fd5994c9 SHA512 38b488ca1223d9aa8fc25756df08db6f29aaf76fb5816fdeaa14bd89fb431a2e1c495fefc64094f726337d5b89e198146ec7dc22e9a1bca6841a9d881b0d99e6
25 DIST gnutls-3.7.4.tar.xz.sig 685 BLAKE2B ad485450abb916a229984f8f0d74fe7c46a0a87627f9d739f8121dccf36f4ca454007178f2a4e9bd5fffa2813363481bf80eaeee40f86e1b9c23b1f25dff7b4c SHA512 74b8badd67e215313583bd25c7b639207860af45d6f5cbcb81f1aaf46dacf0992b6d06876979594688e13dac5b8b27ba39935626374b4ddaa3e48118bbc2e7de
26 +DIST gnutls-3.7.5.tar.xz 6321392 BLAKE2B e7b2da643dc8d5160d1872655ed6771b89587d62132eccfe0b7ce0cc9e81daa27b3608608df3301787d89148a27d321266ac52c1fde06afd2e821575e8805403 SHA512 2e4898e6aeff4f82abd48e6a442f5c9ebe4ecaeb0c038b76e2da8e468f6a7ae37fef5e8de17d90346f29aa0b56a08abf67fe8b81ba09dcf4612cc3b97b830bec
27 +DIST gnutls-3.7.5.tar.xz.sig 685 BLAKE2B 0a7fdeae9b10382e962c5ea7b49fbb2c0829203bded123597b7718b0cd9483204498a05556da82518f40a4775c90a9b275afdbb4d6a65e7a9396bd0c40ca522a SHA512 1110b859299d13c5121f9c68d6faf099a62b13500cd1c994ac6dea49d69c29a351fd4de42bb66fe01d2e6feef9c3fbd344e8eec0a409c804699d3f7956fe28ff
28
29 diff --git a/net-libs/gnutls/gnutls-3.7.5.ebuild b/net-libs/gnutls/gnutls-3.7.5.ebuild
30 new file mode 100644
31 index 000000000000..d376deb752e2
32 --- /dev/null
33 +++ b/net-libs/gnutls/gnutls-3.7.5.ebuild
34 @@ -0,0 +1,143 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnutls.asc
41 +inherit libtool multilib-minimal verify-sig
42 +
43 +DESCRIPTION="A secure communications library implementing the SSL, TLS and DTLS protocols"
44 +HOMEPAGE="https://www.gnutls.org/"
45 +SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz"
46 +SRC_URI+=" verify-sig? ( mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz.sig )"
47 +
48 +LICENSE="GPL-3 LGPL-2.1+"
49 +SLOT="0/30.30" # <libgnutls.so number>.<libgnutlsxx.so number>
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE="brotli +cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind zlib zstd"
52 +
53 +REQUIRED_USE="test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
57 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
58 + >=dev-libs/nettle-3.6:=[gmp,${MULTILIB_USEDEP}]
59 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
60 + brotli? ( >=app-arch/brotli-1.0.0:=[${MULTILIB_USEDEP}] )
61 + dane? ( >=net-dns/unbound-1.4.20:=[${MULTILIB_USEDEP}] )
62 + guile? ( >=dev-scheme/guile-2:=[networking] )
63 + nls? ( >=virtual/libintl-0-r1:=[${MULTILIB_USEDEP}] )
64 + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
65 + idn? ( >=net-dns/libidn2-0.16-r1:=[${MULTILIB_USEDEP}] )
66 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
67 + zstd? ( >=app-arch/zstd-1.3.0:=[${MULTILIB_USEDEP}] )"
68 +DEPEND="${RDEPEND}
69 + test? (
70 + seccomp? ( sys-libs/libseccomp )
71 + )"
72 +BDEPEND="
73 + dev-util/gtk-doc-am
74 + >=virtual/pkgconfig-0-r1
75 + doc? ( dev-util/gtk-doc )
76 + nls? ( sys-devel/gettext )
77 + valgrind? ( dev-util/valgrind )
78 + test-full? (
79 + app-crypt/dieharder
80 + >=app-misc/datefudge-1.22
81 + dev-libs/softhsm:2[-bindist(-)]
82 + net-dialup/ppp
83 + net-misc/socat
84 + )
85 + verify-sig? ( >=sec-keys/openpgp-keys-gnutls-20220320 )"
86 +
87 +DOCS=( README.md doc/certtool.cfg )
88 +
89 +HTML_DOCS=()
90 +
91 +pkg_setup() {
92 + # bug #520818
93 + export TZ=UTC
94 +
95 + use doc && HTML_DOCS+=(
96 + doc/gnutls.html
97 + )
98 +}
99 +
100 +src_prepare() {
101 + default
102 +
103 + # don't try to use system certificate store on macOS, it is
104 + # confusingly ignoring our ca-certificates and more importantly
105 + # fails to compile in certain configurations
106 + sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die
107 +
108 + # Use sane .so versioning on FreeBSD.
109 + elibtoolize
110 +}
111 +
112 +multilib_src_configure() {
113 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
114 +
115 + local libconf=()
116 +
117 + # TPM needs to be tested before being enabled
118 + # Note that this may add a libltdl dep when enabled. Check configure.ac.
119 + libconf+=(
120 + --without-tpm
121 + --without-tpm2
122 + )
123 +
124 + # hardware-accel is disabled on OSX because the asm files force
125 + # GNU-stack (as doesn't support that) and when that's removed ld
126 + # complains about duplicate symbols
127 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
128 +
129 + # Cygwin as does not understand these asm files at all
130 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
131 +
132 + # -fanalyzer substantially slows down the build and isn't useful for
133 + # us. It's useful for upstream as it's static analysis, but it's not
134 + # useful when just getting something built.
135 + export gl_cv_warn_c__fanalyzer=no
136 +
137 + local myeconfargs=(
138 + $(multilib_native_enable manpages)
139 + $(multilib_native_use_enable doc gtk-doc)
140 + $(multilib_native_use_enable doc)
141 + $(multilib_native_use_enable guile)
142 + $(multilib_native_use_enable seccomp seccomp-tests)
143 + $(multilib_native_use_enable test tests)
144 + $(multilib_native_use_enable test-full full-test-suite)
145 + $(multilib_native_use_enable tools)
146 + $(multilib_native_use_enable valgrind valgrind-tests)
147 + $(use_enable cxx)
148 + $(use_enable dane libdane)
149 + $(use_enable nls)
150 + $(use_enable openssl openssl-compatibility)
151 + $(use_enable sslv2 ssl2-support)
152 + $(use_enable sslv3 ssl3-support)
153 + $(use_enable static-libs static)
154 + $(use_enable tls-heartbeat heartbeat-support)
155 + $(use_with brotli)
156 + $(use_with idn)
157 + $(use_with pkcs11 p11-kit)
158 + $(use_with zlib)
159 + $(use_with zstd)
160 + --disable-rpath
161 + --with-default-trust-store-file="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
162 + --with-unbound-root-key-file="${EPREFIX}"/etc/dnssec/root-anchors.txt
163 + --without-included-libtasn1
164 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
165 + )
166 + ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}"
167 +}
168 +
169 +multilib_src_install_all() {
170 + einstalldocs
171 + find "${ED}" -type f -name '*.la' -delete || die
172 +
173 + if use examples; then
174 + docinto examples
175 + dodoc doc/examples/*.c
176 + fi
177 +}