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