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: dev-libs/nettle/
Date: Wed, 05 Dec 2018 09:27:35
Message-Id: 1544002026.01a877edbdff8ce61922a66017e24268c04dc250.alonbl@gentoo
1 commit: 01a877edbdff8ce61922a66017e24268c04dc250
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 5 09:27:06 2018 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 5 09:27:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01a877ed
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.51, Repoman-2.3.11
12
13 dev-libs/nettle/Manifest | 1 +
14 dev-libs/nettle/nettle-3.4.1.ebuild | 62 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest
18 index a6f524c73a2..24e18b9a432 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.4.tar.gz 1935069 BLAKE2B b73c88236c8233360607a6ed65cd4f6d19bfbbf683b46149326ce3440bf0a42b8add69de5c64145720163b1095fdab3cb8bf410c2ef727d0ea4fb58391ff0f14 SHA512 3bea3aabd2c99cc42d084a94fd6b0b5dbdb24cd6c7020271a6ee87a81a904b21b21756f590cb1afdf2e85fd1cb59e5c3651c5c4032e30204e7ea6f8801d1ea3b
24
25 diff --git a/dev-libs/nettle/nettle-3.4.1.ebuild b/dev-libs/nettle/nettle-3.4.1.ebuild
26 new file mode 100644
27 index 00000000000..bcd2711cdab
28 --- /dev/null
29 +++ b/dev-libs/nettle/nettle-3.4.1.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2018 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/6.2" # subslot = libnettle soname version, .2 as broke ABI bug#601512 then fixed
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~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=[${MULTILIB_USEDEP}] )"
48 +RDEPEND="${DEPEND}"
49 +
50 +MULTILIB_WRAPPED_HEADERS=(
51 + /usr/include/nettle/nettle-stdint.h
52 + /usr/include/nettle/version.h
53 +)
54 +
55 +DOCS=()
56 +HTML_DOCS=()
57 +
58 +pkg_setup() {
59 + use doc && DOCS+=(
60 + nettle.pdf
61 + )
62 + use doc && HTML_DOCS+=(
63 + nettle.html
64 + )
65 +}
66 +
67 +src_prepare() {
68 + default
69 +
70 + sed -e '/CFLAGS=/s: -ggdb3::' \
71 + -e 's/solaris\*)/sunldsolaris*)/' \
72 + -i configure.ac || die
73 +
74 + # conditionally build tests and examples required by tests
75 + use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
76 +
77 + eautoreconf
78 +}
79 +
80 +multilib_src_configure() {
81 + # --disable-openssl bug #427526
82 + ECONF_SOURCE="${S}" econf \
83 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
84 + --disable-openssl \
85 + --disable-fat \
86 + $(use_enable gmp public-key) \
87 + $(use_enable static-libs static) \
88 + $(tc-is-static-only && echo --disable-shared) \
89 + $(use_enable doc documentation) \
90 + $(use_enable neon arm-neon) \
91 + $(use_enable cpu_flags_x86_aes x86-aesni)
92 +}