Gentoo Archives: gentoo-commits

From: Adam Feldman <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/mozo/
Date: Fri, 25 Sep 2020 20:32:59
Message-Id: 1601065956.57866a6cee443d6edbfe1e9c7d62105f85e0382f.np-hardass@gentoo
1 commit: 57866a6cee443d6edbfe1e9c7d62105f85e0382f
2 Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 6 22:28:14 2020 +0000
4 Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 20:32:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57866a6c
7
8 x11-misc/mozo: Update python, fix deps
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org>
12
13 x11-misc/mozo/mozo-1.24.0-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++++
14 1 file changed, 69 insertions(+)
15
16 diff --git a/x11-misc/mozo/mozo-1.24.0-r1.ebuild b/x11-misc/mozo/mozo-1.24.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..8977a145b15
19 --- /dev/null
20 +++ b/x11-misc/mozo/mozo-1.24.0-r1.ebuild
21 @@ -0,0 +1,69 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python{3_6,3_7,3_8} )
28 +PYTHON_REQ_USE="xml"
29 +
30 +inherit mate python-r1
31 +
32 +if [[ ${PV} != 9999 ]]; then
33 + KEYWORDS="~amd64 ~arm ~arm64 ~x86"
34 +fi
35 +
36 +DESCRIPTION="Mozo menu editor for MATE"
37 +LICENSE="GPL-2+ GPL-3+ LGPL-2+ LGPL-2.1+"
38 +SLOT="0"
39 +IUSE=""
40 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
41 +
42 +COMMON_DEPEND="${PYTHON_DEPS}
43 + >=dev-python/pygobject-3:3[${PYTHON_USEDEP}]
44 + >=mate-base/mate-menus-1.21.0[introspection]
45 + x11-libs/gdk-pixbuf:2[introspection]
46 + >=x11-libs/gtk+-3.22:3[introspection]
47 + !!x11-misc/mate-menu-editor
48 +"
49 +
50 +RDEPEND="${COMMON_DEPEND}
51 + virtual/libintl
52 +"
53 +
54 +DEPEND="${COMMON_DEPEND}
55 + >=sys-devel/gettext-0.19.8
56 + virtual/pkgconfig
57 +"
58 +
59 +src_prepare() {
60 + mate_src_prepare
61 + python_copy_sources
62 +}
63 +
64 +src_configure() {
65 + python_foreach_impl run_in_build_dir mate_src_configure \
66 + --disable-icon-update
67 +}
68 +
69 +src_compile() {
70 + python_foreach_impl run_in_build_dir default
71 +}
72 +
73 +src_test() {
74 + python_foreach_impl run_in_build_dir emake check
75 +}
76 +
77 +src_install() {
78 + installing() {
79 + mate_src_install
80 +
81 + # Massage shebang to make python_doscript happy
82 + sed -e 's:#! '"${PYTHON}:#!/usr/bin/python:" \
83 + -i mozo || die
84 +
85 + python_doscript mozo
86 + python_optimize
87 + }
88 +
89 + python_foreach_impl run_in_build_dir installing
90 +}