1 |
commit: e39bad9895f4d2148e40ab24a66658402744648a |
2 |
Author: Hanno Böck <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 31 20:16:33 2022 +0000 |
4 |
Commit: Hanno Böck <hanno <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 31 20:16:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e39bad98 |
7 |
|
8 |
media-gfx/cropgui: Enable python 3.10 |
9 |
|
10 |
Signed-off-by: Hanno Böck <hanno <AT> gentoo.org> |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
|
13 |
media-gfx/cropgui/cropgui-0.6-r1.ebuild | 45 +++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/cropgui/cropgui-0.6-r1.ebuild b/media-gfx/cropgui/cropgui-0.6-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..c0f740961d3c |
19 |
--- /dev/null |
20 |
+++ b/media-gfx/cropgui/cropgui-0.6-r1.ebuild |
21 |
@@ -0,0 +1,45 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{7,8,9,10} ) |
28 |
+inherit eutils python-r1 desktop xdg-utils |
29 |
+ |
30 |
+DESCRIPTION="GUI for lossless cropping of jpeg images" |
31 |
+HOMEPAGE="https://emergent.unpythonic.net/01248401946" |
32 |
+SRC_URI="https://github.com/jepler/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+ |
38 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
39 |
+ |
40 |
+DEPEND="${PYTHON_DEPS}" |
41 |
+RDEPEND="${PYTHON_DEPS} |
42 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
43 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+install_cropgui_wrapper() { |
46 |
+ python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade |
47 |
+ make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py" |
48 |
+ python_newexe "${ED}/usr/bin/${PN}.tmp" "${PN}" |
49 |
+ rm "${ED}/usr/bin/${PN}.tmp" || die |
50 |
+} |
51 |
+ |
52 |
+src_install() { |
53 |
+ python_moduleinto "${PN}" |
54 |
+ python_foreach_impl install_cropgui_wrapper |
55 |
+ |
56 |
+ domenu "${PN}.desktop" |
57 |
+ doicon "${PN}.png" |
58 |
+} |
59 |
+ |
60 |
+pkg_postinst() { |
61 |
+ xdg_desktop_database_update |
62 |
+} |
63 |
+ |
64 |
+pkg_postrm() { |
65 |
+ xdg_desktop_database_update |
66 |
+} |