commit: c239243b9f453056f4186c44aa67e54c6ba02109 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sun Apr 11 18:41:37 2021 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sun Apr 11 19:23:47 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c239243b
app-crypt/gnupg-pkcs11-scd: migrate to GLEP 81 Closes: https://bugs.gentoo.org/781212 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> .../gnupg-pkcs11-scd-0.9.2-r1.ebuild | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild new file mode 100644 index 00000000000..29e037a3b44 --- /dev/null +++ b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="PKCS#11 support for GnuPG" +HOMEPAGE="http://gnupg-pkcs11.sourceforge.net" +SRC_URI="https://github.com/alonbl/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libressl proxy" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + dev-libs/libassuan:= + dev-libs/libgcrypt:= + dev-libs/libgpg-error:= + dev-libs/pkcs11-helper:= +" +RDEPEND=" + ${DEPEND} + proxy? ( + acct-group/gnupg-pkcs11 + acct-group/gnupg-pkcs11-scd-proxy + acct-user/gnupg-pkcs11-scd-proxy + ) +" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local myeconfargs=( + $(use_enable proxy) + --with-proxy-socket=/run/gnupg-pkcs11-scd-proxy/cmd + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use proxy; then + newinitd "${FILESDIR}/gnupg-pkcs11-scd-proxy.initd" gnupg-pkcs11-scd-proxy + newconfd "${FILESDIR}/gnupg-pkcs11-scd-proxy.confd" gnupg-pkcs11-scd-proxy + fi +}