# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3

DESCRIPTION="GNU Privacy Guard-encrypted git remote"
HOMEPAGE="https://spwhitton.name/tech/code/git-remote-gcrypt/"
EGIT_REPO_URI="https://git.spwhitton.name/${PN}"
EGIT_COMMIT="${PV}"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-python/docutils
"
RDEPEND="
	dev-vcs/git
	app-crypt/gnupg
"
BDEPEND=""

PATCHES=(
	"${FILESDIR}/README-Clarify-description-of-GCRYPT_FULL_REPACK.patch"
	"${FILESDIR}/replace-deprecated-keyring-options.patch"
)

src_install()
{
	DESTDIR="${D}" prefix="${EPREFIX}/usr" ./install.sh || die
}