summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2022-01-31 21:16:33 +0100
committerHanno Böck <hanno@gentoo.org>2022-01-31 21:16:33 +0100
commite39bad9895f4d2148e40ab24a66658402744648a (patch)
tree0496dda42bbb4f4e177a77f679a7b22481376c68 /media-gfx
parentgui-apps/mako: Stabilize 1.6-r3 amd64, #832096 (diff)
downloadgentoo-e39bad9895f4d2148e40ab24a66658402744648a.tar.gz
gentoo-e39bad9895f4d2148e40ab24a66658402744648a.tar.bz2
gentoo-e39bad9895f4d2148e40ab24a66658402744648a.zip
media-gfx/cropgui: Enable python 3.10
Signed-off-by: Hanno Böck <hanno@gentoo.org> Package-Manager: Portage-3.0.30, Repoman-3.0.3
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/cropgui/cropgui-0.6-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/media-gfx/cropgui/cropgui-0.6-r1.ebuild b/media-gfx/cropgui/cropgui-0.6-r1.ebuild
new file mode 100644
index 000000000000..c0f740961d3c
--- /dev/null
+++ b/media-gfx/cropgui/cropgui-0.6-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+inherit eutils python-r1 desktop xdg-utils
+
+DESCRIPTION="GUI for lossless cropping of jpeg images"
+HOMEPAGE="https://emergent.unpythonic.net/01248401946"
+SRC_URI="https://github.com/jepler/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]"
+
+install_cropgui_wrapper() {
+ python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
+ make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
+ python_newexe "${ED}/usr/bin/${PN}.tmp" "${PN}"
+ rm "${ED}/usr/bin/${PN}.tmp" || die
+}
+
+src_install() {
+ python_moduleinto "${PN}"
+ python_foreach_impl install_cropgui_wrapper
+
+ domenu "${PN}.desktop"
+ doicon "${PN}.png"
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}