Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gnutls/
Date: Wed, 02 Dec 2020 20:59:45
Message-Id: 1606942778.b5794635cde7017748a632dde76c89eb6c13fb6d.polynomial-c@gentoo
1 commit: b5794635cde7017748a632dde76c89eb6c13fb6d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 20:57:36 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 20:59:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5794635
7
8 net-libs/gnutls: Bump to version 3.7.0
9
10 Package-Manager: Portage-3.0.11, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-libs/gnutls/Manifest | 1 +
14 net-libs/gnutls/gnutls-3.7.0.ebuild | 137 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 138 insertions(+)
16
17 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
18 index 57fe6ac8d9f..d4ed4129250 100644
19 --- a/net-libs/gnutls/Manifest
20 +++ b/net-libs/gnutls/Manifest
21 @@ -1 +1,2 @@
22 DIST gnutls-3.6.15.tar.xz 6081656 BLAKE2B 6c52419037e41e817087a2577a6b73969cf065453ecf88e2f87152f544a177e4ad0ef825ae9dab243312e0223a953ab28e532bd2dbf96cb9498618415bc7f654 SHA512 f757d1532198f44bcad7b73856ce6a05bab43f6fb77fcc81c59607f146202f73023d0796d3e1e7471709cf792c8ee7d436e19407e0601bc0bda2f21512b3b01c
23 +DIST gnutls-3.7.0.tar.xz 6129176 BLAKE2B 3b03e7017ac1d715c740f8f09b0690dd1c983dcfd5faef0740cf66ac785c1a84e959f85808aa10a6eebd745d96ca0293681049911ea663aeff85fedfa2567aad SHA512 5cf1025f2d0a0cbf5a83dd7f3b22dafd1769f7c3349096c0272d08573bb5ff87f510e0e69b4bbb47dad1b64476aa5479804b2f4ceb2216cd747bbc53bf42d885
24
25 diff --git a/net-libs/gnutls/gnutls-3.7.0.ebuild b/net-libs/gnutls/gnutls-3.7.0.ebuild
26 new file mode 100644
27 index 00000000000..1f6e8d56d7f
28 --- /dev/null
29 +++ b/net-libs/gnutls/gnutls-3.7.0.ebuild
30 @@ -0,0 +1,137 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit libtool multilib-minimal
37 +
38 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
39 +HOMEPAGE="http://www.gnutls.org/"
40 +SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz"
41 +
42 +LICENSE="GPL-3 LGPL-2.1+"
43 +SLOT="0/30" # libgnutls.so number
44 +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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind"
46 +
47 +REQUIRED_USE="
48 + test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
49 +RESTRICT="!test? ( test )"
50 +
51 +# NOTICE: sys-devel/autogen is required at runtime as we
52 +# use system libopts
53 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
54 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
55 + >=dev-libs/nettle-3.6:=[gmp,${MULTILIB_USEDEP}]
56 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
57 + tools? ( sys-devel/autogen:= )
58 + dane? ( >=net-dns/unbound-1.4.20:=[${MULTILIB_USEDEP}] )
59 + guile? ( >=dev-scheme/guile-2:=[networking] )
60 + nls? ( >=virtual/libintl-0-r1:=[${MULTILIB_USEDEP}] )
61 + pkcs11? ( >=app-crypt/p11-kit-0.23.1:=[${MULTILIB_USEDEP}] )
62 + idn? ( >=net-dns/libidn2-0.16-r1:=[${MULTILIB_USEDEP}] )"
63 +DEPEND="${RDEPEND}
64 + test? (
65 + seccomp? ( sys-libs/libseccomp )
66 + )"
67 +BDEPEND=">=virtual/pkgconfig-0-r1
68 + doc? ( dev-util/gtk-doc )
69 + nls? ( sys-devel/gettext )
70 + tools? ( sys-devel/autogen )
71 + valgrind? ( dev-util/valgrind )
72 + test-full? (
73 + app-crypt/dieharder
74 + >=app-misc/datefudge-1.22
75 + dev-libs/softhsm:2[-bindist]
76 + net-dialup/ppp
77 + net-misc/socat
78 + )"
79 +
80 +DOCS=(
81 + README.md
82 + doc/certtool.cfg
83 +)
84 +
85 +HTML_DOCS=()
86 +
87 +pkg_setup() {
88 + # bug#520818
89 + export TZ=UTC
90 +
91 + use doc && HTML_DOCS+=(
92 + doc/gnutls.html
93 + )
94 +}
95 +
96 +src_prepare() {
97 + default
98 +
99 + # force regeneration of autogen-ed files
100 + local file
101 + for file in $(grep -l AutoGen-ed src/*.c) ; do
102 + rm src/$(basename ${file} .c).{c,h} || die
103 + done
104 +
105 + # don't try to use system certificate store on macOS, it is
106 + # confusingly ignoring our ca-certificates and more importantly
107 + # fails to compile in certain configurations
108 + sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die
109 +
110 + # Use sane .so versioning on FreeBSD.
111 + elibtoolize
112 +}
113 +
114 +multilib_src_configure() {
115 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
116 +
117 + local libconf=()
118 +
119 + # TPM needs to be tested before being enabled
120 + libconf+=( --without-tpm )
121 +
122 + # hardware-accell 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 + local myeconfargs=(
131 + $(multilib_native_enable manpages)
132 + $(multilib_native_use_enable doc gtk-doc)
133 + $(multilib_native_use_enable doc)
134 + $(multilib_native_use_enable guile)
135 + $(multilib_native_use_enable seccomp seccomp-tests)
136 + $(multilib_native_use_enable test tests)
137 + $(multilib_native_use_enable test-full full-test-suite)
138 + $(multilib_native_use_enable tools)
139 + $(multilib_native_use_enable valgrind valgrind-tests)
140 + $(use_enable cxx)
141 + $(use_enable dane libdane)
142 + $(use_enable nls)
143 + $(use_enable openssl openssl-compatibility)
144 + $(use_enable sslv2 ssl2-support)
145 + $(use_enable sslv3 ssl3-support)
146 + $(use_enable static-libs static)
147 + $(use_enable tls-heartbeat heartbeat-support)
148 + $(use_with idn)
149 + $(use_with pkcs11 p11-kit)
150 + --disable-rpath
151 + --with-default-trust-store-file="${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
152 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt"
153 + --without-included-libtasn1
154 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
155 + )
156 + ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}"
157 +}
158 +
159 +multilib_src_install_all() {
160 + einstalldocs
161 + find "${ED}" -type f -name '*.la' -delete || die
162 +
163 + if use examples; then
164 + docinto examples
165 + dodoc doc/examples/*.c
166 + fi
167 +}