commit:     dac93c0e227e6448821617aa2c22ab5598a1de05
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  3 20:44:44 2016 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Wed Feb  3 20:46:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dac93c0e

dev-libs/nettle: version bump

Bug: 573646
Thanks: polynomial-c

Package-Manager: portage-2.2.26

 dev-libs/nettle/Manifest          |  1 +
 dev-libs/nettle/nettle-3.2.ebuild | 63 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest
index 84490bf..0cf2c00 100644
--- a/dev-libs/nettle/Manifest
+++ b/dev-libs/nettle/Manifest
@@ -1 +1,2 @@
 DIST nettle-3.1.1.tar.gz 1851876 SHA256 
5fd4d25d64d8ddcb85d0d897572af73b05b4d163c6cc49438a5bfbb8ff293d4c SHA512 
b0a52e1569ff11d871165a689fdc2a0b2f478bcc3122f39df9751b7b1c915d4240ec57d22e98034cf2b5130dddcf5dc57fe26278a2f41c15f669f65814768de1
 WHIRLPOOL 
8a429cd860ff717c225fbd576f6bcfc2c33809df5c346e3ced9fd75f89e0895f200ffbd0bec84bd74144e397d16d1f9ba56131c29a3d65cbc4189ef3dfd5fb99
+DIST nettle-3.2.tar.gz 1879604 SHA256 
ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97 SHA512 
9f2c802e8b683d1c2fd8d16ab33b2a1efda33a1bf33196be39031a2d0677f2e78d67221a718997780e157aa72973da7d9d549429e706fcfcdff97ee3bbef615a
 WHIRLPOOL 
0353f04760137eef292848b4d8060c40cf2959596aff6f39a1d1bd123e42bc0ecb6f01679f16797204eedb01123c09ae7745121241f6a32cc205bf1c8c6efc12

diff --git a/dev-libs/nettle/nettle-3.2.ebuild 
b/dev-libs/nettle/nettle-3.2.ebuild
new file mode 100644
index 0000000..21a6504
--- /dev/null
+++ b/dev-libs/nettle/nettle-3.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils multilib-build multilib-minimal multilib 
toolchain-funcs
+
+DESCRIPTION="Low-level cryptographic library"
+HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/";
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( LGPL-3 LGPL-2.1 )"
+SLOT="0/6" # subslot = libnettle soname version
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
+IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes"
+
+DEPEND="gmp? ( dev-libs/gmp:0[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}
+       abi_x86_32? (
+               !<=app-emulation/emul-linux-x86-baselibs-20131008-r17
+               !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+       )"
+
+MULTILIB_WRAPPED_HEADERS=(
+       /usr/include/nettle/nettle-stdint.h
+       /usr/include/nettle/version.h
+)
+
+src_prepare() {
+       default
+
+       sed -e '/CFLAGS=/s: -ggdb3::' \
+               -e 's/solaris\*)/sunldsolaris*)/' \
+               -i configure.ac || die
+
+       # conditionally build tests and examples required by tests
+       use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
+
+       eautoreconf
+}
+
+multilib_src_configure() {
+       # --disable-openssl bug #427526
+       ECONF_SOURCE="${S}" econf \
+               --libdir="${EPREFIX}"/usr/$(get_libdir) \
+               --disable-openssl \
+               --disable-fat \
+               $(use_enable gmp public-key) \
+               $(use_enable static-libs static) \
+               $(tc-is-static-only && echo --disable-shared) \
+               $(use_enable doc documentation) \
+               $(use_enable neon arm-neon) \
+               $(use_enable cpu_flags_x86_aes x86-aesni)
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       if use doc ; then
+               dohtml nettle.html
+               dodoc nettle.pdf
+       fi
+}

Reply via email to