gentoo-ebuilds/x11-misc/xflux-gui/xflux-gui-2.0-r1.ebuild
Conrad Kostecki e3e3c18754
x11-misc/xflux-gui: add python3.13 support
Closes: https://bugs.gentoo.org/952778
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2025-03-28 21:20:15 +01:00

47 lines
1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 gnome2-utils
DESCRIPTION="A GUI for f.lux"
HOMEPAGE="https://github.com/xflux-gui/fluxgui/"
SRC_URI="https://github.com/${PN}/fluxgui/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/fluxgui-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RDEPEND="
dev-libs/libayatana-appindicator
dev-python/pexpect[${PYTHON_USEDEP}]
dev-python/pygobject[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
x11-libs/libXxf86vm
x11-misc/xflux
"
python_compile() {
# Don't let the package compiling the schemas,
# as this could cause a file collision
export DISABLE_GSCHEMAS_COMPILED="true"
distutils-r1_python_compile
}
pkg_postinst() {
gnome2_schemas_update
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
gnome2_schemas_update
xdg_desktop_database_update
xdg_icon_cache_update
}