diff options
author | Hanno Böck <hanno@gentoo.org> | 2023-02-21 09:23:49 +0100 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2023-02-21 09:23:49 +0100 |
commit | 222e7cd8cd15b61cc391e653dd4d5814386980c4 (patch) | |
tree | e36469f74f623779279e3248c9e470170addd667 /media-gfx/cropgui | |
parent | dev-ruby/rack: Stabilize 2.2.6.2 ppc, #895664 (diff) | |
download | gentoo-222e7cd8cd15b61cc391e653dd4d5814386980c4.tar.gz gentoo-222e7cd8cd15b61cc391e653dd4d5814386980c4.tar.bz2 gentoo-222e7cd8cd15b61cc391e653dd4d5814386980c4.zip |
media-gfx/cropgui: Python 3.11 support, EAPI 8.
Signed-off-by: Hanno Böck <hanno@gentoo.org>
Diffstat (limited to 'media-gfx/cropgui')
-rw-r--r-- | media-gfx/cropgui/cropgui-0.6-r2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/media-gfx/cropgui/cropgui-0.6-r2.ebuild b/media-gfx/cropgui/cropgui-0.6-r2.ebuild new file mode 100644 index 000000000000..8526868539b5 --- /dev/null +++ b/media-gfx/cropgui/cropgui-0.6-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11} ) +inherit python-r1 desktop wrapper 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 +} |