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: Sat, 26 Jan 2019 22:02:24
Message-Id: 1548540126.9feb30212c0431e052e4ed5b9b22defd840ce2ef.alonbl@gentoo
1 commit: 9feb30212c0431e052e4ed5b9b22defd840ce2ef
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 26 22:01:34 2019 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 26 22:02:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9feb3021
7
8 net-libs/gnutls: version bump
9
10 Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-libs/gnutls/Manifest | 1 +
14 net-libs/gnutls/gnutls-3.6.6.ebuild | 132 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 133 insertions(+)
16
17 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
18 index 9be31e459e2..370083c42eb 100644
19 --- a/net-libs/gnutls/Manifest
20 +++ b/net-libs/gnutls/Manifest
21 @@ -1,2 +1,3 @@
22 DIST gnutls-3.5.19.tar.xz 7239744 BLAKE2B c12578e79d3e96e1df7a5dc5f05fe9bc4bce4150f7440a73fda8e69d3f137a9ad1ace28b56e976bc319bd7be7305bf93af9c20087229e0b8fefee85b64e8261d SHA512 a78a59505e59c62ca671b34eacaeadcf070a943b12d964b7362962ba05636136638063491c37bb1883807014b8b6cf4f83f7d5b918ed02d5fbb52155679ce52f
23 DIST gnutls-3.6.5.tar.xz 8192888 BLAKE2B 1d305d49c461657b921a51e6c3577e8aea76ba2a4ecbb0ba165ca1f452560b691f12733e3b3ef6d1206096a7393a6fdd05bedb5d5653c7e18e14c5c2f5993de2 SHA512 127f053ce45c63cd745fa5a654a2d8e4fbc322f5e17dcc3740fb2e7b376dd18dad59318d66e6e93e37d6a179fca4b35cf2ae62d13be5645cd2d06badd79d4dce
24 +DIST gnutls-3.6.6.tar.xz 8257612 BLAKE2B 1b201eedcad7e4424cc6f53d21de5c8105fdea3f0bbc2ea1eceac6fed20a45ad8009fc0f4d9bd7c3e8e3a4cd261d6c32a180a273b22494c4b2f1982244bd4698 SHA512 4ff34f38d7dc543bc5750d8fdfe9be84af60c66e8d41da45f6cffc11d6c6c726784fd2d471b3416604ca1f3f9efb22ff7a290d5c92c96deda38df6ae3e794cc1
25
26 diff --git a/net-libs/gnutls/gnutls-3.6.6.ebuild b/net-libs/gnutls/gnutls-3.6.6.ebuild
27 new file mode 100644
28 index 00000000000..0e4f46b96b2
29 --- /dev/null
30 +++ b/net-libs/gnutls/gnutls-3.6.6.ebuild
31 @@ -0,0 +1,132 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit libtool multilib-minimal
38 +
39 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
40 +HOMEPAGE="http://www.gnutls.org/"
41 +SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz"
42 +
43 +LICENSE="GPL-3 LGPL-2.1"
44 +SLOT="0/30" # libgnutls.so number
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind"
47 +
48 +REQUIRED_USE="
49 + test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
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.4.1:=[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 + # Use sane .so versioning on FreeBSD.
106 + elibtoolize
107 +
108 + # detect also guile-2.2, bug#673574
109 + # aclocal/autoreconf will require more dependencies
110 + # that we want to have
111 + sed -i 's/\(_guile_versions_to_search="\)\(.*\)\("\)/\1\2 2.2\3/' configure || die
112 +}
113 +
114 +multilib_src_configure() {
115 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
116 +
117 + # TPM needs to be tested before being enabled
118 + libconf+=( --without-tpm )
119 +
120 + # hardware-accell is disabled on OSX because the asm files force
121 + # GNU-stack (as doesn't support that) and when that's removed ld
122 + # complains about duplicate symbols
123 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
124 +
125 + # Cygwin as does not understand these asm files at all
126 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
127 +
128 + ECONF_SOURCE=${S} econf \
129 + $(multilib_native_enable manpages) \
130 + $(multilib_native_use_enable doc gtk-doc) \
131 + $(multilib_native_use_enable doc) \
132 + $(multilib_native_use_enable guile) \
133 + $(multilib_native_use_enable seccomp seccomp-tests) \
134 + $(multilib_native_use_enable test tests) \
135 + $(multilib_native_use_enable test-full full-test-suite) \
136 + $(multilib_native_use_enable tools) \
137 + $(multilib_native_use_enable valgrind valgrind-tests) \
138 + $(use_enable cxx) \
139 + $(use_enable dane libdane) \
140 + $(use_enable nls) \
141 + $(use_enable openssl openssl-compatibility) \
142 + $(use_enable sslv2 ssl2-support) \
143 + $(use_enable sslv3 ssl3-support) \
144 + $(use_enable static-libs static) \
145 + $(use_enable tls-heartbeat heartbeat-support) \
146 + $(use_with idn) \
147 + $(use_with pkcs11 p11-kit) \
148 + --disable-rpath \
149 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
150 + --without-included-libtasn1 \
151 + "${libconf[@]}" \
152 + $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
153 +}
154 +
155 +multilib_src_install_all() {
156 + einstalldocs
157 + find "${D}" -name '*.la' -delete || die
158 +
159 + if use examples; then
160 + docinto examples
161 + dodoc doc/examples/*.c
162 + fi
163 +}