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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C532138359 for ; Mon, 7 Sep 2020 06:49:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1152E0957; Mon, 7 Sep 2020 06:49:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A31BBE0957 for ; Mon, 7 Sep 2020 06:49:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98573340C19 for ; Mon, 7 Sep 2020 06:49:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1468E339 for ; Mon, 7 Sep 2020 06:49:09 +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: <1599461341.3b56374fd8f551dc7234b3b91495b4df2ed6daf7.hanno@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cropgui/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/cropgui/Manifest media-gfx/cropgui/cropgui-0.5.ebuild X-VCS-Directories: media-gfx/cropgui/ X-VCS-Committer: hanno X-VCS-Committer-Name: Hanno Böck X-VCS-Revision: 3b56374fd8f551dc7234b3b91495b4df2ed6daf7 X-VCS-Branch: master Date: Mon, 7 Sep 2020 06:49:09 +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: eeb88958-9a29-4380-b62d-755fd3b8a694 X-Archives-Hash: f8f2714e05b40b44420006efdef383fb commit: 3b56374fd8f551dc7234b3b91495b4df2ed6daf7 Author: Hanno Böck gentoo org> AuthorDate: Mon Sep 7 06:49:01 2020 +0000 Commit: Hanno Böck gentoo org> CommitDate: Mon Sep 7 06:49:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b56374f media-gfx/cropgui: Version bump and Python 3.9 support Signed-off-by: Hanno Böck gentoo.org> Package-Manager: Portage-3.0.5, Repoman-3.0.1 media-gfx/cropgui/Manifest | 1 + media-gfx/cropgui/cropgui-0.5.ebuild | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/media-gfx/cropgui/Manifest b/media-gfx/cropgui/Manifest index 3363c1a7d37..d5be785ed8e 100644 --- a/media-gfx/cropgui/Manifest +++ b/media-gfx/cropgui/Manifest @@ -1 +1,2 @@ DIST cropgui-0.4.1.tar.gz 852958 BLAKE2B dcc6ba775e49af9a9fe1054fe5246e87e044f47cb7ca20712e5048dd1fa0fda35ee90c38cf733540913d0220eb58ab0a6dcfe93c7b02ebb9e022529b8add6c1c SHA512 85b0c2c57faecdd7db15e417234f2ea50fc5edbdcacaedcfc53cda68c3a070f4ba0201bff9afbaa3de7c51552309df1ac3e87586b4021e68bbb255a2545d92da +DIST cropgui-0.5.tar.gz 853934 BLAKE2B ac7cf32495e3ac728223994f79252fd98a0a5cf7da79a9c6796ce3d7b213c797b16250be5d23a1bc6bed492f142a95411d6cbd42fe34242016c4e0181bfd90c4 SHA512 2babea9ea6089c74637c9023ea08c2ae4f666fbf44bb73d7a301de6fee6848e65a86fab312e765f7bd05e8e03bf3e92942d718ea84a950412385a8e0b6aa0630 diff --git a/media-gfx/cropgui/cropgui-0.5.ebuild b/media-gfx/cropgui/cropgui-0.5.ebuild new file mode 100644 index 00000000000..9f412bfb5f0 --- /dev/null +++ b/media-gfx/cropgui/cropgui-0.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +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 +}