1 |
commit: 72815a827be40ed89f738b6edc2d7aa4844a9bf7 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 26 07:40:30 2019 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 26 07:43:59 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72815a82 |
7 |
|
8 |
dev-libs/nettle: version bump |
9 |
|
10 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
dev-libs/nettle/Manifest | 1 + |
14 |
dev-libs/nettle/nettle-3.5.ebuild | 60 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest |
18 |
index 725cd7de0f0..744d6c2368c 100644 |
19 |
--- a/dev-libs/nettle/Manifest |
20 |
+++ b/dev-libs/nettle/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST nettle-3.4.1.tar.gz 1947053 BLAKE2B 354318c46c28aeaaca611abe70298024ec12ff70aed53c741e43c1b5373361e5cffb03df7b8e86ef103a3b7770b2b4fe39fbca00b128f2b7ec810b3a4d9fd0fd SHA512 26aefbbe9927e90e28f271e56d2ba876611831222d0e1e1a58bdb75bbd50934fcd84418a4fe47b845f557e60a9786a72a4de2676c930447b104f2256aca7a54f |
23 |
+DIST nettle-3.5.tar.gz 1989543 BLAKE2B db2a4c8deed2e99e746c702cc686385fc1ae87aab67d94ca67a4d9dfea4e10990f2a3fed81010c78364271c8a08e2208e5a479298ab5e9bc10a5c676fe7a3cbc SHA512 0aaac4b678fede9f462e0c71e5926b02e82aa7a54b15ab34d159315a36b99bd8f17c3ad89a1ffae7bc8333668fe9793c041637ffe8000175bb20b14047bef907 |
24 |
|
25 |
diff --git a/dev-libs/nettle/nettle-3.5.ebuild b/dev-libs/nettle/nettle-3.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8d7bd37af23 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/nettle/nettle-3.5.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools multilib-build multilib-minimal multilib toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Low-level cryptographic library" |
39 |
+HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" |
40 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="|| ( LGPL-3 LGPL-2.1 )" |
43 |
+SLOT="0/7" # subslot = libnettle soname version |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
+IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes" |
46 |
+ |
47 |
+DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+MULTILIB_WRAPPED_HEADERS=( |
51 |
+ /usr/include/nettle/version.h |
52 |
+) |
53 |
+ |
54 |
+DOCS=() |
55 |
+HTML_DOCS=() |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ use doc && DOCS+=( |
59 |
+ nettle.pdf |
60 |
+ ) |
61 |
+ use doc && HTML_DOCS+=( |
62 |
+ nettle.html |
63 |
+ ) |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ sed -e '/CFLAGS=/s: -ggdb3::' \ |
70 |
+ -e 's/solaris\*)/sunldsolaris*)/' \ |
71 |
+ -i configure.ac || die |
72 |
+ |
73 |
+ # conditionally build tests and examples required by tests |
74 |
+ use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die |
75 |
+ |
76 |
+ eautoreconf |
77 |
+} |
78 |
+ |
79 |
+multilib_src_configure() { |
80 |
+ # --disable-openssl bug #427526 |
81 |
+ ECONF_SOURCE="${S}" econf \ |
82 |
+ $(tc-is-static-only && echo --disable-shared) \ |
83 |
+ $(use_enable cpu_flags_x86_aes x86-aesni) \ |
84 |
+ $(use_enable doc documentation) \ |
85 |
+ $(use_enable gmp public-key) \ |
86 |
+ $(use_enable neon arm-neon) \ |
87 |
+ $(use_enable static-libs static) \ |
88 |
+ --disable-fat \ |
89 |
+ --disable-openssl |
90 |
+} |