mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
pdfid: fix download, minor qa
This commit is contained in:
parent
1378e2afd1
commit
5ac0c3ee07
4 changed files with 7 additions and 94 deletions
|
|
@ -1,46 +0,0 @@
|
||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{11..13} )
|
|
||||||
|
|
||||||
inherit python-r1 unpacker
|
|
||||||
|
|
||||||
DESCRIPTION="This tool will parse a PDF document to identify the fundamental elements used"
|
|
||||||
HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/"
|
|
||||||
|
|
||||||
MY_P="${PN}_V$(ver_rs 1- '_')"
|
|
||||||
SRC_URI="https://www.didierstevens.com/files/software/${MY_P}.zip"
|
|
||||||
|
|
||||||
LICENSE="public-domain"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
||||||
IUSE="unicode yara"
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
|
||||||
$(unpacker_src_uri_depends)"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
yara? ( dev-python/yara-python[${PYTHON_USEDEP}] )"
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Enable check maximum version of the python3
|
|
||||||
sed -e 's/TestPythonVersion(enforceMaximumVersion=True)/# REM/' \
|
|
||||||
-i pdf-parser.py || die
|
|
||||||
|
|
||||||
# Fix encoding errors when reading files
|
|
||||||
use unicode && eapply "${FILESDIR}/0.7.4_define_encoding_format.patch"
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
python_foreach_impl python_newscript pdf-parser.py pdf-parser
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "\nSee more: https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/\n"
|
|
||||||
}
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
DIST pdfid_v0_2_7.zip 11773 BLAKE2B 808d73856ed18ca6f37c1ac77fe80fc1689f89fb9722cc7bfdf317477c9d20d6caf632c13c6a737bba4aef81b05427766af70c65b04ff011eca4ad054acb1c29 SHA512 02bb09b7d4541a55300a81f8c640a789b660f4d23933bc4ce3fa4055b85022611290bcee8dbd7842bcd95178b6c65b2e7fe2b99a17ce398c82642cbd1d07a4c5
|
|
||||||
DIST pdfid_v0_2_8.zip 11844 BLAKE2B 0d6912b368d4856a56a18dae0b509173791d6f1d2ec69a89c4609b49b60763af97a2c28eb90ada301852606447a474b577cd28dbbadd1e6a8d42a1a3bbf6347c SHA512 c0e409cf1fd317f9a2910eae6fb11673c07305d41a9012a866d694add614d0a0343740678265642df4db22af6f9374d982d8ea1755376d65568892c5febb9e35
|
DIST pdfid_v0_2_8.zip 11844 BLAKE2B 0d6912b368d4856a56a18dae0b509173791d6f1d2ec69a89c4609b49b60763af97a2c28eb90ada301852606447a474b577cd28dbbadd1e6a8d42a1a3bbf6347c SHA512 c0e409cf1fd317f9a2910eae6fb11673c07305d41a9012a866d694add614d0a0343740678265642df4db22af6f9374d982d8ea1755376d65568892c5febb9e35
|
||||||
|
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{11..13} )
|
|
||||||
|
|
||||||
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://www.didierstevens.com/files/software/${MY_P}.zip"
|
|
||||||
|
|
||||||
LICENSE="public-domain"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
|
||||||
$(unpacker_src_uri_depends)"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${P}_pentoo.patch )
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto "/etc/${PN}"
|
|
||||||
doins pdfid.ini
|
|
||||||
|
|
||||||
insinto "/usr/share/${PN}"
|
|
||||||
doins plugin_*
|
|
||||||
|
|
||||||
python_foreach_impl python_newscript pdfid.py pdfid
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{11..13} )
|
PYTHON_COMPAT=( python3_{11..14} )
|
||||||
|
|
||||||
inherit python-r1 unpacker
|
inherit python-r1 unpacker
|
||||||
|
|
||||||
|
|
@ -11,22 +11,20 @@ DESCRIPTION="This tool will scan a PDF document looking for certain keyword"
|
||||||
HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/"
|
HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/"
|
||||||
|
|
||||||
MY_P="${PN}_v$(ver_rs 1- '_')"
|
MY_P="${PN}_v$(ver_rs 1- '_')"
|
||||||
SRC_URI="https://www.didierstevens.com/files/software/${MY_P}.zip"
|
SRC_URI="https://didierstevens.com/files/software/${MY_P}.zip"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
LICENSE="public-domain"
|
LICENSE="public-domain"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="amd64 ~arm x86"
|
KEYWORDS="amd64 ~arm x86"
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
RDEPEND="${PYTHON_DEPS}"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
$(unpacker_src_uri_depends)"
|
$(unpacker_src_uri_depends)"
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/pdfid-0.2.7_pentoo.patch )
|
PATCHES=( "${FILESDIR}"/pdfid-0.2.7_pentoo.patch )
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/etc/${PN}"
|
insinto "/etc/${PN}"
|
||||||
doins pdfid.ini
|
doins pdfid.ini
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue