Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/xapp/
Date: Fri, 21 Jan 2022 17:15:41
Message-Id: 1642785248.8fd5476fe392e3d6274a80a723a6065d7145ff68.sam@gentoo
1 commit: 8fd5476fe392e3d6274a80a723a6065d7145ff68
2 Author: Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com>
3 AuthorDate: Tue Dec 28 06:26:16 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 21 17:14:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fd5476f
7
8 x11-libs/xapp: 2.2.8 version bump
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 x11-libs/xapp/Manifest | 1 +
15 x11-libs/xapp/xapp-2.2.8.ebuild | 91 +++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 92 insertions(+)
17
18 diff --git a/x11-libs/xapp/Manifest b/x11-libs/xapp/Manifest
19 index 7bdeab61e644..86a384f507fa 100644
20 --- a/x11-libs/xapp/Manifest
21 +++ b/x11-libs/xapp/Manifest
22 @@ -1 +1,2 @@
23 DIST xapp-2.2.4.tar.gz 242171 BLAKE2B a2e53123776f3f0739778673d08f165d268f5d632ce57d722ac443a7201c22c14c1c88e08247f6c16dd708a01b2dd566d4bd9d55289d70eb50ba29b8f2a0987d SHA512 428fd4dc1911905d6f940c6e38fc8b572d55bcb2691d45ac807276ef554b781c9f6c57bbd6d0a95bf52ca1703a38d260f36a61b88a94bc2dc0812b575839a983
24 +DIST xapp-2.2.8.tar.gz 245519 BLAKE2B cea0999a544143b8bfdd77cfb19ac794806cf7f20ce85a16d682227c164633fdcd4aacddf0235ade19732007cccc62e789f420081b0094f890b41e703ec96ff1 SHA512 eb8da7bd0b5bcdef46ebc5caf7f688eaa3e4a11f4e54dd0f37f006c2f52356bd38d361b35ae7d670cb3e34bb6e9fed8b132d998750e9cd64c110d230437d5636
25
26 diff --git a/x11-libs/xapp/xapp-2.2.8.ebuild b/x11-libs/xapp/xapp-2.2.8.ebuild
27 new file mode 100644
28 index 000000000000..48803592d1e1
29 --- /dev/null
30 +++ b/x11-libs/xapp/xapp-2.2.8.ebuild
31 @@ -0,0 +1,91 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7,8,9,10} )
38 +VALA_USE_DEPEND="vapigen"
39 +
40 +inherit gnome2-utils vala meson python-r1 xdg-utils
41 +
42 +DESCRIPTION="Cross-desktop libraries and common resources"
43 +HOMEPAGE="https://github.com/linuxmint/xapp/"
44 +LICENSE="GPL-3"
45 +
46 +SRC_URI="https://github.com/linuxmint/xapp/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
48 +
49 +SLOT="0"
50 +IUSE="gtk-doc introspection static-libs"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +RDEPEND="
54 + ${PYTHON_DEPS}
55 + >=dev-libs/glib-2.44.0:2
56 + dev-libs/gobject-introspection:0=
57 + dev-libs/libdbusmenu[gtk3]
58 + gnome-base/libgnomekbd
59 + x11-libs/cairo
60 + >=x11-libs/gdk-pixbuf-2.22.0:2[introspection?]
61 + >=x11-libs/gtk+-3.16.0:3[introspection?]
62 + x11-libs/libxkbfile
63 +"
64 +DEPEND="
65 + ${RDEPEND}
66 +"
67 +BDEPEND="
68 + ${PYTHON_DEPS}
69 + $(vala_depend)
70 + dev-python/pygobject:3[${PYTHON_USEDEP}]
71 + dev-util/gdbus-codegen
72 + dev-util/glib-utils
73 + sys-devel/gettext
74 +
75 + gtk-doc? ( dev-util/gtk-doc )
76 +"
77 +
78 +src_prepare() {
79 + vala_src_prepare
80 + default
81 +
82 + # don't install distro specific tools
83 + sed -i "/subdir('scripts')/d" meson.build || die
84 +
85 + # Fix meson helpers
86 + python_setup
87 + python_fix_shebang meson-scripts
88 +}
89 +
90 +src_configure() {
91 + local emesonargs=(
92 + $(meson_use gtk-doc docs)
93 + -Dpy-overrides-dir="/pygobject"
94 + )
95 + meson_src_configure
96 +}
97 +
98 +src_install() {
99 + meson_src_install
100 +
101 + # copy pygobject files to each active python target
102 + # work-around for "py-overrides-dir" only supporting a single target
103 + install_pygobject_override() {
104 + PYTHON_GI_OVERRIDESDIR=$("${EPYTHON}" -c 'import gi;print(gi._overridesdir)' || die)
105 + einfo "gobject overrides directory: ${PYTHON_GI_OVERRIDESDIR}"
106 + mkdir -p "${D}/${PYTHON_GI_OVERRIDESDIR}/" || die
107 + cp -r "${D}"/pygobject/* "${D}/${PYTHON_GI_OVERRIDESDIR}/" || die
108 + python_optimize "${D}/${PYTHON_GI_OVERRIDESDIR}/"
109 + }
110 + python_foreach_impl install_pygobject_override
111 + rm -r "${D}/pygobject" || die
112 +}
113 +
114 +pkg_postinst() {
115 + xdg_icon_cache_update
116 + gnome2_schemas_update
117 +}
118 +
119 +pkg_postrm() {
120 + xdg_icon_cache_update
121 + gnome2_schemas_update
122 +}