summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-04-10 05:18:12 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-04-10 05:18:43 +0200
commit7393925a7d78fc70d02c40ce93c2041422162955 (patch)
tree865094c58a39a7105b9f8e03c94a08b7ad4037ad /app-text/krop/krop-0.6.0-r2.ebuild
parentmedia-libs/libheif: Version bump to 1.15.2 (diff)
downloadgentoo-7393925a7d78fc70d02c40ce93c2041422162955.tar.gz
gentoo-7393925a7d78fc70d02c40ce93c2041422162955.tar.bz2
gentoo-7393925a7d78fc70d02c40ce93c2041422162955.zip
app-text/krop: Drop PyPdf2 dependency, use pikepdf
Bug: https://bugs.gentoo.org/889246 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'app-text/krop/krop-0.6.0-r2.ebuild')
-rw-r--r--app-text/krop/krop-0.6.0-r2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-text/krop/krop-0.6.0-r2.ebuild b/app-text/krop/krop-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..830a5e54f24d
--- /dev/null
+++ b/app-text/krop/krop-0.6.0-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{9,10} )
+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=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-links.patch"
+ "${FILESDIR}/${P}-pikepdf.patch"
+)
+
+RDEPEND="dev-python/python-poppler-qt5[${PYTHON_USEDEP}]
+ dev-python/pikepdf[${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
+}