diff options
-rw-r--r-- | dev-libs/libsecp256k1/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20161213.ebuild | 73 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-9999.ebuild | 28 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/metadata.xml | 1 |
4 files changed, 94 insertions, 9 deletions
diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest index 86c170d29938..ea22c6112814 100644 --- a/dev-libs/libsecp256k1/Manifest +++ b/dev-libs/libsecp256k1/Manifest @@ -1,3 +1,4 @@ +DIST libsecp256k1-v0.0.0_pre20161213.tgz 147557 SHA256 1cb5350e50d8d7e9061835d40a06e8419d8dcf95210bdf887380d2b933217743 SHA512 f4d16fae972364fd04bfcfbaca1edde4410a7367a936f76c1e93b85ac3c9c45da58785f604a4fc14cdfb4d7a23395d2d274957ad83118e15a236dfff0d0f57dd WHIRLPOOL af3bf6aeffa66f2d442dcc11255a60e5f24d281b30751ddcf72d9abbfb052cb8197081b56281e4b19a99602eead204ca985ed74feeb4b1e5c89543c70014f454 DIST secp256k1-v0.0.0_pre20141212.tgz 60007 SHA256 f5d3a7cac425caf64040395d99c1a91ab2ca1c973b228a66772ba4a290f355ce SHA512 ab2a211c1bf882ebb62e78891e4e12c3ed7244d46d532e37ff2a669ba08db8dcafec7b4c57c073310e463957fd2fa0dffb940c4f35b61890cb8ce86d4283f0f6 WHIRLPOOL 3aa8b7545ca24028ceb17e770fdbf997e2895212ec25a193fcd926660e78f16d704bf27a5b1aa7cf3cabe643c33b128bf0b0568172c15833eb82fcc58e5941c1 DIST secp256k1-v0.0.0_pre20150423.tgz 77451 SHA256 7e4e78d5ded245b59dbe8abc9804fdf7ba41d9030936fb39766d5f2bd7e29b2e SHA512 a640188d83e9aa5a4292900c211e29815f2f1b57db4fbccfb8a3bf770bb52f0232d405044f317a3b6b6ea4d5a5107180dc4e374cf7ab06eb79676c270061c3b7 WHIRLPOOL 5796d32cd8f578ef28f6e79ced53fa505519273af39bdeaa413e9b48669ce7945d12437c6093f3aa0b3db9412dac50638c335a3f4f8cf0d4ffa8c94665a85f72 DIST secp256k1-v0.0.0_pre20151118.tgz 125884 SHA256 75549cea9b22affda02d6731385a7184b60703f1ca0a4f098fec8c702a20f7b0 SHA512 3cc0a4973acf7936a7c6dc0abc37ee43ecd69e835069ed40765595d36ca597b43837b5d6f90499455599de03abfc775d7c9d019d26216b79b03dd6dc53a73e19 WHIRLPOOL 61eb9a709e8986db9113d305a989d44700f5e53143471485935bed0f79d18c745cb78f2b4b5e55614b6ca80a6bd29830b52108797bc21bc792789a7590597fed diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20161213.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20161213.ebuild new file mode 100644 index 000000000000..629e443aaba7 --- /dev/null +++ b/dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20161213.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +MyPN=secp256k1 +DESCRIPTION="Optimized C library for EC operations on curve secp256k1" +HOMEPAGE="https://github.com/bitcoin/${MyPN}" +COMMITHASH="8225239f490f79842a5a3b82ad6cc8aa11d5208e" +SRC_URI="https://github.com/bitcoin/${MyPN}/archive/${COMMITHASH}.tar.gz -> ${PN}-v${PV}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="asm doc ecdh endomorphism experimental gmp java +recovery test test_openssl" + +REQUIRED_USE=" + asm? ( || ( amd64 arm ) arm? ( experimental ) ) + ecdh? ( experimental ) + java? ( ecdh ) + test_openssl? ( test ) +" +RDEPEND=" + gmp? ( dev-libs/gmp:0 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + java? ( virtual/jdk ) + test_openssl? ( dev-libs/openssl:0 ) +" + +S="${WORKDIR}/${MyPN}-${COMMITHASH}" + +src_prepare() { + 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() { + if use doc; then + dodoc README.md + fi + + emake DESTDIR="${D}" install + prune_libtool_files +} diff --git a/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild b/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild index cd430a4deb36..fa2726044e8e 100644 --- a/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild +++ b/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild @@ -14,22 +14,21 @@ HOMEPAGE="https://github.com/bitcoin/${MyPN}" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="asm doc ecdh endomorphism experimental gmp libressl +recovery schnorr test" +IUSE="asm doc ecdh endomorphism experimental gmp java +recovery test test_openssl" REQUIRED_USE=" - asm? ( amd64 ) + asm? ( || ( amd64 arm ) arm? ( experimental ) ) ecdh? ( experimental ) - schnorr? ( experimental ) + java? ( ecdh ) + test_openssl? ( test ) " RDEPEND=" gmp? ( dev-libs/gmp:0 ) " DEPEND="${RDEPEND} virtual/pkgconfig - test? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - ) + java? ( virtual/jdk ) + test_openssl? ( dev-libs/openssl:0 ) " src_prepare() { @@ -37,16 +36,27 @@ src_prepare() { } 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=$(usex asm auto no) \ + --with-asm=$asm_opt \ --with-bignum=$(usex gmp gmp no) \ $(use_enable recovery module-recovery) \ - $(use_enable schnorr module-schnorr) \ --disable-static } diff --git a/dev-libs/libsecp256k1/metadata.xml b/dev-libs/libsecp256k1/metadata.xml index fe33e1405a94..93cec1bd9dd1 100644 --- a/dev-libs/libsecp256k1/metadata.xml +++ b/dev-libs/libsecp256k1/metadata.xml @@ -16,6 +16,7 @@ <flag name="experimental">Allow experimental USE flags</flag> <flag name="recovery">Enable ECDSA pubkey recovery module</flag> <flag name="schnorr">Enable Schnorr signature module</flag> + <flag name="test_openssl">Enable OpenSSL comparison tests</flag> </use> <upstream> <remote-id type="github">bitcoin/secp256k1</remote-id> |