diff options
Diffstat (limited to 'dev-libs/libsecp256k1')
-rw-r--r-- | dev-libs/libsecp256k1/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest index ea6b5c6a6079..ac5a89acf3c0 100644 --- a/dev-libs/libsecp256k1/Manifest +++ b/dev-libs/libsecp256k1/Manifest @@ -1,7 +1,9 @@ DIST libsecp256k1-v0.0.0_pre20161213.tgz 147557 BLAKE2B 078cb90c078722e2eb3b5645f9692d737c99ebfe04db5a96dcfb57bb750b31c009cd3ae46f793bb1789239be9689f6e695a5b03477eecea84f2c657d0cc7442c SHA512 f4d16fae972364fd04bfcfbaca1edde4410a7367a936f76c1e93b85ac3c9c45da58785f604a4fc14cdfb4d7a23395d2d274957ad83118e15a236dfff0d0f57dd DIST libsecp256k1-v0.1_pre20170928.tgz 150935 BLAKE2B f8b3408a33f36186c07cf931a8183a7a241e6418a846f4c3b248cf87e7a8b33a5a92368aa30310efadb066792eebead7fb48b4f4d902e7c8e9b4209717d7b8c0 SHA512 f480c76ba04b3d731c65227e156eb726b27da92f5dcfbd9b0a34c62e97f9b6dfd5c3fae3180b59244d0c9845fdf624b05f29e097f3ac0032ab15cebc4bf00660 +DIST libsecp256k1-v0.1_pre20190401.tgz 166663 BLAKE2B 68c9fc3fda6af56452f32edeae5dcb5a92f68bc3fb39a397c532951c6392347df14ea0347bbe05cab43158512e0d9f5ea87bd8f69bece1b04440860ebb8065ee SHA512 8c4945e93cb5ff241482ba4426b25162a7ae3b26860edc10c91d06b1c396887202ad971f4d38e035828352531b87fc29087a12b675e43da44f23c9ea3b6c0cc8 DIST secp256k1-v0.0.0_pre20151118.tgz 125884 BLAKE2B 7a4fc950006138d04d8d3da35db24be0c568e25202c16f34f94555fde1297fba839fd114a003b5510693de3386de22166c6f1294726fe381ae5b565cb9866a75 SHA512 3cc0a4973acf7936a7c6dc0abc37ee43ecd69e835069ed40765595d36ca597b43837b5d6f90499455599de03abfc775d7c9d019d26216b79b03dd6dc53a73e19 EBUILD libsecp256k1-0.0.0_pre20151118.ebuild 1387 BLAKE2B 8cd207c8547e7ca9098072bb793e27e340a9898c47ef90c62bfca5201831a7404f3fa3691d53360c1316cdb378a018e95439cfffc3540a3d91f24514ec47e100 SHA512 8ce20517b338647743f06ecfbf2ffe4f681955e1f9fa4bb5650dd69d6645f495c7035d125f1a0c9d5b8af9e46fc66a8f652f3ab7ccd4b719d8ce5133ff5c30ce EBUILD libsecp256k1-0.0.0_pre20161213.ebuild 1551 BLAKE2B 389dcae1dfa6f1f1fe5dddb1948deda3f6d73d7d2144bf2ebbab1589d9e872ad7c0579e54868c60c436bcaf24496e8e5efd49f357f22a06027ce7c127665e5ba SHA512 93270a2b843211feeb8821e6f7c7d009b4ed563b3c8fc6076c75ec841017968570bb031e99f3b8564e6681a872111cb6cb5e277b525b7c60839018d5b1f40197 EBUILD libsecp256k1-0.1_pre20170928.ebuild 1589 BLAKE2B 05817723585615dcc740d329e994459fb79a8e7f0da83d9cfbc8323f16a08617bfcfa2dbe9ec224f4f2acd01f30d0d5cc3f0c3e88c5de0546754626fd8fd03e1 SHA512 2b9b370c3cf5439e00043b7b559e7a11941511acd2c66ab93fe68b5f875546306b90c2280eec69888898973277fef53ff8361840e099e7662a1f508e3cee3ffb +EBUILD libsecp256k1-0.1_pre20190401.ebuild 1579 BLAKE2B 607834c06408149b959de8295407e0e1290089473ba8a1f31ea17fcda67851043ec154a4f6ae45b92630a1a4e1cbeffafb7e44c3ef8189258e0c54ab94a4c9e0 SHA512 56164064f31669e81eb29f7a6fb8f5d3c6a9c04b84fe11594d70c9e26051b8e1db4605a85b1e384b4937672dceac5ff7c8252bf57ac9e66bf9893d1a30a58c7d MISC metadata.xml 945 BLAKE2B 7a69755c3d1c70ed97958a6597821b2d35175bdb8a396bccef731a9da250a4b8b4a14fb9f28df076b265db72f96cf5d75c3892449bc7bc3f320c69d5d8e79c19 SHA512 f90780064a7b48ef4d9ad70fb20f61ee2ff62508c396bd79f157d2790becacd833d035cc9bd7719aec29acd0b4a30b37426106196f1e229f86bb6eb5c2abb8df diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild new file mode 100644 index 000000000000..330a5cdd9972 --- /dev/null +++ b/dev-libs/libsecp256k1/libsecp256k1-0.1_pre20190401.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +MyPN=secp256k1 +DESCRIPTION="Optimized C library for EC operations on curve secp256k1" +HOMEPAGE="https://github.com/bitcoin-core/secp256k1" +COMMITHASH="b19c000063be11018b4d1a6b0a85871ab9d0bdcf" +SRC_URI="https://github.com/bitcoin-core/${MyPN}/archive/${COMMITHASH}.tar.gz -> ${PN}-v${PV}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+asm ecdh endomorphism experimental gmp java +recovery test test-openssl" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + asm? ( || ( amd64 arm ) arm? ( experimental ) ) + ecdh? ( experimental ) + java? ( ecdh ) + test-openssl? ( test ) +" +RDEPEND=" + gmp? ( dev-libs/gmp:0= ) +" +DEPEND="${RDEPEND} + java? ( virtual/jdk ) + test-openssl? ( dev-libs/openssl:0 ) +" +BDEPEND=" + java? ( virtual/jdk ) + virtual/pkgconfig +" + +S="${WORKDIR}/${MyPN}-${COMMITHASH}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local asm_opt + if use asm; then + if use arm; then + asm_opt=arm + else + asm_opt=auto + fi + else + asm_opt=no + fi + econf \ + --disable-benchmark \ + $(use_enable experimental) \ + $(use_enable java jni) \ + $(use_enable test tests) \ + $(use_enable test-openssl openssl-tests) \ + $(use_enable ecdh module-ecdh) \ + $(use_enable endomorphism) \ + --with-asm=$asm_opt \ + --with-bignum=$(usex gmp gmp no) \ + $(use_enable recovery module-recovery) \ + --disable-static +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} |