Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libsodium/
Date: Mon, 07 Jan 2019 23:48:40
Message-Id: 1546904910.a859164baaf004448068f74b990565620537b9a6.polynomial-c@gentoo
1 commit: a859164baaf004448068f74b990565620537b9a6
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 7 23:46:19 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 7 23:48:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a859164b
7
8 dev-libs/libsodium: Bump to version 1.0.17
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libsodium/Manifest | 1 +
14 dev-libs/libsodium/libsodium-1.0.17.ebuild | 45 ++++++++++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/dev-libs/libsodium/Manifest b/dev-libs/libsodium/Manifest
18 index fb94526e0e5..bc9cb8f0dd0 100644
19 --- a/dev-libs/libsodium/Manifest
20 +++ b/dev-libs/libsodium/Manifest
21 @@ -2,3 +2,4 @@ DIST libsodium-1.0.11.tar.gz 1846782 BLAKE2B aadab6c89d11740dca72d7686d06cfeca6c
22 DIST libsodium-1.0.14.tar.gz 1876526 BLAKE2B 37e9b785cc397f58ab07e38eef9e6f3ed8a2dbfbfd1c865b64d8d9b9440db3f8aa32671065cebf4f73d449889e7abfacf63910add08f0e27582cd6fb32bfbacd SHA512 46663b05aab13ec4003ecc32c89bdaedf60824703be522661eeaa3db8013140bda434c19a759dc38bcbce757e9673a03e701c0eac1526a31a4b7a15608ae8696
23 DIST libsodium-1.0.15.tar.gz 1866057 BLAKE2B 220e327f7803c6cf0b1260b313a225d7cc7a965b36920c744379c5939643e588687032478e3d7a79b4614c5fa57b0dd2afd216b2e23ca69ad16ea67764a840ca SHA512 299a208f8342793d13498e95b23f1749f5b5b13ec276db3ec401130615e837ef475b6a1283b6e87a5f8227d23e70e38ca721073dadd5dc88fe4aff342aa64adc
24 DIST libsodium-1.0.16.tar.gz 1910835 BLAKE2B d0d83730cfdb64a928c4597a3bcf4ae179d74bb9f850364bf0670547a12842009c0ca32d36d06053906fb649497406b1d7988e167772d5f1138d23798d8775f7 SHA512 eab917d599c9c1fe971a6ecf915b9a6476ccec2d46cf23cbfbf06dd3833089b422f192de4d55f17b93362f1251ba8d5ddeb95ced1a422a3a2631b4b82553907f
25 +DIST libsodium-1.0.17.tar.gz 1911910 BLAKE2B 488079599f8448a75ac60b955bddc2a284bc09307ef6c3d1e12fef6316d3ddc354b0b60756487311ea8b50920009394e749ba0f6f159542716e0e864fc80646c SHA512 7cc9e4f11e656008ce9dff735acea95acbcb91ae4936de4d26f7798093766a77c373e9bd4a7b45b60ef8a11de6c55bc8dcac13bebf8c23c671d0536430501da1
26
27 diff --git a/dev-libs/libsodium/libsodium-1.0.17.ebuild b/dev-libs/libsodium/libsodium-1.0.17.ebuild
28 new file mode 100644
29 index 00000000000..dcfe073f575
30 --- /dev/null
31 +++ b/dev-libs/libsodium/libsodium-1.0.17.ebuild
32 @@ -0,0 +1,45 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools multilib-minimal
39 +
40 +DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library"
41 +HOMEPAGE="https://github.com/jedisct1/libsodium"
42 +SRC_URI="http://download.libsodium.org/${PN}/releases/${P}.tar.gz"
43 +
44 +LICENSE="ISC"
45 +SLOT="0/23"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
47 +IUSE="+asm minimal static-libs +urandom cpu_flags_x86_sse4_1 cpu_flags_x86_aes"
48 +
49 +PATCHES=( "${FILESDIR}"/${PN}-1.0.10-cpuflags.patch )
50 +
51 +src_prepare() {
52 + default
53 + eautoreconf
54 +}
55 +
56 +multilib_src_configure() {
57 + local myeconfargs=(
58 + $(use_enable asm)
59 + $(use_enable minimal)
60 + $(use_enable !urandom blocking-random)
61 + $(use_enable static-libs static)
62 + $(use_enable cpu_flags_x86_sse4_1 sse4_1)
63 + $(use_enable cpu_flags_x86_aes aesni)
64 + )
65 +
66 + # --disable-pie is needed on x86, see bug #512734
67 + if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]]; then
68 + myeconfargs+=( --disable-pie )
69 + fi
70 +
71 + ECONF_SOURCE="${S}" econf ${myeconfargs[@]}
72 +}
73 +
74 +multilib_src_install_all() {
75 + einstalldocs
76 + find "${ED}" -name "*.la" -delete || die
77 +}