Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/guake/
Date: Tue, 19 Oct 2021 23:22:50
Message-Id: 1634685475.45610482483e87c29eff98aa371cd7c8d995a6a1.ionen@gentoo
1 commit: 45610482483e87c29eff98aa371cd7c8d995a6a1
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 19 20:17:06 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 19 23:17:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45610482
7
8 x11-terms/guake: add 3.8.0
9
10 Enabled tests, added py3.10, and fixed prefix support.
11
12 Switched to github tarball given pypi is both outdated and
13 lacking tests.
14
15 paths.py / schemas are bit of a handful to get right, there's
16 likely a better way to work this out but going with this for now.
17
18 Closes: https://bugs.gentoo.org/811537
19 Closes: https://bugs.gentoo.org/818793
20 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
21
22 x11-terms/guake/Manifest | 1 +
23 x11-terms/guake/guake-3.8.0.ebuild | 85 ++++++++++++++++++++++++++++++++++++++
24 2 files changed, 86 insertions(+)
25
26 diff --git a/x11-terms/guake/Manifest b/x11-terms/guake/Manifest
27 index c48e5702990..26e5994e9c9 100644
28 --- a/x11-terms/guake/Manifest
29 +++ b/x11-terms/guake/Manifest
30 @@ -1 +1,2 @@
31 DIST guake-3.7.0.tar.gz 1215186 BLAKE2B ff60f83fce5fbdd3712e261bbb72247cdcb311b8208af75007183bced88fcc2d2ebe3c49b76e2264786246444e9d07a41f884de949112c249277717070d64c11 SHA512 578c42ed41049acd253e0c409a9ecb103c7f71679fc5efdd94c60461b952ac77c836e59439361e1cd70e5fe6785ab4c15e7bf73b9f4c7d23b47c77468fa05f62
32 +DIST guake-3.8.0.tar.gz 1125090 BLAKE2B 72ee6b5e93c3433fcc2863d2b0aa198326cc4889126454040ce870fdeaa0ba110723410355ae49b5e2e4876fcad3f9d849873adaddfcf1ecfa83dc1583db57eb SHA512 6e0bb6b4a0c92c163bd6151c65936a38d93624166af5a4e2b042f9ade7f28683c8e8fad802b23a07edd478e2dd3b99a559069c9935f1154585be936d1b7a96ed
33
34 diff --git a/x11-terms/guake/guake-3.8.0.ebuild b/x11-terms/guake/guake-3.8.0.ebuild
35 new file mode 100644
36 index 00000000000..c4f5e779132
37 --- /dev/null
38 +++ b/x11-terms/guake/guake-3.8.0.ebuild
39 @@ -0,0 +1,85 @@
40 +# Copyright 1999-2021 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=7
44 +
45 +DISTUTILS_SINGLE_IMPL=1
46 +PYTHON_COMPAT=( python3_{8..10} )
47 +inherit distutils-r1 gnome2-utils virtualx xdg-utils
48 +
49 +DESCRIPTION="Drop-down terminal for GNOME"
50 +HOMEPAGE="http://guake-project.org/"
51 +SRC_URI="https://github.com/Guake/guake/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="GPL-2+"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~x86"
56 +IUSE="utempter"
57 +
58 +RDEPEND="
59 + $(python_gen_cond_dep '
60 + dev-python/dbus-python[${PYTHON_USEDEP}]
61 + dev-python/pycairo[${PYTHON_USEDEP}]
62 + dev-python/pygobject:3[${PYTHON_USEDEP}]
63 + ')
64 + dev-libs/keybinder:3[introspection]
65 + x11-libs/libnotify[introspection]
66 + x11-libs/libwnck:3[introspection]
67 + x11-libs/vte:2.91[introspection]
68 + utempter? ( sys-libs/libutempter )"
69 +BDEPEND="
70 + $(python_gen_cond_dep '
71 + dev-python/pbr[${PYTHON_USEDEP}]
72 + test? (
73 + dev-python/pyfakefs[${PYTHON_USEDEP}]
74 + dev-python/pytest-mock[${PYTHON_USEDEP}]
75 + )
76 + ')
77 + dev-libs/glib:2
78 + gnome-base/gsettings-desktop-schemas
79 + sys-devel/gettext"
80 +
81 +distutils_enable_tests pytest
82 +
83 +python_prepare_all() {
84 + distutils-r1_python_prepare_all
85 +
86 + emake PREFIX="${EPREFIX}/usr" prepare-install # paths.py.in -> paths.py
87 +
88 + rm pyproject.toml || die # pytest fails if toml isn't installed
89 +
90 + export PBR_VERSION=${PV} # needed if using github's tarball
91 +}
92 +
93 +python_test() {
94 + # uses /usr/bin/bash if SHELL is not exported
95 + SHELL=${SHELL} virtx distutils-r1_python_test
96 +}
97 +
98 +python_install() {
99 + # done here so tests don't use the system's
100 + sed -e "/^SCHEMA_DIR/s|=.*|= \"${EPREFIX}/usr/share/glib-2.0/schemas\"|" \
101 + -e "/def get_default_data_dir/{n;s|=.*|= \"${EPREFIX}/usr/share/guake\"|}" \
102 + -i "${BUILD_DIR}"/lib/guake/paths.py || die
103 + rm -r "${BUILD_DIR}"/lib/guake/tests || die
104 +
105 + distutils-r1_python_install
106 +}
107 +
108 +python_install_all() {
109 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-{locale,schemas}
110 +
111 + dodoc NEWS.rst README.rst
112 +
113 + mv "${D}"/{,"${EPREFIX}"/usr/share/}metainfo || die
114 +}
115 +
116 +pkg_postinst() {
117 + gnome2_schemas_update
118 + xdg_desktop_database_update
119 +}
120 +
121 +pkg_postrm() {
122 + gnome2_schemas_update
123 + xdg_desktop_database_update
124 +}