gentoo-ebuilds/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.11.0.ebuild
Adrian Ratiu 805019b3a4
app-crypt/gnupg-pkcs11-scd: bump 0.10 -> 0.11
Upstream released 0.11 recently which contains the config
fix for libassuan v3, so we can drop the hardcoded v2 depend.

Otherwise this ebuild is already in sync with the 9999 ebuild
(thanks thesamesam!).

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Closes: https://github.com/gentoo/gentoo/pull/39143
Signed-off-by: Sam James <sam@gentoo.org>
2024-10-28 18:51:49 +00:00

60 lines
1.2 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="PKCS#11 support for GnuPG"
HOMEPAGE="https://sourceforge.net/projects/gnupg-pkcs11/"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/alonbl/gnupg-pkcs11-scd.git"
inherit autotools git-r3
else
SRC_URI="https://github.com/alonbl/${PN}/releases/download/${P}/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="BSD"
SLOT="0"
IUSE="proxy"
DEPEND="
dev-libs/openssl:=
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_prepare() {
default
[[ ${PV} == 9999 ]] && eautoreconf
}
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
}