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: Mon, 06 Mar 2017 13:29:19
Message-Id: 1488806941.61a9818ba4fe739390d666524f545ba5e8aceb3d.alonbl@gentoo
1 commit: 61a9818ba4fe739390d666524f545ba5e8aceb3d
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 6 13:28:45 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 6 13:29:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a9818b
7
8 net-libs/gnutls: version bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-libs/gnutls/Manifest | 2 +
13 net-libs/gnutls/gnutls-3.3.27.ebuild | 181 +++++++++++++++++++++++++++++++++++
14 net-libs/gnutls/gnutls-3.5.10.ebuild | 128 +++++++++++++++++++++++++
15 3 files changed, 311 insertions(+)
16
17 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
18 index 77b2e6c123c..926a2b79f89 100644
19 --- a/net-libs/gnutls/Manifest
20 +++ b/net-libs/gnutls/Manifest
21 @@ -1,2 +1,4 @@
22 DIST gnutls-3.3.26.tar.xz 6361068 SHA256 6a7d882b6b581d684883fde195abf930dab37dfbe6aaea88ab164252bec720d9 SHA512 41259f760f5ed9b87d4203de567efb1a2087e01a025f2ea0f14167f146ecd640fbddeab390fbae6acc262507229894774db883d0892d448068ee73abb110738f WHIRLPOOL afca5aabebf36064847933662736c7713b837375db2c91c416d43a980407d912edf8fb64f53615c0bed770f46a9d2e0a3eb309f6a66281f5377e50a02863c8e7
23 +DIST gnutls-3.3.27.tar.xz 6364824 SHA256 8dfda16c158ef5c134010d51d1a91d02aa5d43b8cb711b1572650a7ffb56b17f SHA512 2cc5706b502a500375f706d1a7321af4c55554d3052f35cf24cbb288f9568ce891999d0f401119d04f594e9bc79e2e68d3c008648604032222ad2a6d8224bbdf WHIRLPOOL 508ac8939e471155bd5d49510111fca4eb5b5362f0bae8ec16f98eb16aeaa44ff06448fd7793398e56f9713b344b0b27a32e66c24cbdc062d33bc74dd6b83f57
24 +DIST gnutls-3.5.10.tar.xz 7194752 SHA256 af443e86ba538d4d3e37c4732c00101a492fe4b56a55f4112ff0ab39dbe6579d SHA512 60fc3409ee81932bc2672c68eb65748b88da4b9307764fb395dbadc06120e1011207a04d5f540e77a4d07649ffaed0789c04d57692eeca6ab24ac79d72418906 WHIRLPOOL c711bff10bcfa1ba8df82307d9fab30e08ed56d10bc87ae9ffbf8646d5d2fbd6c036db0335188cd6cb4b042ef616e342d3712715a6cb0ac3e6be934a5ea9c5f5
25 DIST gnutls-3.5.9.tar.xz 7166932 SHA256 82b10f0c4ef18f4e64ad8cef5dbaf14be732f5095a41cf366b4ecb4050382951 SHA512 17a05143eaa70ee61b149a5f09ae7a688cb3f314ad1e67ce41a778e5960717e276cc780f3db9b6923c14c4d998e17563c134cab5297502181cd2dabb47da3515 WHIRLPOOL 451b191ed2b4a2fc686b93515cdc026949630ffd2af4b55b65f5b15c0dc306a9d64e4a18e314d9cd5c8a416ae40468e7de467bafe63d82cef05920b2c6a1bc52
26
27 diff --git a/net-libs/gnutls/gnutls-3.3.27.ebuild b/net-libs/gnutls/gnutls-3.3.27.ebuild
28 new file mode 100644
29 index 00000000000..1fbac6c94d8
30 --- /dev/null
31 +++ b/net-libs/gnutls/gnutls-3.3.27.ebuild
32 @@ -0,0 +1,181 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit autotools libtool eutils multilib-minimal versionator
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$(get_version_component_range 1-2)/${P}.tar.xz"
43 +
44 +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library.
45 +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled.
46 +LICENSE="GPL-3 LGPL-3"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
49 +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
50 +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}"
51 +# heartbeat support is not disabled until re-licensing happens fullyf
52 +
53 +# NOTICE: sys-devel/autogen is required at runtime as we
54 +# use system libopts
55 +RDEPEND=">=dev-libs/libtasn1-4.3:=[${MULTILIB_USEDEP}]
56 + >=dev-libs/nettle-2.7:=[gmp,${MULTILIB_USEDEP}]
57 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
58 + sys-devel/autogen
59 + crywrap? ( net-dns/libidn )
60 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
61 + guile? ( >=dev-scheme/guile-1.8:=[networking] )
62 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
63 + pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] )
64 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
65 + abi_x86_32? (
66 + !<=app-emulation/emul-linux-x86-baselibs-20140508
67 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
68 + )"
69 +DEPEND="${RDEPEND}
70 + >=sys-devel/automake-1.11.6
71 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
72 + doc? (
73 + sys-apps/texinfo
74 + dev-util/gtk-doc
75 + )
76 + nls? ( sys-devel/gettext )
77 + test? ( app-misc/datefudge )"
78 +
79 +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
80 +
81 +PATCHES=(
82 + "${FILESDIR}/${PN}-3.3.19-build-allow-installing-man-1-even-with-disable-doc.patch"
83 +)
84 +
85 +pkg_setup() {
86 + # bug#520818
87 + export TZ=UTC
88 +}
89 +
90 +src_prepare() {
91 + default
92 +
93 + sed -i \
94 + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
95 + doc/Makefile.am || die
96 +
97 + # force regeneration of autogen-ed files
98 + local file
99 + for file in $(grep -l AutoGen-ed src/*.c) ; do
100 + rm src/$(basename ${file} .c).{c,h} || die
101 + done
102 +
103 + # force regeneration of makeinfo files
104 + # have no idea why on some system these files are not
105 + # accepted as-is, see bug#520818
106 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
107 + rm "${file}" || die
108 + done
109 +
110 + eautoreconf
111 +
112 + # Use sane .so versioning on FreeBSD.
113 + elibtoolize
114 +
115 + # bug 497472
116 + use cxx || epunt_cxx
117 +}
118 +
119 +multilib_src_configure() {
120 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
121 +
122 + # remove magic of library detection
123 + # bug#438222
124 + libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
125 +
126 + # TPM needs to be tested before being enabled
127 + # hardware-accell is disabled on OSX because the asm files force
128 + # GNU-stack (as doesn't support that) and when that's removed ld
129 + # complains about duplicate symbols
130 + ECONF_SOURCE=${S} \
131 + econf \
132 + --disable-valgrind-tests \
133 + --without-included-libtasn1 \
134 + --enable-heartbeat-support \
135 + $(use_enable cxx) \
136 + $(use_enable dane libdane) \
137 + $(multilib_native_enable manpages) \
138 + $(multilib_native_use_enable doc) \
139 + $(multilib_native_use_enable doc gtk-doc) \
140 + $(multilib_native_use_enable guile) \
141 + $(multilib_native_use_enable crywrap) \
142 + $(use_enable nls) \
143 + $(use_enable openssl openssl-compatibility) \
144 + $(use_enable static-libs static) \
145 + $(use_with pkcs11 p11-kit) \
146 + $(use_with zlib) \
147 + --without-tpm \
148 + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
149 + "${libconf[@]}" \
150 + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
151 +
152 + if multilib_is_native_abi; then
153 + ln -s "${S}"/doc/reference/html doc/reference/html || die
154 + fi
155 +}
156 +
157 +multilib_src_compile() {
158 + if multilib_is_native_abi; then
159 + default
160 +
161 + # symlink certtool for use in other ABIs
162 + if use test; then
163 + ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die
164 + fi
165 + else
166 + emake -C gl
167 + emake -C lib
168 + emake -C extra
169 + use dane && emake -C libdane
170 + fi
171 +}
172 +
173 +multilib_src_test() {
174 + if multilib_is_native_abi; then
175 + # parallel testing often fails
176 + emake -j1 check
177 + else
178 + # use native ABI tools
179 + ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \
180 + "${BUILD_DIR}"/src/ || die
181 +
182 + emake -C gl -j1 check
183 + emake -C tests -j1 check
184 + fi
185 +}
186 +
187 +multilib_src_install() {
188 + if multilib_is_native_abi; then
189 + emake DESTDIR="${D}" install
190 + else
191 + emake -C lib DESTDIR="${D}" install
192 + emake -C extra DESTDIR="${D}" install
193 + use dane && emake -C libdane DESTDIR="${D}" install
194 + fi
195 +}
196 +
197 +multilib_src_install_all() {
198 + einstalldocs
199 + prune_libtool_files --all
200 +
201 + dodoc doc/certtool.cfg
202 +
203 + if use doc; then
204 + dohtml doc/gnutls.html
205 + else
206 + rm -fr "${ED}/usr/share/doc/${PF}/html"
207 + fi
208 +
209 + if use examples; then
210 + docinto examples
211 + dodoc doc/examples/*.c
212 + fi
213 +}
214
215 diff --git a/net-libs/gnutls/gnutls-3.5.10.ebuild b/net-libs/gnutls/gnutls-3.5.10.ebuild
216 new file mode 100644
217 index 00000000000..20c29446f5d
218 --- /dev/null
219 +++ b/net-libs/gnutls/gnutls-3.5.10.ebuild
220 @@ -0,0 +1,128 @@
221 +# Copyright 1999-2017 Gentoo Foundation
222 +# Distributed under the terms of the GNU General Public License v2
223 +
224 +EAPI=6
225 +
226 +inherit eutils libtool multilib-minimal versionator
227 +
228 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
229 +HOMEPAGE="http://www.gnutls.org/"
230 +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
231 +
232 +LICENSE="GPL-3 LGPL-2.1"
233 +SLOT="0/30" # libgnutls.so number
234 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
235 +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
236 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 sslv2 +sslv3 static-libs test test-full +tls-heartbeat tools valgrind zlib ${IUSE_LINGUAS// / linguas_}"
237 +
238 +REQUIRED_USE="
239 + test-full? ( pkcs11 openssl idn tools zlib )"
240 +
241 +# NOTICE: sys-devel/autogen is required at runtime as we
242 +# use system libopts
243 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
244 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
245 + >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
246 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
247 + tools? ( sys-devel/autogen )
248 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
249 + guile? ( >=dev-scheme/guile-1.8:=[networking] )
250 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
251 + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
252 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
253 + idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
254 + valgrind? ( dev-util/valgrind )
255 + test-full? (
256 + app-crypt/dieharder
257 + app-misc/datefudge
258 + dev-libs/softhsm:2[-bindist]
259 + net-dialup/ppp
260 + net-misc/socat
261 + )
262 + abi_x86_32? (
263 + !<=app-emulation/emul-linux-x86-baselibs-20140508
264 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
265 + )"
266 +DEPEND="${RDEPEND}
267 + >=sys-devel/automake-1.11.6
268 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
269 + doc? ( dev-util/gtk-doc )
270 + nls? ( sys-devel/gettext )
271 + test? ( app-misc/datefudge )"
272 +
273 +DOCS=(
274 + README.md
275 + doc/certtool.cfg
276 +)
277 +
278 +HTML_DOCS=()
279 +
280 +pkg_setup() {
281 + # bug#520818
282 + export TZ=UTC
283 +
284 + use doc && HTML_DOCS+=(
285 + doc/gnutls.html
286 + )
287 +}
288 +
289 +src_prepare() {
290 + default
291 +
292 + # force regeneration of autogen-ed files
293 + local file
294 + for file in $(grep -l AutoGen-ed src/*.c) ; do
295 + rm src/$(basename ${file} .c).{c,h} || die
296 + done
297 +
298 + # Use sane .so versioning on FreeBSD.
299 + elibtoolize
300 +}
301 +
302 +multilib_src_configure() {
303 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
304 +
305 + # remove magic of library detection
306 + # bug#438222
307 + local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
308 +
309 + # TPM needs to be tested before being enabled
310 + # hardware-accell is disabled on OSX because the asm files force
311 + # GNU-stack (as doesn't support that) and when that's removed ld
312 + # complains about duplicate symbols
313 + ECONF_SOURCE=${S} econf \
314 + --without-included-libtasn1 \
315 + $(use_enable cxx) \
316 + $(use_enable dane libdane) \
317 + $(multilib_native_enable manpages) \
318 + $(multilib_native_use_enable tools) \
319 + $(multilib_native_use_enable doc) \
320 + $(multilib_native_use_enable doc gtk-doc) \
321 + $(multilib_native_use_enable guile) \
322 + $(multilib_native_use_enable test tests) \
323 + $(multilib_native_use_enable valgrind valgrind-tests) \
324 + $(use_enable nls) \
325 + $(use_enable openssl openssl-compatibility) \
326 + $(use_enable tls-heartbeat heartbeat-support) \
327 + $(use_enable sslv2 ssl2-support) \
328 + $(use_enable sslv3 ssl3-support) \
329 + $(use_enable static-libs static) \
330 + $(use_with pkcs11 p11-kit) \
331 + $(use_with zlib) \
332 + $(use_with idn) \
333 + $(use_with idn libidn2) \
334 + --without-tpm \
335 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
336 + "${libconf[@]}" \
337 + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
338 +}
339 +
340 +multilib_src_install_all() {
341 + einstalldocs
342 + prune_libtool_files --all
343 +
344 + if use examples; then
345 + docinto examples
346 + dodoc doc/examples/*.c
347 + fi
348 +}