dev-libs/libsecp256k1: bump to 0.0.0_pre20151118 and update 9999
authorLuke Dashjr <luke-jr+git@utopios.org>
Sat, 19 Mar 2016 22:17:18 +0000 (22:17 +0000)
committerAnthony G. Basile <blueness@gentoo.org>
Sun, 20 Mar 2016 15:42:50 +0000 (11:42 -0400)
dev-libs/libsecp256k1/Manifest
dev-libs/libsecp256k1/libsecp256k1-0.0.0_pre20151118.ebuild [new file with mode: 0644]
dev-libs/libsecp256k1/libsecp256k1-9999.ebuild
dev-libs/libsecp256k1/metadata.xml

index 108c5631a446d8c4c6a30c8718d0b7dc2e5a6805..86c170d299381d0760c2cb35c0c5274f75263794 100644 (file)
@@ -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 (file)
index 0000000..133da8b
--- /dev/null
@@ -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
+}
index b0a109807c08b6e0d1136edeb025e22638a70830..9a1a1de7de33063848f4355235324f9a11121b2d 100644 (file)
@@ -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
 }
 
index df5fa5e2ed6b528c5628c2896f8f7d729627940b..fe33e1405a943616a2e6b9ce0c0ed25bc5bff9ff 100644 (file)
@@ -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>