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/, net-libs/gnutls/files/
Date: Sat, 19 Dec 2015 11:28:03
Message-Id: 1450524388.0aa72a1fa56ba00946438ae38fba467fcc277e36.alonbl@gentoo
1 commit: 0aa72a1fa56ba00946438ae38fba467fcc277e36
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 19 11:13:01 2015 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 19 11:26:28 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa72a1f
7
8 net-libs/gnutls - install man(1)
9
10 Bug: 568534
11
12 Package-Manager: portage-2.2.24
13
14 ...ow-installing-man-1-even-with-disable-doc.patch | 94 +++++++++++
15 ...ow-installing-man-1-even-with-disable-doc.patch | 96 +++++++++++
16 net-libs/gnutls/gnutls-3.3.19-r1.ebuild | 177 +++++++++++++++++++++
17 net-libs/gnutls/gnutls-3.4.7-r1.ebuild | 135 ++++++++++++++++
18 4 files changed, 502 insertions(+)
19
20 diff --git a/net-libs/gnutls/files/gnutls-3.3.19-build-allow-installing-man-1-even-with-disable-doc.patch b/net-libs/gnutls/files/gnutls-3.3.19-build-allow-installing-man-1-even-with-disable-doc.patch
21 new file mode 100644
22 index 0000000..dda8bfc
23 --- /dev/null
24 +++ b/net-libs/gnutls/files/gnutls-3.3.19-build-allow-installing-man-1-even-with-disable-doc.patch
25 @@ -0,0 +1,94 @@
26 +From 0f230c6375fd3680837d98f20ee3862e9041af3d Mon Sep 17 00:00:00 2001
27 +From: Alon Bar-Lev <alon.barlev@×××××.com>
28 +Date: Fri, 18 Dec 2015 12:14:08 +0200
29 +Subject: [PATCH] build: allow installing man(1) even with --disable-doc
30 +
31 +Currently these man pages are installed only if --enable-doc
32 +is provided, while these are not actually docs, do not require any
33 +special dependency, nor consume large space.
34 +
35 +This adds --enable-manpages to enable/disable manpages installation, and
36 +install the man(1) regardless of --disable-doc.
37 +
38 +Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
39 +Signed-off-by: Nikos Mavrogiannopoulos <nmav@××××××.com>
40 +
41 +---
42 + Makefile.am | 3 +++
43 + configure.ac | 10 ++++++++++
44 + doc/Makefile.am | 2 +-
45 + doc/manpages/Makefile.am | 2 ++
46 + 5 files changed, 17 insertions(+), 1 deletion(-)
47 +
48 +diff --git a/Makefile.am b/Makefile.am
49 +index d446711..6e19f26 100644
50 +--- a/Makefile.am
51 ++++ b/Makefile.am
52 +@@ -28,6 +28,9 @@ SUBDIRS += libdane
53 + endif
54 +
55 + SUBDIRS += po src
56 ++if ENABLE_MANPAGES
57 ++SUBDIRS += doc/manpages
58 ++endif
59 + if ENABLE_DOC
60 + SUBDIRS += doc
61 + endif
62 +diff --git a/configure.ac b/configure.ac
63 +index c7a83b8..d161c05 100644
64 +--- a/configure.ac
65 ++++ b/configure.ac
66 +@@ -152,6 +152,15 @@ AC_ARG_ENABLE(doc,
67 + enable_doc=$enableval, enable_doc=yes)
68 + AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
69 +
70 ++AC_ARG_ENABLE(manpages,
71 ++ AS_HELP_STRING([--enable-manpages], [install manpages even if disable-doc is given]),
72 ++ enable_manpages=$enableval,enable_manpages=auto)
73 ++
74 ++if test "${enable_manpages}" = "auto";then
75 ++ enable_manpages="${enable_doc}"
76 ++fi
77 ++AM_CONDITIONAL(ENABLE_MANPAGES, test "$enable_manpages" != "no")
78 ++
79 + AC_ARG_ENABLE(tests,
80 + AS_HELP_STRING([--disable-tests], [don't compile or run any tests]),
81 + enable_tests=$enableval, enable_tests=yes)
82 +@@ -838,6 +847,7 @@ AC_MSG_NOTICE([summary of build options:
83 + Local libtasn1: ${included_libtasn1}
84 + Use nettle-mini: ${mini_nettle}
85 + nettle-version: ${nettle_version}
86 ++ Documentation: ${enable_doc} (manpages: ${enable_manpages})
87 + ])
88 +
89 + AC_MSG_NOTICE([External hardware support:
90 +diff --git a/doc/Makefile.am b/doc/Makefile.am
91 +index d9b4022..492a74a 100644
92 +--- a/doc/Makefile.am
93 ++++ b/doc/Makefile.am
94 +@@ -24,7 +24,7 @@ EXTRA_DIST = TODO certtool.cfg gnutls.pdf gnutls.html \
95 + gnutls-guile.pdf gnutls-guile.html stamp_enums stamp_functions \
96 + doc.mk
97 +
98 +-SUBDIRS = examples cyclo scripts manpages credentials latex
99 ++SUBDIRS = examples cyclo scripts credentials latex
100 + if ENABLE_GTK_DOC
101 + SUBDIRS += reference
102 + endif
103 +diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
104 +index 6d16787..2840197 100644
105 +--- a/doc/manpages/Makefile.am
106 ++++ b/doc/manpages/Makefile.am
107 +@@ -1053,7 +1053,9 @@ APIMANS += gnutls_x509_trust_list_verify_crt.3
108 + APIMANS += gnutls_x509_trust_list_verify_crt2.3
109 + APIMANS += gnutls_x509_trust_list_verify_named_crt.3
110 +
111 ++if ENABLE_DOC
112 + dist_man_MANS += $(APIMANS)
113 ++endif
114 +
115 + $(APIMANS): stamp_mans
116 +
117 +--
118 +2.4.10
119 +
120
121 diff --git a/net-libs/gnutls/files/gnutls-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch b/net-libs/gnutls/files/gnutls-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch
122 new file mode 100644
123 index 0000000..cf108f0
124 --- /dev/null
125 +++ b/net-libs/gnutls/files/gnutls-3.4.7-build-allow-installing-man-1-even-with-disable-doc.patch
126 @@ -0,0 +1,96 @@
127 +From 86f039f8c78f87edd6346265010abc679d9283a9 Mon Sep 17 00:00:00 2001
128 +From: Alon Bar-Lev <alon.barlev@×××××.com>
129 +Date: Fri, 18 Dec 2015 12:14:08 +0200
130 +Subject: [PATCH] build: allow installing man(1) even with --disable-doc
131 +
132 +Currently these man pages are installed only if --enable-doc
133 +is provided, while these are not actually docs, do not require any
134 +special dependency, nor consume large space.
135 +
136 +This adds --enable-manpages to enable/disable manpages installation, and
137 +install the man(1) regardless of --disable-doc.
138 +
139 +Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
140 +Signed-off-by: Nikos Mavrogiannopoulos <nmav@××××××.com>
141 +
142 +---
143 + Makefile.am | 4 ++++
144 + configure.ac | 11 +++++++++++
145 + doc/Makefile.am | 2 +-
146 + doc/manpages/Makefile.am | 2 ++
147 + 5 files changed, 19 insertions(+), 1 deletion(-)
148 +
149 +diff --git a/Makefile.am b/Makefile.am
150 +index 19fcb90..b94af06 100644
151 +--- a/Makefile.am
152 ++++ b/Makefile.am
153 +@@ -42,6 +42,10 @@ if HAVE_GUILE
154 + SUBDIRS += guile
155 + endif
156 +
157 ++if ENABLE_MANPAGES
158 ++SUBDIRS += doc/manpages
159 ++endif
160 ++
161 + if ENABLE_DOC
162 + SUBDIRS += doc
163 + endif
164 +diff --git a/configure.ac b/configure.ac
165 +index e634236..0b1625b 100644
166 +--- a/configure.ac
167 ++++ b/configure.ac
168 +@@ -51,6 +51,16 @@ AC_ARG_ENABLE(doc,
169 + enable_doc=$enableval, enable_doc=yes)
170 + AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
171 +
172 ++AC_ARG_ENABLE(manpages,
173 ++ AS_HELP_STRING([--enable-manpages], [install manpages even if disable-doc is given]),
174 ++ enable_manpages=$enableval,enable_manpages=auto)
175 ++
176 ++if test "${enable_manpages}" = "auto";then
177 ++ enable_manpages="${enable_doc}"
178 ++fi
179 ++
180 ++AM_CONDITIONAL(ENABLE_MANPAGES, test "$enable_manpages" != "no")
181 ++
182 + AC_ARG_ENABLE(tools,
183 + AS_HELP_STRING([--disable-tools], [don't compile any tools]),
184 + enable_tools=$enableval, enable_tools=yes)
185 +@@ -920,6 +930,7 @@ AC_MSG_NOTICE([summary of build options:
186 + Local libopts: ${included_libopts}
187 + Local libtasn1: ${included_libtasn1}
188 + Use nettle-mini: ${mini_nettle}
189 ++ Documentation: ${enable_doc} (manpages: ${enable_manpages})
190 + ])
191 +
192 + AC_MSG_NOTICE([External hardware support:
193 +diff --git a/doc/Makefile.am b/doc/Makefile.am
194 +index 1e99dd0..05c2188 100644
195 +--- a/doc/Makefile.am
196 ++++ b/doc/Makefile.am
197 +@@ -24,7 +24,7 @@ EXTRA_DIST = TODO certtool.cfg gnutls.pdf gnutls.html \
198 + gnutls-guile.pdf gnutls-guile.html stamp_enums stamp_functions \
199 + doc.mk
200 +
201 +-SUBDIRS = examples cyclo scripts manpages credentials latex
202 ++SUBDIRS = examples cyclo scripts credentials latex
203 + if ENABLE_GTK_DOC
204 + SUBDIRS += reference
205 + endif
206 +diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
207 +index 8a1613d..10365a9 100644
208 +--- a/doc/manpages/Makefile.am
209 ++++ b/doc/manpages/Makefile.am
210 +@@ -1127,7 +1127,9 @@ APIMANS += gnutls_x509_trust_list_verify_crt.3
211 + APIMANS += gnutls_x509_trust_list_verify_crt2.3
212 + APIMANS += gnutls_x509_trust_list_verify_named_crt.3
213 +
214 ++if ENABLE_DOC
215 + dist_man_MANS += $(APIMANS)
216 ++endif
217 +
218 + $(APIMANS): stamp_mans
219 +
220 +--
221 +2.4.10
222 +
223
224 diff --git a/net-libs/gnutls/gnutls-3.3.19-r1.ebuild b/net-libs/gnutls/gnutls-3.3.19-r1.ebuild
225 new file mode 100644
226 index 0000000..c26d74c
227 --- /dev/null
228 +++ b/net-libs/gnutls/gnutls-3.3.19-r1.ebuild
229 @@ -0,0 +1,177 @@
230 +# Copyright 1999-2015 Gentoo Foundation
231 +# Distributed under the terms of the GNU General Public License v2
232 +# $Id$
233 +
234 +EAPI=5
235 +
236 +inherit autotools libtool eutils multilib-minimal versionator
237 +
238 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
239 +HOMEPAGE="http://www.gnutls.org/"
240 +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
241 +
242 +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library.
243 +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled.
244 +LICENSE="GPL-3 LGPL-3"
245 +SLOT="0"
246 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
247 +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
248 +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}"
249 +# heartbeat support is not disabled until re-licensing happens fullyf
250 +
251 +# NOTICE: sys-devel/autogen is required at runtime as we
252 +# use system libopts
253 +RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}]
254 + >=dev-libs/nettle-2.7:=[gmp,${MULTILIB_USEDEP}]
255 + >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]
256 + sys-devel/autogen
257 + crywrap? ( net-dns/libidn )
258 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
259 + guile? ( >=dev-scheme/guile-1.8:*[networking] )
260 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
261 + pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] )
262 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
263 + abi_x86_32? (
264 + !<=app-emulation/emul-linux-x86-baselibs-20140508
265 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
266 + )"
267 +DEPEND="${RDEPEND}
268 + >=sys-devel/automake-1.11.6
269 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
270 + doc? (
271 + sys-apps/texinfo
272 + dev-util/gtk-doc
273 + )
274 + nls? ( sys-devel/gettext )
275 + test? ( app-misc/datefudge )"
276 +
277 +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
278 +
279 +pkg_setup() {
280 + # bug#520818
281 + export TZ=UTC
282 +}
283 +
284 +src_prepare() {
285 + epatch "${FILESDIR}/${P}-build-allow-installing-man-1-even-with-disable-doc.patch"
286 +
287 + sed -i \
288 + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
289 + doc/Makefile.am || die
290 +
291 + # force regeneration of autogen-ed files
292 + local file
293 + for file in $(grep -l AutoGen-ed src/*.c) ; do
294 + rm src/$(basename ${file} .c).{c,h} || die
295 + done
296 +
297 + # force regeneration of makeinfo files
298 + # have no idea why on some system these files are not
299 + # accepted as-is, see bug#520818
300 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
301 + rm "${file}" || die
302 + done
303 +
304 + # support user patches
305 + epatch_user
306 +
307 + eautoreconf
308 +
309 + # Use sane .so versioning on FreeBSD.
310 + elibtoolize
311 +
312 + # bug 497472
313 + use cxx || epunt_cxx
314 +}
315 +
316 +multilib_src_configure() {
317 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
318 +
319 + # TPM needs to be tested before being enabled
320 + # hardware-accell is disabled on OSX because the asm files force
321 + # GNU-stack (as doesn't support that) and when that's removed ld
322 + # complains about duplicate symbols
323 + ECONF_SOURCE=${S} \
324 + econf \
325 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
326 + --disable-valgrind-tests \
327 + --without-included-libtasn1 \
328 + --enable-heartbeat-support \
329 + $(use_enable cxx) \
330 + $(use_enable dane libdane) \
331 + $(multilib_native_enable manpages) \
332 + $(multilib_native_use_enable doc) \
333 + $(multilib_native_use_enable doc gtk-doc) \
334 + $(multilib_native_use_enable guile) \
335 + $(multilib_native_use_enable crywrap) \
336 + $(use_enable nls) \
337 + $(use_enable openssl openssl-compatibility) \
338 + $(use_enable static-libs static) \
339 + $(use_with pkcs11 p11-kit) \
340 + $(use_with zlib) \
341 + --without-tpm \
342 + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
343 + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
344 +
345 + if multilib_is_native_abi; then
346 + ln -s "${S}"/doc/reference/html doc/reference/html || die
347 + fi
348 +}
349 +
350 +multilib_src_compile() {
351 + if multilib_is_native_abi; then
352 + default
353 +
354 + # symlink certtool for use in other ABIs
355 + if use test; then
356 + ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die
357 + fi
358 + else
359 + emake -C gl
360 + emake -C lib
361 + emake -C extra
362 + use dane && emake -C libdane
363 + fi
364 +}
365 +
366 +multilib_src_test() {
367 + if multilib_is_native_abi; then
368 + # parallel testing often fails
369 + emake -j1 check
370 + else
371 + # use native ABI tools
372 + ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \
373 + "${BUILD_DIR}"/src/ || die
374 +
375 + emake -C gl -j1 check
376 + emake -C tests -j1 check
377 + fi
378 +}
379 +
380 +multilib_src_install() {
381 + if multilib_is_native_abi; then
382 + emake DESTDIR="${D}" install
383 + else
384 + emake -C lib DESTDIR="${D}" install
385 + emake -C extra DESTDIR="${D}" install
386 + use dane && emake -C libdane DESTDIR="${D}" install
387 + fi
388 +}
389 +
390 +multilib_src_install_all() {
391 + einstalldocs
392 + prune_libtool_files --all
393 +
394 + dodoc doc/certtool.cfg
395 +
396 + if use doc; then
397 + dohtml doc/gnutls.html
398 + else
399 + rm -fr "${ED}/usr/share/doc/${PF}/html"
400 + fi
401 +
402 + if use examples; then
403 + docinto examples
404 + dodoc doc/examples/*.c
405 + fi
406 +}
407
408 diff --git a/net-libs/gnutls/gnutls-3.4.7-r1.ebuild b/net-libs/gnutls/gnutls-3.4.7-r1.ebuild
409 new file mode 100644
410 index 0000000..89d3fc4
411 --- /dev/null
412 +++ b/net-libs/gnutls/gnutls-3.4.7-r1.ebuild
413 @@ -0,0 +1,135 @@
414 +# Copyright 1999-2015 Gentoo Foundation
415 +# Distributed under the terms of the GNU General Public License v2
416 +# $Id$
417 +
418 +EAPI=5
419 +
420 +inherit autotools libtool eutils multilib-minimal versionator
421 +
422 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
423 +HOMEPAGE="http://www.gnutls.org/"
424 +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz"
425 +
426 +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library.
427 +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled.
428 +LICENSE="GPL-3 LGPL-3"
429 +SLOT="0/30" # libgnutls.so number
430 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
431 +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
432 +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tools zlib ${IUSE_LINGUAS// / linguas_}"
433 +# heartbeat support is not disabled until re-licensing happens fullyf
434 +
435 +# NOTICE: sys-devel/autogen is required at runtime as we
436 +# use system libopts
437 +RDEPEND=">=dev-libs/libtasn1-4.3[${MULTILIB_USEDEP}]
438 + >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
439 + >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]
440 + tools? ( sys-devel/autogen )
441 + crywrap? ( net-dns/libidn )
442 + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] )
443 + guile? ( >=dev-scheme/guile-1.8:*[networking] )
444 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
445 + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] )
446 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
447 + abi_x86_32? (
448 + !<=app-emulation/emul-linux-x86-baselibs-20140508
449 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
450 + )"
451 +DEPEND="${RDEPEND}
452 + >=sys-devel/automake-1.11.6
453 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
454 + doc? (
455 + sys-apps/texinfo
456 + dev-util/gtk-doc
457 + )
458 + nls? ( sys-devel/gettext )
459 + test? ( app-misc/datefudge )"
460 +
461 +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
462 +
463 +pkg_setup() {
464 + # bug#520818
465 + export TZ=UTC
466 +}
467 +
468 +src_prepare() {
469 + epatch "${FILESDIR}/${P}-build-allow-installing-man-1-even-with-disable-doc.patch"
470 +
471 + sed -i \
472 + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \
473 + doc/Makefile.am || die
474 +
475 + # force regeneration of autogen-ed files
476 + local file
477 + for file in $(grep -l AutoGen-ed src/*.c) ; do
478 + rm src/$(basename ${file} .c).{c,h} || die
479 + done
480 +
481 + # force regeneration of makeinfo files
482 + # have no idea why on some system these files are not
483 + # accepted as-is, see bug#520818
484 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do
485 + rm "${file}" || die
486 + done
487 +
488 + # support user patches
489 + epatch_user
490 +
491 + eautoreconf
492 +
493 + # Use sane .so versioning on FreeBSD.
494 + elibtoolize
495 +
496 + # bug 497472
497 + use cxx || epunt_cxx
498 +}
499 +
500 +multilib_src_configure() {
501 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
502 +
503 + # TPM needs to be tested before being enabled
504 + # hardware-accell is disabled on OSX because the asm files force
505 + # GNU-stack (as doesn't support that) and when that's removed ld
506 + # complains about duplicate symbols
507 + ECONF_SOURCE=${S} \
508 + econf \
509 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
510 + --disable-valgrind-tests \
511 + --without-included-libtasn1 \
512 + --enable-heartbeat-support \
513 + $(use_enable cxx) \
514 + $(use_enable dane libdane) \
515 + $(multilib_native_enable manpages) \
516 + $(multilib_native_use_enable tools) \
517 + $(multilib_native_use_enable doc) \
518 + $(multilib_native_use_enable doc gtk-doc) \
519 + $(multilib_native_use_enable guile) \
520 + $(multilib_native_use_enable crywrap) \
521 + $(multilib_native_use_enable test tests) \
522 + $(use_enable nls) \
523 + $(use_enable openssl openssl-compatibility) \
524 + $(use_enable static-libs static) \
525 + $(use_with pkcs11 p11-kit) \
526 + $(use_with zlib) \
527 + --without-tpm \
528 + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \
529 + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
530 +}
531 +
532 +multilib_src_install_all() {
533 + einstalldocs
534 + prune_libtool_files --all
535 +
536 + dodoc doc/certtool.cfg
537 +
538 + if use doc; then
539 + dohtml doc/gnutls.html
540 + else
541 + rm -fr "${ED}/usr/share/doc/${PF}/html"
542 + fi
543 +
544 + if use examples; then
545 + docinto examples
546 + dodoc doc/examples/*.c
547 + fi
548 +}