1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools
8 DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library"
9 HOMEPAGE="https://github.com/jedisct1/libsodium"
10 SRC_URI="http://download.libsodium.org/${PN}/releases/${P}.tar.gz"
14 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
15 IUSE="+asm minimal static-libs +urandom cpu_flags_x86_sse4_1 cpu_flags_x86_aes"
17 PATCHES=( "${FILESDIR}"/${PN}-1.0.10-cpuflags.patch )
27 # --disable-pie needed on x86, bug #512734
28 use x86 && myconf="${myconf} --disable-pie"
32 $(use_enable minimal) \
33 $(use_enable !urandom blocking-random) \
34 $(use_enable static-libs static) \
35 $(use_enable cpu_flags_x86_sse4_1 sse4_1) \
36 $(use_enable cpu_flags_x86_aes aesni) \