1 |
commit: 4a3b80952537bc3267a030086efe34ddaeedcd53 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 13:19:12 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 13:22:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a3b8095 |
7 |
|
8 |
dev-libs/nettle: bump to v3.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-libs/nettle/Manifest | 1 + |
14 |
dev-libs/nettle/nettle-3.6.ebuild | 62 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest |
18 |
index 580f010e062..705ffd20ec5 100644 |
19 |
--- a/dev-libs/nettle/Manifest |
20 |
+++ b/dev-libs/nettle/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST nettle-3.4.1.tar.gz 1947053 BLAKE2B 354318c46c28aeaaca611abe70298024ec12ff70aed53c741e43c1b5373361e5cffb03df7b8e86ef103a3b7770b2b4fe39fbca00b128f2b7ec810b3a4d9fd0fd SHA512 26aefbbe9927e90e28f271e56d2ba876611831222d0e1e1a58bdb75bbd50934fcd84418a4fe47b845f557e60a9786a72a4de2676c930447b104f2256aca7a54f |
23 |
DIST nettle-3.5.1.tar.gz 1989593 BLAKE2B 40e527a4cc541674acc39072f2ebbab4b6ed1b043687d88c776ce9c58374538b111d282e0eea5424059260b0876c5cf01f97470c850e082c167b05a57e6c591a SHA512 f738121b9091cbe79435fb5d46b45cf6f10912320c233829356908127bab1cac6946ca56e022a832380c44f2c10f21d2feef64cb0f4f41e3da4a681dc0131784 |
24 |
+DIST nettle-3.6.tar.gz 2288173 BLAKE2B 45e08832e9c337f10d958956545c77f521b747b8abca56ce40c755adf352bdc2a79584b1e1c0e50f5ede0ac54794aabd6883601c53593b965aada744502789db SHA512 2471af875e51327af61af8bda53cd9c3adc27b6e32592a4b5b10b3ec60999ebf771ab9c54c747b0bade4b3b5a717e77fdbdb53699dd9e8a9ed4eee07f46aed51 |
25 |
|
26 |
diff --git a/dev-libs/nettle/nettle-3.6.ebuild b/dev-libs/nettle/nettle-3.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6131eaec35e |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/nettle/nettle-3.6.ebuild |
31 |
@@ -0,0 +1,62 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools multilib-build multilib-minimal multilib toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Low-level cryptographic library" |
40 |
+HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" |
41 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="|| ( LGPL-3 LGPL-2.1 )" |
44 |
+SLOT="0/7" # subslot = libnettle soname version |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes cpu_flags_x86_sha" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+DEPEND="gmp? ( >=dev-libs/gmp-6.1:0=[static-libs?,${MULTILIB_USEDEP}] )" |
50 |
+RDEPEND="${DEPEND}" |
51 |
+ |
52 |
+MULTILIB_WRAPPED_HEADERS=( |
53 |
+ /usr/include/nettle/version.h |
54 |
+) |
55 |
+ |
56 |
+DOCS=() |
57 |
+HTML_DOCS=() |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ use doc && DOCS+=( |
61 |
+ nettle.pdf |
62 |
+ ) |
63 |
+ use doc && HTML_DOCS+=( |
64 |
+ nettle.html |
65 |
+ ) |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ # I do not see in config.sub reference to sunldsolaris. |
72 |
+ # if someone complains readd |
73 |
+ # -e 's/solaris\*)/sunldsolaris*)/' \ |
74 |
+ sed -e '/CFLAGS=/s: -ggdb3::' \ |
75 |
+ -i configure.ac || die |
76 |
+ |
77 |
+ eautoreconf |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ # --disable-openssl bug #427526 |
82 |
+ ECONF_SOURCE="${S}" econf \ |
83 |
+ $(tc-is-static-only && echo --disable-shared) \ |
84 |
+ $(use_enable cpu_flags_x86_aes x86-aesni) \ |
85 |
+ $(use_enable cpu_flags_x86_sha x86-sha-ni) \ |
86 |
+ $(use_enable doc documentation) \ |
87 |
+ $(use_enable gmp public-key) \ |
88 |
+ $(use_enable neon arm-neon) \ |
89 |
+ $(use_enable static-libs static) \ |
90 |
+ --disable-fat \ |
91 |
+ --disable-openssl \ |
92 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) |
93 |
+} |