diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-03-19 22:17:18 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-03-20 11:42:50 -0400 |
commit | 9bb34f643733cccefef9ed8111e10d8e98f63f96 (patch) | |
tree | ed126cafd47229be877ff076cfefa5e494916557 /dev-libs/libsecp256k1 | |
parent | kde-apps/kcalc: fix issue where kcalc appears not to start (diff) | |
download | gentoo-9bb34f643733cccefef9ed8111e10d8e98f63f96.tar.gz gentoo-9bb34f643733cccefef9ed8111e10d8e98f63f96.tar.bz2 gentoo-9bb34f643733cccefef9ed8111e10d8e98f63f96.zip |
dev-libs/libsecp256k1: bump to 0.0.0_pre20151118 and update 9999
Diffstat (limited to 'dev-libs/libsecp256k1')
-rw-r--r-- | dev-libs/libsecp256k1/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20151118.ebuild | 59 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/libsecp256k1-9999.ebuild | 10 | ||||
-rw-r--r-- | dev-libs/libsecp256k1/metadata.xml | 8 |
4 files changed, 72 insertions, 6 deletions
diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest index 108c5631a446..86c170d29938 100644 --- a/dev-libs/libsecp256k1/Manifest +++ b/dev-libs/libsecp256k1/Manifest @@ -1,2 +1,3 @@ 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_pre20151118.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20151118.ebuild new file mode 100644 index 000000000000..133da8bb8752 --- /dev/null +++ b/dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20151118.ebuild @@ -0,0 +1,59 @@ +# 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="6c527eceee7f5105c33c98dfae24ffeffd71f7cf" +SRC_URI="https://github.com/bitcoin/${MyPN}/archive/${COMMITHASH}.tar.gz -> ${MyPN}-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 +recovery schnorr test" + +REQUIRED_USE=" + asm? ( amd64 ) + ecdh? ( experimental ) + schnorr? ( experimental ) +" +RDEPEND=" + gmp? ( dev-libs/gmp:0 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/openssl:0 ) +" + +S="${WORKDIR}/${MyPN}-${COMMITHASH}" + +src_prepare() { + eautoreconf +} + +src_configure() { + econf \ + --disable-benchmark \ + $(use_enable test tests) \ + $(use_enable ecdh module-ecdh) \ + $(use_enable endomorphism) \ + --with-asm=$(usex asm auto no) \ + --with-bignum=$(usex gmp gmp no) \ + $(use_enable recovery module-recovery) \ + $(use_enable schnorr module-schnorr) \ + --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 b0a109807c08..9a1a1de7de33 100644 --- a/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild +++ b/dev-libs/libsecp256k1/libsecp256k1-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -14,10 +14,12 @@ HOMEPAGE="https://github.com/bitcoin/${MyPN}" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="asm doc endomorphism gmp test" +IUSE="asm doc ecdh endomorphism experimental gmp +recovery schnorr test" REQUIRED_USE=" asm? ( amd64 ) + ecdh? ( experimental ) + schnorr? ( experimental ) " RDEPEND=" gmp? ( dev-libs/gmp:0 ) @@ -34,10 +36,14 @@ src_prepare() { src_configure() { econf \ --disable-benchmark \ + $(use_enable experimental) \ $(use_enable test tests) \ + $(use_enable ecdh module-ecdh) \ $(use_enable endomorphism) \ --with-asm=$(usex asm auto no) \ --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 df5fa5e2ed6b..fe33e1405a94 100644 --- a/dev-libs/libsecp256k1/metadata.xml +++ b/dev-libs/libsecp256k1/metadata.xml @@ -9,13 +9,13 @@ <email>luke-jr+gentoobugs@utopios.org</email> <name>Luke Dashjr</name> </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> <use> <flag name="asm">Enable x86_64 assembly optimisation</flag> + <flag name="ecdh">Enable ECDH shared secret computation</flag> <flag name="endomorphism">Enable endomorphism</flag> + <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> </use> <upstream> <remote-id type="github">bitcoin/secp256k1</remote-id> |