mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 00:16:22 +01:00
39 lines
843 B
Bash
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_{12..14} )
|
|
|
|
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
|
|
}
|