From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0043615800F for ; Tue, 21 Feb 2023 08:24:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 242D1E0D47; Tue, 21 Feb 2023 08:24:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06713E0D47 for ; Tue, 21 Feb 2023 08:24:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2FD8340CC3 for ; Tue, 21 Feb 2023 08:24:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 607ED88E for ; Tue, 21 Feb 2023 08:24:42 +0000 (UTC) From: "Hanno Böck" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hanno Böck" Message-ID: <1676967829.222e7cd8cd15b61cc391e653dd4d5814386980c4.hanno@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cropgui/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/cropgui/cropgui-0.6-r2.ebuild X-VCS-Directories: media-gfx/cropgui/ X-VCS-Committer: hanno X-VCS-Committer-Name: Hanno Böck X-VCS-Revision: 222e7cd8cd15b61cc391e653dd4d5814386980c4 X-VCS-Branch: master Date: Tue, 21 Feb 2023 08:24:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d027ffd1-d1b8-4966-9bb0-f64d4c8641c4 X-Archives-Hash: 4bee2c4afba6dfd9e90f3842a0d69518 commit: 222e7cd8cd15b61cc391e653dd4d5814386980c4 Author: Hanno Böck gentoo org> AuthorDate: Tue Feb 21 08:23:49 2023 +0000 Commit: Hanno Böck gentoo org> CommitDate: Tue Feb 21 08:23:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=222e7cd8 media-gfx/cropgui: Python 3.11 support, EAPI 8. Signed-off-by: Hanno Böck gentoo.org> media-gfx/cropgui/cropgui-0.6-r2.ebuild | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) 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 +}