diff options
author | Andrey Grozin <grozin@gentoo.org> | 2024-03-08 23:02:05 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2024-03-08 23:02:45 +0700 |
commit | eefa4845b01828970c3a1e6c03488fb6e2f36e28 (patch) | |
tree | d00168d8a3e66aa6be7f9b1f118d48b61a73be99 /app-text/pdfarranger | |
parent | dev-util/maturin: set DISTUTILS_EXT=1 (diff) | |
download | gentoo-eefa4845b01828970c3a1e6c03488fb6e2f36e28.tar.gz gentoo-eefa4845b01828970c3a1e6c03488fb6e2f36e28.tar.bz2 gentoo-eefa4845b01828970c3a1e6c03488fb6e2f36e28.zip |
app-text/pdfarranger: use PEP517 build
Closes: https://bugs.gentoo.org/909901
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'app-text/pdfarranger')
-rw-r--r-- | app-text/pdfarranger/pdfarranger-1.10.1-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-text/pdfarranger/pdfarranger-1.10.1-r1.ebuild b/app-text/pdfarranger/pdfarranger-1.10.1-r1.ebuild new file mode 100644 index 000000000000..0ffbefbf932f --- /dev/null +++ b/app-text/pdfarranger/pdfarranger-1.10.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 optfeature xdg desktop + +DESCRIPTION="Merge or split pdfs; rearrange, rotate, crop pages" +HOMEPAGE="https://github.com/jeromerobert/pdfarranger" +SRC_URI="https://github.com/jeromerobert/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + app-text/poppler[introspection,cairo] + dev-python/pikepdf[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP},cairo] + dev-python/python-dateutil[${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] +" +DEPEND="${RDEPEND} + dev-python/python-distutils-extra[${PYTHON_USEDEP}] + dev-util/intltool +" + +src_install() { + distutils-r1_src_install + for x in 16 32 48 256 scalable + do doicon -s ${x} data/icons/hicolor/${x}*/* + done +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "image file import" media-gfx/img2pdf +} |