diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-24 01:23:30 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-24 16:32:19 +0200 |
commit | e11ba04342014a5eadecb1199a0f38cfff118a80 (patch) | |
tree | 037036ef001f20d24420d0de2d72924d60059d1d /app-text/krop/krop-0.6.0-r1.ebuild | |
parent | app-admin/sysstat: x86 stable wrt bug #791757 (diff) | |
download | gentoo-e11ba04342014a5eadecb1199a0f38cfff118a80.tar.gz gentoo-e11ba04342014a5eadecb1199a0f38cfff118a80.tar.bz2 gentoo-e11ba04342014a5eadecb1199a0f38cfff118a80.zip |
app-text/krop: Add py-3.9 compatibility
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'app-text/krop/krop-0.6.0-r1.ebuild')
-rw-r--r-- | app-text/krop/krop-0.6.0-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-text/krop/krop-0.6.0-r1.ebuild b/app-text/krop/krop-0.6.0-r1.ebuild new file mode 100644 index 000000000000..6085c6264fb8 --- /dev/null +++ b/app-text/krop/krop-0.6.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit desktop distutils-r1 xdg-utils + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/arminstraub/krop.git" +else + SRC_URI="https://github.com/arminstraub/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~x86" +fi + +DESCRIPTION="A tool to crop PDF files" +HOMEPAGE="http://arminstraub.com/software/krop" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +RDEPEND="dev-python/python-poppler-qt5[${PYTHON_USEDEP}] + dev-python/PyPDF2[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets]" + +src_install() { + distutils-r1_src_install + domenu "${WORKDIR}/${P}/${PN}.desktop" +} + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |