# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A PGP packet visualizer"
HOMEPAGE="https://www.mew.org/~kazu/proj/pgpdump/"
SRC_URI="https://www.mew.org/~kazu/proj/pgpdump/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 ppc sparc x86"

DEPEND="app-arch/bzip2
	sys-libs/zlib"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${PN}-0.32-respect-ldflags.patch
	"${FILESDIR}"/${PN}-0.36-c23.patch
)

src_install() {
	dobin pgpdump
	doman pgpdump.1
	dodoc CHANGES README.md
}