diff options
Diffstat (limited to 'dev-libs/libsecp256k1')
-rw-r--r-- | dev-libs/libsecp256k1/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-0.2.0.ebuild | 79 |
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest index 58a09e8dd6ab..fa65f39789e4 100644 --- a/dev-libs/libsecp256k1/Manifest +++ b/dev-libs/libsecp256k1/Manifest @@ -1,5 +1,7 @@ +DIST libsecp256k1-0.2.0.tar.gz 2456096 BLAKE2B 9160ea9977ddc08daf8881cdcb98cd223024c938ab09c0dab9fc4cd67d355018f339bab7701bbb895345fa858e5673006ab81e027da109a7c9d470e2052eecdf SHA512 a345ffd69c5587777dc834a9f86f89971090158695507cf08cd12efc3b136ff5eff54a7bd789354a5e6e11229e1b2839f706458d64cdf7561519245c5be31a9f DIST libsecp256k1-v0.1_pre20190401.tgz 166663 BLAKE2B 68c9fc3fda6af56452f32edeae5dcb5a92f68bc3fb39a397c532951c6392347df14ea0347bbe05cab43158512e0d9f5ea87bd8f69bece1b04440860ebb8065ee SHA512 8c4945e93cb5ff241482ba4426b25162a7ae3b26860edc10c91d06b1c396887202ad971f4d38e035828352531b87fc29087a12b675e43da44f23c9ea3b6c0cc8 DIST libsecp256k1-v0.1_pre20201028.tgz 200051 BLAKE2B 90d636049b411e02703feb2661006900a55f952f60e76e2b7147a5afe8e391a06a80d6ae1489b1e7f2382176c7ea831526465a85bca09156dc6d37b417fcb33b SHA512 54a0fa21b64dd6836e4227de51f3539afe06e0e2f352683397d6adb5dd0508af443d2e25f91e90e1ae366b261965fe7d438292314705baee799cf37421644958 EBUILD libsecp256k1-0.1_pre20190401.ebuild 1577 BLAKE2B f1472ea251a7f43a7c6a96aabcfcf34481d55b1f43afaca01293326c1d19cb0debf9d9a258250b6f045060d4827ada3b6f0644f2029e1d37ef7349833136dbc1 SHA512 ac2c63c0db252ca605ce4d2f99de32a66ffd24d6658eb23692d5380f02507e754b2135c5de562dcc98c689c32eea8edb85b6976ab3cb5c9814088f3e9cf5e8ac EBUILD libsecp256k1-0.1_pre20201028.ebuild 1911 BLAKE2B 3d222fe811adfc6df26d7a7271c72b3d4d39c39742be1046e814028d1a97d68a2c3f5399ce13f3df04cb13cb46843be20b9218355e4ef105a305493d25d90e55 SHA512 b6daafabdb58adc46dc973ba56cdb50fe9cff927ae67b9fdfe5318c0a84ad473f33890fed8afc58247fe734359151468bfbc5225436bc11ddad5aa7631e56080 +EBUILD libsecp256k1-0.2.0.ebuild 1838 BLAKE2B dafa8d28ffc5eb75b87939cab70b7384f00dd08b7fd7d7c9cf892cbf6012500045070d941b3fce4315f7b7b232fb6920285bb4a34994582a3ff5b8d3e32ffabd SHA512 461059b103d5cda8c94ba491eac72569670e0c3f80d25c11b013db785b14d7cdae94b5f502d60e2f6523fddaf5005d42001035b3c335491d1c79ac914322f784 MISC metadata.xml 1369 BLAKE2B c1fe8fac34fe5181cf4f95bdceafa0d228e750eb731161a2a0938a0b72c5cac88a7d872b689d1fac264a44d93da7788b8ddab3785d4c71dd80f90f2a0b9f3d74 SHA512 614774e744a25199edd3ecc4b4beb6fe2fb550d2160594a6c9994e566987dde010d6f2bd4c09a14976ee5dae5a11a316d68b937fc20a84df2c3a415364be6bda diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.2.0.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.2.0.ebuild new file mode 100644 index 000000000000..56a8ea20c441 --- /dev/null +++ b/dev-libs/libsecp256k1/libsecp256k1-0.2.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PN=${PN##lib} + +DESCRIPTION="Optimized C library for EC operations on curve secp256k1" +HOMEPAGE="https://github.com/bitcoin-core/secp256k1" +if [[ ${PV} == *_p* ]] ; then + MY_COMMIT="3967d96bf184519eb98b766af665b4d4b072563e" + SRC_URI="https://github.com/bitcoin-core/${MyPN}/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/${MY_PN}-${MY_COMMIT} +else + SRC_URI="https://github.com/bitcoin-core/secp256k1/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/${MY_PN}-${PV} +fi + +LICENSE="MIT" +SLOT="0/1" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+asm ecdh experimental +extrakeys lowmem precompute-ecmult +schnorr +recovery test valgrind" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + ?? ( lowmem precompute-ecmult ) + asm? ( + || ( amd64 arm ) + ) + schnorr? ( extrakeys ) +" + +BDEPEND=" + virtual/pkgconfig + test? ( dev-libs/openssl ) + valgrind? ( dev-util/valgrind ) +" + +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 + + local myeconfargs=( + --disable-benchmark + $(use_enable experimental) + $(use_enable test tests) + $(use_enable test exhaustive-tests) + $(use_enable ecdh module-ecdh) + $(use_enable extrakeys module-extrakeys) + --with-asm=${asm_opt} + $(use_enable recovery module-recovery) + $(use_enable schnorr module-schnorrsig) + $(usev lowmem '--with-ecmult-window=2 --with-ecmult-gen-precision=2') + $(usev precompute-ecmult '--with-ecmult-window=24 --with-ecmult-gen-precision=8') + $(use_with valgrind) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} |