gui-apps/gradience: enable py3.12

fix tests
fix dependencies

Closes: https://bugs.gentoo.org/921925
Closes: https://bugs.gentoo.org/931453
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy
2024-05-14 20:44:21 -04:00
parent 0e462e8a00
commit 0231d01eb8
2 changed files with 33 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
diff --git a/data/meson.build b/data/meson.build
index fdebf9be..985ed36e 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -50,11 +50,6 @@ appstream_file = i18n.merge_file(
)
appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
- test('Validate appstream file', appstream_util,
- args: ['validate', appstream_file.full_path()]
- )
-endif
configure_file(
input: '@0@.gschema.xml.in'.format(PROJECT_RDNN_NAME),

View File

@@ -1,8 +1,8 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_COMPAT=( python3_{10..12} )
inherit meson xdg python-single-r1
@@ -31,17 +31,24 @@ DEPEND="
x11-themes/hicolor-icon-theme
>=gui-libs/gtk-4.5.0:4
>=gui-libs/libadwaita-1.2:1=
>=dev-python/pygobject-3.42.2:3
>=dev-python/anyascii-0.3
dev-python/material-color-utilities
dev-python/svglib
dev-python/yapsy
dev-python/cssutils
dev-python/jinja
dev-python/aiohttp
$(python_gen_cond_dep '
>=dev-python/pygobject-3.42.2:3[${PYTHON_USEDEP}]
>=dev-python/anyascii-0.3[${PYTHON_USEDEP}]
dev-python/material-color-utilities[${PYTHON_USEDEP}]
dev-python/svglib[${PYTHON_USEDEP}]
dev-python/yapsy[${PYTHON_USEDEP}]
dev-python/cssutils[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
')
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/appstream-test-ignore.patch
)
src_prepare() {
default
xdg_environment_reset