make-pdf: fix download link, minor qa

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-05-18 16:13:21 -04:00
parent 87923e3bba
commit 1378e2afd1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_COMPAT=( python3_{11..14} )
inherit python-r1 unpacker
@ -11,20 +11,18 @@ 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://www.didierstevens.com/files/software/${MY_P}.zip"
SRC_URI="https://didierstevens.com/files/software/${MY_P}.zip"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE=""
RDEPEND=""
DEPEND="${PYTHON_DEPS}
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}
$(unpacker_src_uri_depends)"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
S="${WORKDIR}"
src_prepare() {
sed -e "1i #!\/usr\/bin\/python\\n" \
-i make-pdf-helloworld.py || die