pentoo-overlay/app-forensics/pdfid/pdfid-0.2.8.ebuild
2025-10-12 15:57:56 +08:00

36 lines
808 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
inherit python-r1 unpacker
DESCRIPTION="This tool will scan a PDF document looking for certain keyword"
HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/"
MY_P="${PN}_v$(ver_rs 1- '_')"
SRC_URI="https://didierstevens.com/files/software/${MY_P}.zip"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}
$(unpacker_src_uri_depends)"
PATCHES=( "${FILESDIR}"/pdfid-0.2.7_pentoo.patch )
src_install() {
insinto "/etc/${PN}"
doins pdfid.ini
insinto "/usr/share/${PN}"
doins plugin_*
python_foreach_impl python_newscript pdfid.py pdfid
}