media-gfx/drawing: enable py3.12

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-09-27 20:02:21 +03:00
parent 171f87f383
commit 21f97fb245
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -1,9 +1,9 @@
# Copyright 1999-2022 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
PYTHON_COMPAT=( python3_{8..11} ) PYTHON_COMPAT=( python3_{10..12} )
inherit gnome2-utils meson python-single-r1 xdg inherit gnome2-utils meson python-single-r1 xdg
@ -12,14 +12,12 @@ HOMEPAGE="https://github.com/maoschanz/drawing"
if [[ "${PV}" == *9999* ]]; then if [[ "${PV}" == *9999* ]]; then
inherit git-r3 inherit git-r3
EGIT_REPO_URI="https://github.com/maoschanz/${PN}.git" EGIT_REPO_URI="https://github.com/maoschanz/drawing.git"
else else
SRC_URI="https://github.com/maoschanz/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/maoschanz/drawing/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64" KEYWORDS="~amd64"
fi fi
IUSE="doc"
LICENSE="GPL-3" LICENSE="GPL-3"
SLOT="0" SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}" REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@ -30,22 +28,24 @@ RESTRICT="test"
DEPEND=" DEPEND="
${PYTHON_DEPS} ${PYTHON_DEPS}
dev-libs/glib:2 dev-libs/glib:2
dev-python/pygobject[cairo]
x11-libs/gtk+:3 x11-libs/gtk+:3
$(python_gen_cond_dep '
dev-python/pygobject[cairo,${PYTHON_USEDEP}]
')
" "
RDEPEND=" RDEPEND="
${DEPEND} ${DEPEND}
" "
BDEPEND=" BDEPEND="
doc? ( dev-libs/appstream-glib
dev-util/itstool dev-util/itstool
sys-devel/gettext sys-devel/gettext
)
" "
src_configure() { src_configure() {
local emesonargs=( local emesonargs=(
$(meson_use doc enable-translation-and-appdate) -Denable-translations-and-appdata=true
-Duse-uuid-as-binary-name=false
) )
meson_src_configure meson_src_configure
} }