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: Mon, 02 Dec 2019 09:13:15
Message-Id: 1575277981.bb174ff3bc1fcf74c41dae07810dcfd24c13b38d.polynomial-c@gentoo
1 commit: bb174ff3bc1fcf74c41dae07810dcfd24c13b38d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 2 08:51:46 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 2 09:13:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb174ff3
7
8 net-libs/gnutls: Bump to version 3.6.11
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-libs/gnutls/Manifest | 1 +
14 net-libs/gnutls/gnutls-3.6.11.ebuild | 130 +++++++++++++++++++++++++++++++++++
15 2 files changed, 131 insertions(+)
16
17 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
18 index ff926bdfc1c..448c77db6e4 100644
19 --- a/net-libs/gnutls/Manifest
20 +++ b/net-libs/gnutls/Manifest
21 @@ -1,3 +1,4 @@
22 DIST gnutls-3.6.10.tar.xz 5795984 BLAKE2B faa4069613bacffbbc3fe00a7b8963f0aa7eacc7946ea51912e2b6366964cf7001d40aa5de3f0543405c54a3200da0c0029150ec7cce84d598bce44b461f2fab SHA512 fe0481f9e4219e983b01b91e69ffd95819a4c0d0c09028509106d561967e9c5d900bc5e3a48140a34fa4467feda2a619085adf3fa8fdade96c8debf125e91ae8
23 +DIST gnutls-3.6.11.tar.xz 5818536 BLAKE2B d413b49b3f7087bb91c2b700ded0825f55e0750d1dc509bfeb4735ab7fa8992f02a71c478bbb492a68d6b673c6662842fc7992ccf408379eb142d41b00eb2daa SHA512 dbf6766131496f66d712cf3a8f042e93eea057d843972c7cc0376c25b6f3802f51af4fe9b38fbb07e8194748a185055a2bd26c1fabd234d330b892466061462a
24 DIST gnutls-3.6.7.tar.xz 8153728 BLAKE2B 993a45edff335e75f36de27373d5db01094c81ebc5eb13d9e04a01f7f32ce6189f71f05a18c90c2e57aec688750e917ee948261726acdd7752d9d7d42a9c7ac2 SHA512 ae9b8996eb9b7269d28213f0aca3a4a17890ba8d47e3dc3b8e754ab8e2b4251e9412aaaa161a8bf56167f04cc169b4cada46f55a7bde92b955eb36cd717a99f3
25 DIST gnutls-3.6.9.tar.xz 5773928 BLAKE2B 9dd7678fd7ea9f170816358a6ac385193fe4db8052e7a35d553e18e8618ea88aeed2b618b288f98f2f480cafd560d46de04234808560a8ec18028574bf26b706 SHA512 a9fd0f4edae4c081d5c539ba2e5574a4d7294bc00c5c73ea25ce26cb7fd126299c2842a282d45ef5cf0544108f27066e587df28776bc7915143d190d7d5b9d07
26
27 diff --git a/net-libs/gnutls/gnutls-3.6.11.ebuild b/net-libs/gnutls/gnutls-3.6.11.ebuild
28 new file mode 100644
29 index 00000000000..5d481f3cd3a
30 --- /dev/null
31 +++ b/net-libs/gnutls/gnutls-3.6.11.ebuild
32 @@ -0,0 +1,130 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit libtool multilib-minimal
39 +
40 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
41 +HOMEPAGE="http://www.gnutls.org/"
42 +SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz"
43 +
44 +LICENSE="GPL-3 LGPL-2.1+"
45 +SLOT="0/30" # libgnutls.so number
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind"
48 +
49 +REQUIRED_USE="
50 + test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
51 +
52 +# NOTICE: sys-devel/autogen is required at runtime as we
53 +# use system libopts
54 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
55 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
56 + >=dev-libs/nettle-3.4.1:=[gmp,${MULTILIB_USEDEP}]
57 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
58 + tools? ( sys-devel/autogen:= )
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 +DEPEND="${RDEPEND}
65 + test? (
66 + seccomp? ( sys-libs/libseccomp )
67 + )"
68 +BDEPEND=">=virtual/pkgconfig-0-r1
69 + doc? ( dev-util/gtk-doc )
70 + nls? ( sys-devel/gettext )
71 + tools? ( sys-devel/autogen )
72 + valgrind? ( dev-util/valgrind )
73 + test-full? (
74 + app-crypt/dieharder
75 + >=app-misc/datefudge-1.22
76 + dev-libs/softhsm:2[-bindist]
77 + net-dialup/ppp
78 + net-misc/socat
79 + )"
80 +
81 +DOCS=(
82 + README.md
83 + doc/certtool.cfg
84 +)
85 +
86 +HTML_DOCS=()
87 +
88 +pkg_setup() {
89 + # bug#520818
90 + export TZ=UTC
91 +
92 + use doc && HTML_DOCS+=(
93 + doc/gnutls.html
94 + )
95 +}
96 +
97 +src_prepare() {
98 + default
99 +
100 + # force regeneration of autogen-ed files
101 + local file
102 + for file in $(grep -l AutoGen-ed src/*.c) ; do
103 + rm src/$(basename ${file} .c).{c,h} || die
104 + done
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 + libconf+=( --without-tpm )
117 +
118 + # hardware-accell is disabled on OSX because the asm files force
119 + # GNU-stack (as doesn't support that) and when that's removed ld
120 + # complains about duplicate symbols
121 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
122 +
123 + # Cygwin as does not understand these asm files at all
124 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
125 +
126 + local myeconfargs=(
127 + $(multilib_native_enable manpages)
128 + $(multilib_native_use_enable doc gtk-doc)
129 + $(multilib_native_use_enable doc)
130 + $(multilib_native_use_enable guile)
131 + $(multilib_native_use_enable seccomp seccomp-tests)
132 + $(multilib_native_use_enable test tests)
133 + $(multilib_native_use_enable test-full full-test-suite)
134 + $(multilib_native_use_enable tools)
135 + $(multilib_native_use_enable valgrind valgrind-tests)
136 + $(use_enable cxx)
137 + $(use_enable dane libdane)
138 + $(use_enable nls)
139 + $(use_enable openssl openssl-compatibility)
140 + $(use_enable sslv2 ssl2-support)
141 + $(use_enable sslv3 ssl3-support)
142 + $(use_enable static-libs static)
143 + $(use_enable tls-heartbeat heartbeat-support)
144 + $(use_with idn)
145 + $(use_with pkcs11 p11-kit)
146 + --disable-rpath
147 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt"
148 + --without-included-libtasn1
149 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
150 + )
151 + ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}"
152 +}
153 +
154 +multilib_src_install_all() {
155 + einstalldocs
156 + find "${ED}" -type f -name '*.la' -delete || die
157 +
158 + if use examples; then
159 + docinto examples
160 + dodoc doc/examples/*.c
161 + fi
162 +}