media-gfx/cropgui - 0.9-r1 (gentoo)

Search

Install

Install this version:

emerge -a =media-gfx/cropgui-0.9-r1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-gfx/cropgui-0.9-r1

Or alternatively:

emerge --autounmask-write -a =media-gfx/cropgui-0.9-r1

Package Information

Description:
GUI for lossless cropping of jpeg images
Homepage:
https://emergent.unpythonic.net/01248401946
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.9-r1 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
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},jpeg]
	dev-python/pygobject:3[${PYTHON_USEDEP}]
	media-libs/exiftool
	media-gfx/imagemagick
	x11-libs/gtk+[introspection]"

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
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/pillow[,jpeg]
	dev-python/pygobject:3[]
	media-libs/exiftool
	media-gfx/imagemagick
	x11-libs/gtk+[introspection]