commit:     67847442aeee9a7e684a53d0b47e65d680503ea9
Author:     Salah Coronya <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Mon Sep 14 03:49:23 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Oct  2 08:42:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67847442

app-crypt/tpm2-totp: Bump to 0.3.0

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-crypt/tpm2-totp/Manifest               |  1 +
 app-crypt/tpm2-totp/metadata.xml           |  3 ++
 app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild | 51 ++++++++++++++++++++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/app-crypt/tpm2-totp/Manifest b/app-crypt/tpm2-totp/Manifest
index 5e4f68674f2..85caafc9799 100644
--- a/app-crypt/tpm2-totp/Manifest
+++ b/app-crypt/tpm2-totp/Manifest
@@ -1 +1,2 @@
 DIST tpm2-totp-0.2.1.tar.gz 427226 BLAKE2B 
e6a9dbcdac4d7fc31048aff968e3eea097752c79a3c1b8551d22558a6b143a758e7bb507722185c648000f4b1edd2f0bbdd443890b5763b297f3d42cfbd84d9d
 SHA512 
2bda34e89b76319a40206e08c0208b0f139309c0b0e40e7168b5e7562096750df504dfcae3a39e6f82fdccbf7a79ed0802d115fbd7560dc3f5b52d81fe8fb59c
+DIST tpm2-totp-0.3.0.tar.gz 428874 BLAKE2B 
413f4418cd1ce9a996f36c83e27c3fe256b2d3f5ff36e7df1dc1b651e38afa222be9742d5cfa76287263a4e1402dabea3400b41a1e1bde9f31fe03f82894f4f1
 SHA512 
d47cc8155a60a464afe602c3114ff8e6b2ff825457e6069693947421716b97c34b00f70adbcb4cda1b5b9639b8a3dfc7800295bbff99822da7a8077ebf78d6b2

diff --git a/app-crypt/tpm2-totp/metadata.xml b/app-crypt/tpm2-totp/metadata.xml
index ff3a177c4bd..fb1b2ed30d0 100644
--- a/app-crypt/tpm2-totp/metadata.xml
+++ b/app-crypt/tpm2-totp/metadata.xml
@@ -12,4 +12,7 @@
        <upstream>
                <remote-id type="github">tpm2-software/tpm2-totp</remote-id>
        </upstream>
+       <use>
+               <flag name="plymouth">Add <pkg>sys-boot/plymouth</pkg> 
support</flag>
+       </use>
 </pkgmetadata>

diff --git a/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild 
b/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild
new file mode 100644
index 00000000000..b02901ba1dc
--- /dev/null
+++ b/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Attest the trustworthiness of a device against a human using 
time-based OTP"
+HOMEPAGE="https://github.com/tpm2-software/tpm2-totp";
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/v${PV}/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="plymouth test"
+
+REQUIRED_USE="test? ( plymouth )"
+
+RDEPEND="app-crypt/tpm2-tss
+       media-gfx/qrencode
+       plymouth? ( sys-boot/plymouth )"
+DEPEND="${RDEPEND}
+       test? (
+               app-crypt/swtpm
+               app-crypt/tpm2-tools
+               >=app-crypt/tpm2-tss-3.0.0
+               sys-apps/fakeroot
+               sys-auth/oath-toolkit
+       )"
+
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT="!test? ( test )"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --disable-static \
+               --disable-defaultflags \
+               $(use_enable plymouth) \
+               $(use_enable test integration)
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to