From e11ba04342014a5eadecb1199a0f38cfff118a80 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Mon, 24 May 2021 01:23:30 +0200 Subject: app-text/krop: Add py-3.9 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel --- app-text/krop/krop-0.6.0-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++++++ app-text/krop/krop-0.6.0.ebuild | 42 -------------------------------------- app-text/krop/krop-9999.ebuild | 4 ++-- 3 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 app-text/krop/krop-0.6.0-r1.ebuild delete mode 100644 app-text/krop/krop-0.6.0.ebuild (limited to 'app-text/krop') 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 +} diff --git a/app-text/krop/krop-0.6.0.ebuild b/app-text/krop/krop-0.6.0.ebuild deleted file mode 100644 index 7c6a20c2e0ea..000000000000 --- a/app-text/krop/krop-0.6.0.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) -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 -} diff --git a/app-text/krop/krop-9999.ebuild b/app-text/krop/krop-9999.ebuild index df73d05761af..71df1f4d3c20 100644 --- a/app-text/krop/krop-9999.ebuild +++ b/app-text/krop/krop-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7,8,9} ) DISTUTILS_USE_SETUPTOOLS=rdepend inherit desktop distutils-r1 xdg-utils -- cgit v1.2.3-65-gdbad