Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libsecp256k1/
Date: Fri, 01 May 2020 15:10:28
Message-Id: 1588345778.4127114ee2cf103b623341ea961cbbda91ed4544.juippis@gentoo
1 commit: 4127114ee2cf103b623341ea961cbbda91ed4544
2 Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org>
3 AuthorDate: Tue Oct 1 07:07:29 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri May 1 15:09:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4127114e
7
8 dev-libs/libsecp256k1: Bump to 0.1_pre20190401
9
10 It was released with Bitcoin Core 0.19
11
12 Closes: https://bugs.gentoo.org/720118
13 Signed-off-by: Luke Dashjr <luke-jr+git <AT> utopios.org>
14 Closes: https://github.com/gentoo/gentoo/pull/15573
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 dev-libs/libsecp256k1/Manifest | 1 +
18 .../libsecp256k1-0.1_pre20190401.ebuild | 73 ++++++++++++++++++++++
19 2 files changed, 74 insertions(+)
20
21 diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest
22 index 3a923d21740..1562739aca4 100644
23 --- a/dev-libs/libsecp256k1/Manifest
24 +++ b/dev-libs/libsecp256k1/Manifest
25 @@ -1,3 +1,4 @@
26 DIST libsecp256k1-v0.0.0_pre20161213.tgz 147557 BLAKE2B 078cb90c078722e2eb3b5645f9692d737c99ebfe04db5a96dcfb57bb750b31c009cd3ae46f793bb1789239be9689f6e695a5b03477eecea84f2c657d0cc7442c SHA512 f4d16fae972364fd04bfcfbaca1edde4410a7367a936f76c1e93b85ac3c9c45da58785f604a4fc14cdfb4d7a23395d2d274957ad83118e15a236dfff0d0f57dd
27 DIST libsecp256k1-v0.1_pre20170928.tgz 150935 BLAKE2B f8b3408a33f36186c07cf931a8183a7a241e6418a846f4c3b248cf87e7a8b33a5a92368aa30310efadb066792eebead7fb48b4f4d902e7c8e9b4209717d7b8c0 SHA512 f480c76ba04b3d731c65227e156eb726b27da92f5dcfbd9b0a34c62e97f9b6dfd5c3fae3180b59244d0c9845fdf624b05f29e097f3ac0032ab15cebc4bf00660
28 +DIST libsecp256k1-v0.1_pre20190401.tgz 166663 BLAKE2B 68c9fc3fda6af56452f32edeae5dcb5a92f68bc3fb39a397c532951c6392347df14ea0347bbe05cab43158512e0d9f5ea87bd8f69bece1b04440860ebb8065ee SHA512 8c4945e93cb5ff241482ba4426b25162a7ae3b26860edc10c91d06b1c396887202ad971f4d38e035828352531b87fc29087a12b675e43da44f23c9ea3b6c0cc8
29 DIST secp256k1-v0.0.0_pre20151118.tgz 125884 BLAKE2B 7a4fc950006138d04d8d3da35db24be0c568e25202c16f34f94555fde1297fba839fd114a003b5510693de3386de22166c6f1294726fe381ae5b565cb9866a75 SHA512 3cc0a4973acf7936a7c6dc0abc37ee43ecd69e835069ed40765595d36ca597b43837b5d6f90499455599de03abfc775d7c9d019d26216b79b03dd6dc53a73e19
30
31 diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild
32 new file mode 100644
33 index 00000000000..330a5cdd997
34 --- /dev/null
35 +++ b/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild
36 @@ -0,0 +1,73 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit autotools
43 +
44 +MyPN=secp256k1
45 +DESCRIPTION="Optimized C library for EC operations on curve secp256k1"
46 +HOMEPAGE="https://github.com/bitcoin-core/secp256k1"
47 +COMMITHASH="b19c000063be11018b4d1a6b0a85871ab9d0bdcf"
48 +SRC_URI="https://github.com/bitcoin-core/${MyPN}/archive/${COMMITHASH}.tar.gz -> ${PN}-v${PV}.tgz"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
53 +IUSE="+asm ecdh endomorphism experimental gmp java +recovery test test-openssl"
54 +RESTRICT="!test? ( test )"
55 +
56 +REQUIRED_USE="
57 + asm? ( || ( amd64 arm ) arm? ( experimental ) )
58 + ecdh? ( experimental )
59 + java? ( ecdh )
60 + test-openssl? ( test )
61 +"
62 +RDEPEND="
63 + gmp? ( dev-libs/gmp:0= )
64 +"
65 +DEPEND="${RDEPEND}
66 + java? ( virtual/jdk )
67 + test-openssl? ( dev-libs/openssl:0 )
68 +"
69 +BDEPEND="
70 + java? ( virtual/jdk )
71 + virtual/pkgconfig
72 +"
73 +
74 +S="${WORKDIR}/${MyPN}-${COMMITHASH}"
75 +
76 +src_prepare() {
77 + default
78 + eautoreconf
79 +}
80 +
81 +src_configure() {
82 + local asm_opt
83 + if use asm; then
84 + if use arm; then
85 + asm_opt=arm
86 + else
87 + asm_opt=auto
88 + fi
89 + else
90 + asm_opt=no
91 + fi
92 + econf \
93 + --disable-benchmark \
94 + $(use_enable experimental) \
95 + $(use_enable java jni) \
96 + $(use_enable test tests) \
97 + $(use_enable test-openssl openssl-tests) \
98 + $(use_enable ecdh module-ecdh) \
99 + $(use_enable endomorphism) \
100 + --with-asm=$asm_opt \
101 + --with-bignum=$(usex gmp gmp no) \
102 + $(use_enable recovery module-recovery) \
103 + --disable-static
104 +}
105 +
106 +src_install() {
107 + default
108 + find "${D}" -name '*.la' -delete || die
109 +}