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: Mon, 11 Dec 2017 16:35:49
Message-Id: 1513010137.fd260f28a07b3a7c5c86e538fa46dded3454747e.alonbl@gentoo
1 commit: fd260f28a07b3a7c5c86e538fa46dded3454747e
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 11 16:34:17 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 11 16:35:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd260f28
7
8 dev-libs/nettle: version bump
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=640704
11 Package-Manager: Portage-2.3.13, Repoman-2.3.3
12
13 dev-libs/nettle/Manifest | 1 +
14 dev-libs/nettle/nettle-3.4.ebuild | 68 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 69 insertions(+)
16
17 diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest
18 index 05a136ab7e7..2dbf9cd3960 100644
19 --- a/dev-libs/nettle/Manifest
20 +++ b/dev-libs/nettle/Manifest
21 @@ -1 +1,2 @@
22 DIST nettle-3.3.tar.gz 1887927 BLAKE2B 4bcf3c4bfb9f9dae97ea6780d146f3313e8b51182d9942e69581428d9f602d16467d37f993700a4e94e2e0dee17bdf354694c94d0383164c3de6e57e7e24de4e SHA512 271981d89766f151af3cdc4e5fc43c438222f0f6f44475bad114f4209955b5235fced6526c7abca001cca223e8cfcd2a6bf389b160b305a499e7acf52425ec70
23 +DIST nettle-3.4.tar.gz 1935069 BLAKE2B b73c88236c8233360607a6ed65cd4f6d19bfbbf683b46149326ce3440bf0a42b8add69de5c64145720163b1095fdab3cb8bf410c2ef727d0ea4fb58391ff0f14 SHA512 3bea3aabd2c99cc42d084a94fd6b0b5dbdb24cd6c7020271a6ee87a81a904b21b21756f590cb1afdf2e85fd1cb59e5c3651c5c4032e30204e7ea6f8801d1ea3b
24
25 diff --git a/dev-libs/nettle/nettle-3.4.ebuild b/dev-libs/nettle/nettle-3.4.ebuild
26 new file mode 100644
27 index 00000000000..928df904819
28 --- /dev/null
29 +++ b/dev-libs/nettle/nettle-3.4.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
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="https://www.lysator.liu.se/~nisse/archive/${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=""
45 +IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes"
46 +
47 +DEPEND="gmp? ( >=dev-libs/gmp-5.0:0=[${MULTILIB_USEDEP}] )"
48 +RDEPEND="${DEPEND}
49 + abi_x86_32? (
50 + !<=app-emulation/emul-linux-x86-baselibs-20131008-r17
51 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
52 + )"
53 +
54 +MULTILIB_WRAPPED_HEADERS=(
55 + /usr/include/nettle/nettle-stdint.h
56 + /usr/include/nettle/version.h
57 +)
58 +
59 +DOCS=()
60 +HTML_DOCS=()
61 +
62 +S="${WORKDIR}/${PN}-3.4"
63 +
64 +pkg_setup() {
65 + use doc && DOCS+=(
66 + nettle.pdf
67 + )
68 + use doc && HTML_DOCS+=(
69 + nettle.html
70 + )
71 +}
72 +
73 +src_prepare() {
74 + default
75 +
76 + sed -e '/CFLAGS=/s: -ggdb3::' \
77 + -e 's/solaris\*)/sunldsolaris*)/' \
78 + -i configure.ac || die
79 +
80 + # conditionally build tests and examples required by tests
81 + use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
82 +
83 + eautoreconf
84 +}
85 +
86 +multilib_src_configure() {
87 + # --disable-openssl bug #427526
88 + ECONF_SOURCE="${S}" econf \
89 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
90 + --disable-openssl \
91 + --disable-fat \
92 + $(use_enable gmp public-key) \
93 + $(use_enable static-libs static) \
94 + $(tc-is-static-only && echo --disable-shared) \
95 + $(use_enable doc documentation) \
96 + $(use_enable neon arm-neon) \
97 + $(use_enable cpu_flags_x86_aes x86-aesni)
98 +}