commit:     bc58fcbb6fcd3132705023b1ba2abae5af144bed
Author:     Matt Smith <matt <AT> offtopica <DOT> uk>
AuthorDate: Thu May  6 11:13:18 2021 +0000
Commit:     Matt Smith <matt <AT> offtopica <DOT> uk>
CommitDate: Thu May  6 11:13:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc58fcbb

app-crypt/mkp224o: Init at 1.5.0

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Matt Smith <matt <AT> offtopica.uk>

 app-crypt/mkp224o/Manifest             |  1 +
 app-crypt/mkp224o/metadata.xml         | 22 ++++++++++++++
 app-crypt/mkp224o/mkp224o-1.5.0.ebuild | 54 ++++++++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/app-crypt/mkp224o/Manifest b/app-crypt/mkp224o/Manifest
new file mode 100644
index 000000000..7048da480
--- /dev/null
+++ b/app-crypt/mkp224o/Manifest
@@ -0,0 +1 @@
+DIST mkp224o-1.5.0-src.tar.gz 1378324 BLAKE2B 
19d38fbf23328607fa428ec9329cdc909b210b4235d85e14ff372347c9b408ecf22d41dac7122bdae06725d7bca0c3d53c81cc27272c47517e714e9b8e0625dd
 SHA512 
aa5adc91e695dbfd8ece5fdfe3ca370056d4390a5186326b35ee37402040fa24675ede5389c48b79a1e57b624b86024ff72957741fef175602f7721f20c5cc14

diff --git a/app-crypt/mkp224o/metadata.xml b/app-crypt/mkp224o/metadata.xml
new file mode 100644
index 000000000..7b5ca183a
--- /dev/null
+++ b/app-crypt/mkp224o/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>m...@offtopica.uk</email>
+    <name>Matt Smith</name>
+  </maintainer>
+  <use>
+    <flag name="amd64-51-30k">Use x86_64 amd64-51-30k SUPERCOP 
implementation</flag>
+    <flag name="amd64-64-24k">Use x86_64 amd64-64-24k SUPERCOP 
implementation</flag>
+    <flag name="besort">Force intfilter binary search case to use big endian 
sorting; useful if your filters aren't of the same length</flag>
+    <flag name="binsearch">Enable binary search algo; much faster if there are 
a lot of filters</flag>
+    <flag name="donna">Use portable ed25519-donna implementation</flag>
+    <flag name="donna-sse2">Use x86 + SSE2 ed25519-donna implementation</flag>
+    <flag name="pcre2">Enable the regex engine and use pcre2</flag>
+    <flag name="ref10">Use portable ref10 SUPERCOP implementation</flag>
+    <flag name="statistics">Collect performance statistics</flag>
+  </use>
+  <upstream>
+    <remote-id type="github">cathugger/mkp224o</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/app-crypt/mkp224o/mkp224o-1.5.0.ebuild 
b/app-crypt/mkp224o/mkp224o-1.5.0.ebuild
new file mode 100644
index 000000000..f277cfce6
--- /dev/null
+++ b/app-crypt/mkp224o/mkp224o-1.5.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Vanity address generator for v3 Tor hidden service addresses"
+HOMEPAGE="https://github.com/cathugger/mkp224o";
+SRC_URI="https://github.com/cathugger/mkp224o/releases/download/v1.5.0/mkp224o-${PV}-src.tar.gz";
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="amd64-51-30k amd64-64-24k besort binsearch +donna donna-sse2 pcre2 ref10 
+statistics"
+REQUIRED_USE="
+       ^^ ( amd64-51-30k amd64-64-24k donna donna-sse2 ref10 )
+       besort? ( binsearch )
+"
+
+DEPEND="
+       dev-libs/libsodium
+       pcre2? ( dev-libs/libpcre2 )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( OPTIMISATION.txt README.txt )
+
+my_use_enable() {
+       use "${1}" && echo "--enable-${1}"
+}
+
+src_configure() {
+       # Passing arguments like --enable-ref10 --disable-donna breaks the
+       # configure script.  Instead, only one ed25519 implementation should
+       # be --enable'd and the others left unspecified.
+
+       local myeconfargs=(
+               $(my_use_enable amd64-51-30k)
+               $(my_use_enable amd64-64-24k)
+               $(my_use_enable donna)
+               $(my_use_enable donna-sse2)
+               $(my_use_enable ref10)
+               $(use_enable besort)
+               $(use_enable binsearch)
+               $(use_enable pcre2 regex)
+               $(use_enable statistics)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       dobin "${PN}"
+       einstalldocs
+}

Reply via email to