pentoo-overlay/app-forensics/make-pdf/make-pdf-0.1.7-r1.ebuild
Rick Farina (Zero_Chaos) d1d67bb448
make-pdf: remove python 3.14
* ERROR: app-forensics/make-pdf-0.1.7-r1::pentoo failed (depend phase):
 *   Invalid implementation in PYTHON_COMPAT: python3_14
 *
 * Call stack:
 *                  ebuild.sh, line 625:  Called source '/var/db/repos/pentoo/app-forensics/make-pdf/make-pdf-0.1.7-r1.ebuild'
 *   make-pdf-0.1.7-r1.ebuild, line   8:  Called inherit 'python-r1' 'unpacker'
 *                  ebuild.sh, line 310:  Called __qa_source '/var/db/repos/gentoo/eclass/python-r1.eclass'
 *                  ebuild.sh, line 123:  Called source '/var/db/repos/gentoo/eclass/python-r1.eclass'
 *           python-r1.eclass, line 232:  Called _python_set_globals
 *           python-r1.eclass, line 186:  Called _python_set_impls
 *     python-utils-r1.eclass, line 151:  Called die
 * The specific snippet of code:
 *   						die "Invalid implementation in PYTHON_COMPAT: ${i}"
 *
 * If you need support, post the output of `emerge --info '=app-forensics/make-pdf-0.1.7-r1::pentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-forensics/make-pdf-0.1.7-r1::pentoo'`.
 * Working directory: '/usr/lib/python3.13/site-packages'
 * S: '/var/tmp/portage/app-forensics/make-pdf-0.1.7-r1/work/make-pdf-0.1.7'
2025-05-28 11:26:19 -04:00

39 lines
843 B
Bash

# Copyright 1999-2025 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 embed javascript inside a PDF document"
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"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}
$(unpacker_src_uri_depends)"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare() {
sed -e "1i #!\/usr\/bin\/python\\n" \
-i make-pdf-helloworld.py || die
default
}
src_install() {
python_foreach_impl python_domodule mPDF.py
for x in make-pdf-*.py; do
python_foreach_impl python_newscript $x ${x%.py}
done
}