1 |
commit: cd7f6673d01d4af7f1bcc9b3ca707b98d679cd5c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 11:39:16 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 12:02:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd7f6673 |
7 |
|
8 |
net-libs/gnutls: add 3.7.3 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/831573 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-libs/gnutls/Manifest | 1 + |
14 |
net-libs/gnutls/gnutls-3.7.3.ebuild | 127 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 128 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest |
18 |
index a6767fb17fee..b3e46a868aac 100644 |
19 |
--- a/net-libs/gnutls/Manifest |
20 |
+++ b/net-libs/gnutls/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST gnutls-3.7.2.tar.xz 6091508 BLAKE2B f408ff65f2e08cf294b449dfac64a272a8ba40e987618960f57ee36c167a25974711ab8d11bdbd6335fbf18ac902a79b5c6b40bb6a37f4ee07549832d0611df2 SHA512 5d01d561a05379da71e4847e30ba13c2abe09f7a5c4359fd539d8bd19abad0ce87120f82ee7b6264e787bd3edbc5ae16beffa892983cbc3d59f11a1811c10329 |
23 |
+DIST gnutls-3.7.3.tar.xz 6119292 BLAKE2B 811e6fbb62fbd35fa63e66cfcbfc3bf899cea5cece1d2a68bc650f507df0f7be9f59c707c90fa19b7ef5a52455a663da49682704e0884af06075c566afbfc0bf SHA512 3ace744affe23e284342658d6d2d2de49dd50065489cbc8be18fc7d38187253e5268ca54027ce5cd517056c249ac039a7481e4548cec04325de37ae85617d077 |
24 |
|
25 |
diff --git a/net-libs/gnutls/gnutls-3.7.3.ebuild b/net-libs/gnutls/gnutls-3.7.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..e4b947e00983 |
28 |
--- /dev/null |
29 |
+++ b/net-libs/gnutls/gnutls-3.7.3.ebuild |
30 |
@@ -0,0 +1,127 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit libtool multilib-minimal |
37 |
+ |
38 |
+DESCRIPTION="A secure communications library implementing the SSL, TLS and DTLS protocols" |
39 |
+HOMEPAGE="https://www.gnutls.org/" |
40 |
+SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz" |
41 |
+ |
42 |
+LICENSE="GPL-3 LGPL-2.1+" |
43 |
+SLOT="0/30" # libgnutls.so number |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
+IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind" |
46 |
+ |
47 |
+REQUIRED_USE=" |
48 |
+ test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}] |
52 |
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}] |
53 |
+ >=dev-libs/nettle-3.6:=[gmp,${MULTILIB_USEDEP}] |
54 |
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}] |
55 |
+ dane? ( >=net-dns/unbound-1.4.20:=[${MULTILIB_USEDEP}] ) |
56 |
+ guile? ( >=dev-scheme/guile-2:=[networking] ) |
57 |
+ nls? ( >=virtual/libintl-0-r1:=[${MULTILIB_USEDEP}] ) |
58 |
+ pkcs11? ( >=app-crypt/p11-kit-0.23.1:=[${MULTILIB_USEDEP}] ) |
59 |
+ idn? ( >=net-dns/libidn2-0.16-r1:=[${MULTILIB_USEDEP}] )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ test? ( |
62 |
+ seccomp? ( sys-libs/libseccomp ) |
63 |
+ )" |
64 |
+BDEPEND=">=virtual/pkgconfig-0-r1 |
65 |
+ doc? ( dev-util/gtk-doc ) |
66 |
+ nls? ( sys-devel/gettext ) |
67 |
+ valgrind? ( dev-util/valgrind ) |
68 |
+ test-full? ( |
69 |
+ app-crypt/dieharder |
70 |
+ >=app-misc/datefudge-1.22 |
71 |
+ dev-libs/softhsm:2[-bindist(-)] |
72 |
+ net-dialup/ppp |
73 |
+ net-misc/socat |
74 |
+ )" |
75 |
+ |
76 |
+DOCS=( |
77 |
+ README.md |
78 |
+ doc/certtool.cfg |
79 |
+) |
80 |
+ |
81 |
+HTML_DOCS=() |
82 |
+ |
83 |
+pkg_setup() { |
84 |
+ # bug #520818 |
85 |
+ export TZ=UTC |
86 |
+ |
87 |
+ use doc && HTML_DOCS+=( |
88 |
+ doc/gnutls.html |
89 |
+ ) |
90 |
+} |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default |
94 |
+ |
95 |
+ # don't try to use system certificate store on macOS, it is |
96 |
+ # confusingly ignoring our ca-certificates and more importantly |
97 |
+ # fails to compile in certain configurations |
98 |
+ sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die |
99 |
+ |
100 |
+ # Use sane .so versioning on FreeBSD. |
101 |
+ elibtoolize |
102 |
+} |
103 |
+ |
104 |
+multilib_src_configure() { |
105 |
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
106 |
+ |
107 |
+ local libconf=() |
108 |
+ |
109 |
+ # TPM needs to be tested before being enabled |
110 |
+ libconf+=( --without-tpm ) |
111 |
+ |
112 |
+ # hardware-accell is disabled on OSX because the asm files force |
113 |
+ # GNU-stack (as doesn't support that) and when that's removed ld |
114 |
+ # complains about duplicate symbols |
115 |
+ [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration ) |
116 |
+ |
117 |
+ # Cygwin as does not understand these asm files at all |
118 |
+ [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration ) |
119 |
+ |
120 |
+ local myeconfargs=( |
121 |
+ $(multilib_native_enable manpages) |
122 |
+ $(multilib_native_use_enable doc gtk-doc) |
123 |
+ $(multilib_native_use_enable doc) |
124 |
+ $(multilib_native_use_enable guile) |
125 |
+ $(multilib_native_use_enable seccomp seccomp-tests) |
126 |
+ $(multilib_native_use_enable test tests) |
127 |
+ $(multilib_native_use_enable test-full full-test-suite) |
128 |
+ $(multilib_native_use_enable tools) |
129 |
+ $(multilib_native_use_enable valgrind valgrind-tests) |
130 |
+ $(use_enable cxx) |
131 |
+ $(use_enable dane libdane) |
132 |
+ $(use_enable nls) |
133 |
+ $(use_enable openssl openssl-compatibility) |
134 |
+ $(use_enable sslv2 ssl2-support) |
135 |
+ $(use_enable sslv3 ssl3-support) |
136 |
+ $(use_enable static-libs static) |
137 |
+ $(use_enable tls-heartbeat heartbeat-support) |
138 |
+ $(use_with idn) |
139 |
+ $(use_with pkcs11 p11-kit) |
140 |
+ --disable-rpath |
141 |
+ --with-default-trust-store-file="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
142 |
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" |
143 |
+ --without-included-libtasn1 |
144 |
+ $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
145 |
+ ) |
146 |
+ ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}" |
147 |
+} |
148 |
+ |
149 |
+multilib_src_install_all() { |
150 |
+ einstalldocs |
151 |
+ find "${ED}" -type f -name '*.la' -delete || die |
152 |
+ |
153 |
+ if use examples; then |
154 |
+ docinto examples |
155 |
+ dodoc doc/examples/*.c |
156 |
+ fi |
157 |
+} |