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, 28 Dec 2021 17:35:43
Message-Id: 1640712550.f177cb414baa1367568bb5aa47ad549b87654963.ionen@gentoo
1 commit: f177cb414baa1367568bb5aa47ad549b87654963
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 17:13:48 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 17:29:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f177cb41
7
8 x11-terms/guake: add 3.8.1
9
10 I don't actually use this but might as well add this bugfix release
11 since I did the previous, could use a proper maintainer given believe
12 has a decent amount of users.
13
14 Currently emits a setuptools QA warning about easy_install but this
15 is coming from using dev-python/pbr and is nothing can do about here.
16
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 x11-terms/guake/Manifest | 1 +
20 x11-terms/guake/guake-3.8.1.ebuild | 82 ++++++++++++++++++++++++++++++++++++++
21 2 files changed, 83 insertions(+)
22
23 diff --git a/x11-terms/guake/Manifest b/x11-terms/guake/Manifest
24 index 26e5994e9c91..a7903699d7fb 100644
25 --- a/x11-terms/guake/Manifest
26 +++ b/x11-terms/guake/Manifest
27 @@ -1,2 +1,3 @@
28 DIST guake-3.7.0.tar.gz 1215186 BLAKE2B ff60f83fce5fbdd3712e261bbb72247cdcb311b8208af75007183bced88fcc2d2ebe3c49b76e2264786246444e9d07a41f884de949112c249277717070d64c11 SHA512 578c42ed41049acd253e0c409a9ecb103c7f71679fc5efdd94c60461b952ac77c836e59439361e1cd70e5fe6785ab4c15e7bf73b9f4c7d23b47c77468fa05f62
29 DIST guake-3.8.0.tar.gz 1125090 BLAKE2B 72ee6b5e93c3433fcc2863d2b0aa198326cc4889126454040ce870fdeaa0ba110723410355ae49b5e2e4876fcad3f9d849873adaddfcf1ecfa83dc1583db57eb SHA512 6e0bb6b4a0c92c163bd6151c65936a38d93624166af5a4e2b042f9ade7f28683c8e8fad802b23a07edd478e2dd3b99a559069c9935f1154585be936d1b7a96ed
30 +DIST guake-3.8.1.tar.gz 1127132 BLAKE2B e91f74bf119c76ad214b5c29bceb4fe18f19c97f14dbb2973c6118bbb9affc06e919c56e0cd24f96b710d9c2468006289fcf1c13a2050e93cc01972f0c9ebe99 SHA512 5fbf4cc37bc501e4533bd27c1c7e1f783e570457867289702ab2122fcb6a55708df151e4307c4cf84a242ac1d2874ef5e8eb9411318e24eca140102a42b426f4
31
32 diff --git a/x11-terms/guake/guake-3.8.1.ebuild b/x11-terms/guake/guake-3.8.1.ebuild
33 new file mode 100644
34 index 000000000000..71d4f73f338c
35 --- /dev/null
36 +++ b/x11-terms/guake/guake-3.8.1.ebuild
37 @@ -0,0 +1,82 @@
38 +# Copyright 1999-2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +DISTUTILS_SINGLE_IMPL=1
44 +PYTHON_COMPAT=( python3_{8..10} )
45 +inherit distutils-r1 gnome2-utils virtualx xdg-utils
46 +
47 +DESCRIPTION="Drop-down terminal for GNOME"
48 +HOMEPAGE="http://guake-project.org/"
49 +SRC_URI="https://github.com/Guake/guake/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="GPL-2+"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~x86"
54 +IUSE="utempter"
55 +
56 +RDEPEND="
57 + $(python_gen_cond_dep '
58 + dev-python/dbus-python[${PYTHON_USEDEP}]
59 + dev-python/pycairo[${PYTHON_USEDEP}]
60 + dev-python/pygobject:3[${PYTHON_USEDEP}]
61 + ')
62 + dev-libs/keybinder:3[introspection]
63 + x11-libs/libnotify[introspection]
64 + x11-libs/libwnck:3[introspection]
65 + x11-libs/vte:2.91[introspection]
66 + utempter? ( sys-libs/libutempter )"
67 +BDEPEND="
68 + $(python_gen_cond_dep '
69 + dev-python/pbr[${PYTHON_USEDEP}]
70 + test? (
71 + dev-python/pyfakefs[${PYTHON_USEDEP}]
72 + dev-python/pytest-mock[${PYTHON_USEDEP}]
73 + )
74 + ')
75 + dev-libs/glib:2
76 + gnome-base/gsettings-desktop-schemas
77 + sys-devel/gettext"
78 +
79 +distutils_enable_tests pytest
80 +
81 +python_prepare_all() {
82 + distutils-r1_python_prepare_all
83 +
84 + emake PREFIX="${EPREFIX}/usr" prepare-install # paths.py.in -> paths.py
85 +
86 + export PBR_VERSION=${PV} # needed if using github's tarball
87 +}
88 +
89 +python_test() {
90 + # - uses /usr/bin/bash if SHELL is not exported
91 + # - pytest-xvfb fails with Terminated, virtx alone works
92 + SHELL=${SHELL} virtx epytest -p no:xvfb
93 +}
94 +
95 +python_install() {
96 + # done here so tests don't use the system's
97 + sed -e "/^SCHEMA_DIR/s|=.*|= \"${EPREFIX}/usr/share/glib-2.0/schemas\"|" \
98 + -e "/def get_default_data_dir/{n;s|=.*|= \"${EPREFIX}/usr/share/guake\"|}" \
99 + -i "${BUILD_DIR}"/lib/guake/paths.py || die
100 + rm -r "${BUILD_DIR}"/lib/guake/tests || die
101 +
102 + distutils-r1_python_install
103 +}
104 +
105 +python_install_all() {
106 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-{locale,schemas}
107 +
108 + dodoc NEWS.rst README.rst
109 +}
110 +
111 +pkg_postinst() {
112 + gnome2_schemas_update
113 + xdg_desktop_database_update
114 +}
115 +
116 +pkg_postrm() {
117 + gnome2_schemas_update
118 + xdg_desktop_database_update
119 +}