Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygobject/
Date: Sun, 19 Mar 2023 23:38:30
Message-Id: 1679269098.05b039ecd4fa117cce964582eb368062c6d69eb4.mattst88@gentoo
1 commit: 05b039ecd4fa117cce964582eb368062c6d69eb4
2 Author: Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 19 18:16:12 2023 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 23:38:18 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05b039ec
7
8 dev-python/pygobject: Version bump to 3.44.0
9
10 Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/30237
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 dev-python/pygobject/Manifest | 1 +
15 dev-python/pygobject/pygobject-3.44.0.ebuild | 74 ++++++++++++++++++++++++++++
16 2 files changed, 75 insertions(+)
17
18 diff --git a/dev-python/pygobject/Manifest b/dev-python/pygobject/Manifest
19 index 64b1d99664d3..44372501a093 100644
20 --- a/dev-python/pygobject/Manifest
21 +++ b/dev-python/pygobject/Manifest
22 @@ -1,2 +1,3 @@
23 DIST pygobject-3.42.2.tar.xz 558724 BLAKE2B 3e98cf52e818eff42beb8b6120ee8eb4cbe3a6f49670d355e1081b71d411bc93fc701cc37108a321cfcc19698c39b8b61cce5a9369d871da58fd2a2c0455fb96 SHA512 eb604f839e0702e8aeff0f19665e44c05c56cae02ce892e9ab8a95ddb0d5d0216182d0c9a0059fc8e05990c0d5707f2f7456d8924bbfb95ce1d9a42908ac0119
24 DIST pygobject-3.43.1.tar.xz 559504 BLAKE2B d8424b34a7945d2ef98bcaff009e5a5555281c187cb8d28cffdcddbec5b16b20619cbb64c3e1ccf23128c4ff4f8187151ca75044977ffb563506085816d886f4 SHA512 e12e53368a94f49daacf24519d9bd65ca11481d6a3059635bebaec43a84d2620fb619c2eac36f7f6b0202a6268b1990f9452355e13b114a4988de18fe30ce66e
25 +DIST pygobject-3.44.0.tar.xz 559572 BLAKE2B ff94b38879d5955a3ef1845b5a2c65ec61e058ea54e0a696093c95d68eb39ca131601cdfbc165d120df6fd81404d096b7164941775354a43b878fb1d08e5b973 SHA512 d6b54b85a130e0d23ec41d6e3c2d5ef7a141193f5ae8cadcea939ad37389109f43900debd51d66611699b653e5af5ee8e4c500e08cf3ea16dcdac109e819cd2a
26
27 diff --git a/dev-python/pygobject/pygobject-3.44.0.ebuild b/dev-python/pygobject/pygobject-3.44.0.ebuild
28 new file mode 100644
29 index 000000000000..4973eef2ad38
30 --- /dev/null
31 +++ b/dev-python/pygobject/pygobject-3.44.0.ebuild
32 @@ -0,0 +1,74 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=no
39 +PYTHON_COMPAT=( python3_{9..11} pypy3 )
40 +
41 +inherit gnome.org meson virtualx xdg distutils-r1
42 +
43 +DESCRIPTION="Python bindings for GObject Introspection"
44 +HOMEPAGE="https://pygobject.readthedocs.io/"
45 +
46 +LICENSE="LGPL-2.1+"
47 +SLOT="3"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="+cairo examples test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + >=dev-libs/glib-2.56:2
54 + >=dev-libs/gobject-introspection-1.56:=
55 + dev-libs/libffi:=
56 + cairo? (
57 + >=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}]
58 + x11-libs/cairo[glib]
59 + )
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 + test? (
64 + >=app-accessibility/at-spi2-core-2.46.0[introspection]
65 + dev-python/pytest[${PYTHON_USEDEP}]
66 + x11-libs/gdk-pixbuf:2[introspection,jpeg]
67 + x11-libs/gtk+:3[introspection]
68 + x11-libs/pango[introspection]
69 + )
70 +"
71 +BDEPEND="virtual/pkgconfig"
72 +
73 +python_configure() {
74 + local emesonargs=(
75 + $(meson_feature cairo pycairo)
76 + $(meson_use test tests)
77 + -Dpython="${EPYTHON}"
78 + )
79 + meson_src_configure
80 +}
81 +
82 +python_compile() {
83 + meson_src_compile
84 +}
85 +
86 +src_test() {
87 + virtx distutils-r1_src_test
88 +}
89 +
90 +python_test() {
91 + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
92 + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
93 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
94 + local -x XDG_CACHE_HOME="${T}/${EPYTHON}"
95 + meson_src_test --timeout-multiplier 3 || die "test failed for ${EPYTHON}"
96 +}
97 +
98 +python_install() {
99 + meson_src_install
100 + python_optimize
101 +}
102 +
103 +python_install_all() {
104 + distutils-r1_python_install_all
105 + use examples && dodoc -r examples
106 +}