diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2016-01-28 13:29:59 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2016-01-28 13:30:33 +0300 |
commit | 77ac2746662fcb33b9fd9f1dbe8a2b3c4d103316 (patch) | |
tree | 3e032c8c97d5f500e7b01822ee28966baee8b538 /media-gfx/cropgui/cropgui-9999.ebuild | |
parent | 8413ef8501adfc56904f264d2e7372ae61611919 (diff) | |
download | gentoo-77ac2746662fcb33b9fd9f1dbe8a2b3c4d103316.tar.gz gentoo-77ac2746662fcb33b9fd9f1dbe8a2b3c4d103316.tar.xz |
media-gfx/cropgui: version bump
Gentoo-Bug: 569654
Package-Manager: portage-2.2.26
Diffstat (limited to 'media-gfx/cropgui/cropgui-9999.ebuild')
-rw-r--r-- | media-gfx/cropgui/cropgui-9999.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-gfx/cropgui/cropgui-9999.ebuild b/media-gfx/cropgui/cropgui-9999.ebuild new file mode 100644 index 00000000000..ac8de05757e --- /dev/null +++ b/media-gfx/cropgui/cropgui-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +EGIT_REPO_URI="https://github.com/jepler/cropgui.git" +PYTHON_COMPAT=( python2_7 ) +inherit eutils git-r3 python-r1 + +DESCRIPTION="GUI for lossless cropping of jpeg images" +HOMEPAGE="http://emergent.unpythonic.net/01248401946" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${PYTHON_DEPS} + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + dev-python/pygtk:2[${PYTHON_USEDEP}] +" + +src_prepare() { + sed -i -e '/Encoding/d' \ + -e '/Version/d' \ + -e '/MimeType/s/$/&;/' \ + -e '/Categories/s/Application;//' \ + cropgui.desktop || die 'sed on cropgui.desktop failed' + + eapply_user +} + +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() { + local python_moduleroot="${PN}" + python_foreach_impl install_cropgui_wrapper + + domenu "${PN}.desktop" + doicon "${PN}.png" +} |