1 |
commit: ed2b84f9c1b0b5e7fe9636678bbf7db0b08ae4a6 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 3 13:59:51 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 3 14:02:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed2b84f9 |
7 |
|
8 |
dev-libs/libsodium: Bump to version 1.0.18 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
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.18.ebuild | 49 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libsodium/Manifest b/dev-libs/libsodium/Manifest |
18 |
index eacc5d63ca3..1dbe9ce4287 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.15.tar.gz 1866057 BLAKE2B 220e327f7803c6cf0b1260b313a225d7cc7a965b36920c744379c5939643e588687032478e3d7a79b4614c5fa57b0dd2afd216b2e23ca69ad16ea67764a840ca SHA512 299a208f8342793d13498e95b23f1749f5b5b13ec276db3ec401130615e837ef475b6a1283b6e87a5f8227d23e70e38ca721073dadd5dc88fe4aff342aa64adc |
23 |
DIST libsodium-1.0.16.tar.gz 1910835 BLAKE2B d0d83730cfdb64a928c4597a3bcf4ae179d74bb9f850364bf0670547a12842009c0ca32d36d06053906fb649497406b1d7988e167772d5f1138d23798d8775f7 SHA512 eab917d599c9c1fe971a6ecf915b9a6476ccec2d46cf23cbfbf06dd3833089b422f192de4d55f17b93362f1251ba8d5ddeb95ced1a422a3a2631b4b82553907f |
24 |
DIST libsodium-1.0.17.tar.gz 1911910 BLAKE2B 488079599f8448a75ac60b955bddc2a284bc09307ef6c3d1e12fef6316d3ddc354b0b60756487311ea8b50920009394e749ba0f6f159542716e0e864fc80646c SHA512 7cc9e4f11e656008ce9dff735acea95acbcb91ae4936de4d26f7798093766a77c373e9bd4a7b45b60ef8a11de6c55bc8dcac13bebf8c23c671d0536430501da1 |
25 |
+DIST libsodium-1.0.18.tar.gz 1919817 BLAKE2B a42d898fe77f232dcbb75728e776b88f006e89f734c4d335e75e01d37b1034cc024df2e89d4350ecbe713d3e4b32c08bec537922c81cc63b0e87ee7fd89b2940 SHA512 17e8638e46d8f6f7d024fe5559eccf2b8baf23e143fadd472a7d29d228b186d86686a5e6920385fe2020729119a5f12f989c3a782afbd05a8db4819bb18666ef |
26 |
|
27 |
diff --git a/dev-libs/libsodium/libsodium-1.0.18.ebuild b/dev-libs/libsodium/libsodium-1.0.18.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..b1a14071e57 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libsodium/libsodium-1.0.18.ebuild |
32 |
@@ -0,0 +1,49 @@ |
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 |
+ # --disable-ssp is needed on musl x86 |
70 |
+ if use elibc_musl; then |
71 |
+ myeconfargs+=( --disable-ssp ) |
72 |
+ fi |
73 |
+ fi |
74 |
+ |
75 |
+ ECONF_SOURCE="${S}" econf ${myeconfargs[@]} |
76 |
+} |
77 |
+ |
78 |
+multilib_src_install_all() { |
79 |
+ einstalldocs |
80 |
+ find "${ED}" -type f -name "*.la" -delete || die |
81 |
+} |