Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gnutls/
Date: Fri, 16 Feb 2018 12:40:42
Message-Id: 1518780234.8f2ee72a78d012d1dd0a995d4e78a15df9e8c15d.alonbl@gentoo
1 commit: 8f2ee72a78d012d1dd0a995d4e78a15df9e8c15d
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 11:23:35 2018 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 11:23:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f2ee72a
7
8 net-libs/gnutls: version bump
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 net-libs/gnutls/Manifest | 2 +
13 net-libs/gnutls/gnutls-3.5.18.ebuild | 137 +++++++++++++++++++++++++++++++++++
14 net-libs/gnutls/gnutls-3.6.2.ebuild | 133 ++++++++++++++++++++++++++++++++++
15 3 files changed, 272 insertions(+)
16
17 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
18 index 961874e7111..caaad93fe72 100644
19 --- a/net-libs/gnutls/Manifest
20 +++ b/net-libs/gnutls/Manifest
21 @@ -1,5 +1,7 @@
22 DIST gnutls-3.5.15.tar.xz 7238928 BLAKE2B d9a081ec0f956cabe0e0a240c6f20bd2f2855ca8b692b22322f4c80b521cfc8a9bf45da32518225550f289bb0db7010f40a3b371a9e79e394c6ec88004a15fab SHA512 046cf3adf6cc3d38fd431f2ff28ddabb65f3c13379516d105316a04c7128be89c5f7ed3df6a034fc06e9ab2e154c2cde2f5cbe8530a1e58cc4b4fb72e158134b
23 DIST gnutls-3.5.16.tar.xz 7559812 BLAKE2B 5b2fded412823b3f947c000f71bb816e2e248c8f740c2e678ec1e8289dd0b4af73a4f4ab46012c7430aa2a5c57dc7fed532eb1666c13328ec90ed159d1ee48a8 SHA512 451d3167be599ed8e0333dd7c9f8501fcb47b7aa871aeb461c368381c0b7ecd7e2026ec35dbbb2aa685cb2c3a22e9296e0a0699409e3744b731c1bb7e7e69f07
24 DIST gnutls-3.5.17.tar.xz 7261864 BLAKE2B 3b7cbdda3763f05c769c020c517afced3fe27e8b1ec03754d44ef0c183e7985cf0a71f1d176bbcda8aa9bb814a6c53d7da3f2193e084f6d9eea214edbdeba1f2 SHA512 0cb3405dee64737e314bfa9eed6afa57a8951190fe576122aecaf587c07ec1a5df1ac4819078bff0d292271639019c76d9a708027b502e3f55e2cf6576555ea6
25 +DIST gnutls-3.5.18.tar.xz 7261980 BLAKE2B 1c7df33aa331634885426196d1e39cf7c5748ba467323d7a48c4e865efcea03e3a59a7bb21cebb4cfe9d11a83a532bb785ae9a5824703c759e573de0f347004d SHA512 434cf33a4221fe2edce1b531cb53690d14a0991cb2056006021f625fb018987351f8ec917c3a7803e5e64179cf1647a3002ae783736ffca3188d2d294b76df52
26 DIST gnutls-3.6.0.tar.xz 8024972 BLAKE2B 754ec0c097430ef0d5c8c998b94e85c53ac6d34ec0e8b47c83c55f5e6235f783013572040998eb4a163e46ff569827c7c20c81f4e02a129b65e8b0c5d6d59f99 SHA512 e5f36d7e8d64e8432098e30549c321745d3605eeb85aba2a04bfa92146ca771961f0e2f3682bcae36be5b6095acd25996104a4213ce7b3466d61332a5188dc03
27 DIST gnutls-3.6.1.tar.xz 8064408 BLAKE2B 1a573f476261532d516ec7a2c4640cbf8aaaebbbdd129ccfeb1b88d3a66f919ff0eed142a91df19ca9c2f69f90c8c65b965c5659024d54db03606aae811bbc14 SHA512 1f2bd3203ea96844c531be700b44623b79f46743143edf97011aab07895ca18d62f1659c7fafc5e1c4b0686fde490836f00358bdd60d6ac0b842526db002da23
28 +DIST gnutls-3.6.2.tar.xz 8093304 BLAKE2B a5e40cadb184eb960e51cc0d94d441e50378f33582eeda1382e9ee3a9a4b2d26f6b44948921d8983de3e1b8fbc0199e0d894ce8b8da1fddeb84dbe304b2f9222 SHA512 6a574d355226bdff6198ab3f70633ff2a3cff4b5d06793bdaf19d007063bd4dd515d1bd3f331a9eb1a9ad01f83007801cfa55e5fd16c1cd3461ac33d1813fb06
29
30 diff --git a/net-libs/gnutls/gnutls-3.5.18.ebuild b/net-libs/gnutls/gnutls-3.5.18.ebuild
31 new file mode 100644
32 index 00000000000..5f47775ad57
33 --- /dev/null
34 +++ b/net-libs/gnutls/gnutls-3.5.18.ebuild
35 @@ -0,0 +1,137 @@
36 +# Copyright 1999-2018 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +inherit libtool ltprune multilib-minimal versionator
42 +
43 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
44 +HOMEPAGE="http://www.gnutls.org/"
45 +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
46 +
47 +LICENSE="GPL-3 LGPL-2.1"
48 +SLOT="0/30" # libgnutls.so number
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
50 +IUSE="+cxx dane doc examples guile +idn nls openpgp +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind zlib"
51 +
52 +REQUIRED_USE="
53 + test-full? ( guile pkcs11 openpgp openssl idn seccomp tools zlib )"
54 +
55 +# NOTICE: sys-devel/autogen is required at runtime as we
56 +# use system libopts
57 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
58 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
59 + >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
60 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
61 + tools? ( sys-devel/autogen )
62 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
63 + guile? ( >=dev-scheme/guile-1.8:=[networking] )
64 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
65 + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
66 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
67 + idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
68 + abi_x86_32? (
69 + !<=app-emulation/emul-linux-x86-baselibs-20140508
70 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
71 + )"
72 +DEPEND="${RDEPEND}
73 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
74 + doc? ( dev-util/gtk-doc )
75 + nls? ( sys-devel/gettext )
76 + valgrind? ( dev-util/valgrind )
77 + test? (
78 + seccomp? ( sys-libs/libseccomp )
79 + )
80 + test-full? (
81 + guile? ( >=dev-scheme/guile-2 )
82 + app-crypt/dieharder
83 + app-misc/datefudge
84 + dev-libs/softhsm:2[-bindist]
85 + net-dialup/ppp
86 + net-misc/socat
87 + )"
88 +
89 +DOCS=(
90 + README.md
91 + doc/certtool.cfg
92 +)
93 +
94 +HTML_DOCS=()
95 +
96 +pkg_setup() {
97 + # bug#520818
98 + export TZ=UTC
99 +
100 + use doc && HTML_DOCS+=(
101 + doc/gnutls.html
102 + )
103 +}
104 +
105 +src_prepare() {
106 + default
107 +
108 + # force regeneration of autogen-ed files
109 + local file
110 + for file in $(grep -l AutoGen-ed src/*.c) ; do
111 + rm src/$(basename ${file} .c).{c,h} || die
112 + done
113 +
114 + # Use sane .so versioning on FreeBSD.
115 + elibtoolize
116 +}
117 +
118 +multilib_src_configure() {
119 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
120 +
121 + # remove magic of library detection
122 + # bug#438222
123 + local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
124 +
125 + # TPM needs to be tested before being enabled
126 + libconf+=( --without-tpm )
127 +
128 + # hardware-accell is disabled on OSX because the asm files force
129 + # GNU-stack (as doesn't support that) and when that's removed ld
130 + # complains about duplicate symbols
131 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
132 +
133 + # Cygwin as does not understand these asm files at all
134 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
135 +
136 + ECONF_SOURCE=${S} econf \
137 + $(multilib_native_enable manpages) \
138 + $(multilib_native_use_enable doc gtk-doc) \
139 + $(multilib_native_use_enable doc) \
140 + $(multilib_native_use_enable guile) \
141 + $(multilib_native_use_enable seccomp seccomp-tests) \
142 + $(multilib_native_use_enable test tests) \
143 + $(multilib_native_use_enable test-full full-test-suite) \
144 + $(multilib_native_use_enable tools) \
145 + $(multilib_native_use_enable valgrind valgrind-tests) \
146 + $(use_enable cxx) \
147 + $(use_enable dane libdane) \
148 + $(use_enable nls) \
149 + $(use_enable openpgp openpgp-authentication) \
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 idn libidn2) \
156 + $(use_with idn) \
157 + $(use_with pkcs11 p11-kit) \
158 + $(use_with zlib) \
159 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
160 + --without-included-libtasn1 \
161 + "${libconf[@]}"
162 +}
163 +
164 +multilib_src_install_all() {
165 + einstalldocs
166 + prune_libtool_files --all
167 +
168 + if use examples; then
169 + docinto examples
170 + dodoc doc/examples/*.c
171 + fi
172 +}
173
174 diff --git a/net-libs/gnutls/gnutls-3.6.2.ebuild b/net-libs/gnutls/gnutls-3.6.2.ebuild
175 new file mode 100644
176 index 00000000000..1c8e4281985
177 --- /dev/null
178 +++ b/net-libs/gnutls/gnutls-3.6.2.ebuild
179 @@ -0,0 +1,133 @@
180 +# Copyright 1999-2018 Gentoo Foundation
181 +# Distributed under the terms of the GNU General Public License v2
182 +
183 +EAPI=6
184 +
185 +inherit libtool ltprune multilib-minimal versionator
186 +
187 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
188 +HOMEPAGE="http://www.gnutls.org/"
189 +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
190 +
191 +LICENSE="GPL-3 LGPL-2.1"
192 +SLOT="0/30" # libgnutls.so number
193 +KEYWORDS=""
194 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind"
195 +
196 +REQUIRED_USE="
197 + test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
198 +
199 +# NOTICE: sys-devel/autogen is required at runtime as we
200 +# use system libopts
201 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
202 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
203 + >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
204 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
205 + tools? ( sys-devel/autogen )
206 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
207 + guile? ( >=dev-scheme/guile-1.8:=[networking] )
208 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
209 + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
210 + idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
211 + abi_x86_32? (
212 + !<=app-emulation/emul-linux-x86-baselibs-20140508
213 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
214 + )"
215 +DEPEND="${RDEPEND}
216 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
217 + doc? ( dev-util/gtk-doc )
218 + nls? ( sys-devel/gettext )
219 + valgrind? ( dev-util/valgrind )
220 + test? (
221 + seccomp? ( sys-libs/libseccomp )
222 + )
223 + test-full? (
224 + guile? ( >=dev-scheme/guile-2 )
225 + app-crypt/dieharder
226 + app-misc/datefudge
227 + dev-libs/softhsm:2[-bindist]
228 + net-dialup/ppp
229 + net-misc/socat
230 + )"
231 +
232 +DOCS=(
233 + README.md
234 + doc/certtool.cfg
235 +)
236 +
237 +HTML_DOCS=()
238 +
239 +pkg_setup() {
240 + # bug#520818
241 + export TZ=UTC
242 +
243 + use doc && HTML_DOCS+=(
244 + doc/gnutls.html
245 + )
246 +}
247 +
248 +src_prepare() {
249 + default
250 +
251 + # force regeneration of autogen-ed files
252 + local file
253 + for file in $(grep -l AutoGen-ed src/*.c) ; do
254 + rm src/$(basename ${file} .c).{c,h} || die
255 + done
256 +
257 + # Use sane .so versioning on FreeBSD.
258 + elibtoolize
259 +}
260 +
261 +multilib_src_configure() {
262 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
263 +
264 + # remove magic of library detection
265 + # bug#438222
266 + local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
267 +
268 + # TPM needs to be tested before being enabled
269 + libconf+=( --without-tpm )
270 +
271 + # hardware-accell is disabled on OSX because the asm files force
272 + # GNU-stack (as doesn't support that) and when that's removed ld
273 + # complains about duplicate symbols
274 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
275 +
276 + # Cygwin as does not understand these asm files at all
277 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
278 +
279 + ECONF_SOURCE=${S} econf \
280 + $(multilib_native_enable manpages) \
281 + $(multilib_native_use_enable doc gtk-doc) \
282 + $(multilib_native_use_enable doc) \
283 + $(multilib_native_use_enable guile) \
284 + $(multilib_native_use_enable seccomp seccomp-tests) \
285 + $(multilib_native_use_enable test tests) \
286 + $(multilib_native_use_enable test-full full-test-suite) \
287 + $(multilib_native_use_enable tools) \
288 + $(multilib_native_use_enable valgrind valgrind-tests) \
289 + $(use_enable cxx) \
290 + $(use_enable dane libdane) \
291 + $(use_enable nls) \
292 + $(use_enable openssl openssl-compatibility) \
293 + $(use_enable sslv2 ssl2-support) \
294 + $(use_enable sslv3 ssl3-support) \
295 + $(use_enable static-libs static) \
296 + $(use_enable tls-heartbeat heartbeat-support) \
297 + $(use_with idn) \
298 + $(use_with pkcs11 p11-kit) \
299 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
300 + --without-included-libtasn1 \
301 + "${libconf[@]}"
302 +}
303 +
304 +multilib_src_install_all() {
305 + einstalldocs
306 + prune_libtool_files --all
307 +
308 + if use examples; then
309 + docinto examples
310 + dodoc doc/examples/*.c
311 + fi
312 +}