diff options
author | Hanno Böck <hanno@gentoo.org> | 2024-06-10 09:12:58 +0200 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2024-06-10 09:13:03 +0200 |
commit | 4e53e822bbb9030932cdf8d5e0efefd62d820262 (patch) | |
tree | 47d6e3a90c898ec473a82debeebd4d014de7a478 /media-gfx/cropgui | |
parent | dev-ruby/sprockets-rails: add 3.5.1 (diff) | |
download | gentoo-4e53e822bbb9030932cdf8d5e0efefd62d820262.tar.gz gentoo-4e53e822bbb9030932cdf8d5e0efefd62d820262.tar.bz2 gentoo-4e53e822bbb9030932cdf8d5e0efefd62d820262.zip |
media-gfx/cropgui: add 0.8
Signed-off-by: Hanno Böck <hanno@gentoo.org>
Diffstat (limited to 'media-gfx/cropgui')
-rw-r--r-- | media-gfx/cropgui/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/cropgui/cropgui-0.8.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/media-gfx/cropgui/Manifest b/media-gfx/cropgui/Manifest index 73b9c62cd373..b18c7e67cdd2 100644 --- a/media-gfx/cropgui/Manifest +++ b/media-gfx/cropgui/Manifest @@ -1 +1,2 @@ DIST cropgui-0.7.tar.gz 855705 BLAKE2B d2693034b3e3a4355f58c4d17d355721189da8442b5d49ba4c11dc0033371c74301a99c001613c427375bdb9cd733f56a870186a6a59b631feaae93dbd69b232 SHA512 ea06527bdd80382bf4986ea1eea8d3c0e11ea60c472bebb489fdc3bd8206f087d0377d769e8fe86ec4573f6d510266443fd25134894b91206e1c5c9d6f7cf563 +DIST cropgui-0.8.tar.gz 857102 BLAKE2B 0fb1dd24c282e6c5595de97dc2c52d20e7c1200d7092edb8e3173276873c49512088f1fc8deed0c1e3d6b606009fe06f3c38cf98c7dac15dd74ccbdab2d71539 SHA512 911bea2b989ce53afeaf067fe5d718440b0a15c26b9488259569f1a287c8128cb7244bcb0721b15ec3564644a0ba8e9ed2991d275420bf3e3659cb0be2e8622d diff --git a/media-gfx/cropgui/cropgui-0.8.ebuild b/media-gfx/cropgui/cropgui-0.8.ebuild new file mode 100644 index 000000000000..b089224257bf --- /dev/null +++ b/media-gfx/cropgui/cropgui-0.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12} ) +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}] + media-libs/exiftool + media-gfx/imagemagick" + +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 +} |