# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{12..13} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 optfeature xdg git-r3 DESCRIPTION="Graphical client for the Soulseek peer to peer network written in Python" HOMEPAGE="https://nicotine-plus.org/" EGIT_REPO_URI="https://github.com/nicotine-plus/nicotine-plus" LICENSE="GPL-3+ MIT CC-BY-SA-4.0" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" # NOTE: good link - https://github.com/nicotine-plus/nicotine-plus/blob/master/doc/DEPENDENCIES.md BDEPEND=" sys-devel/gettext test? ( >=gui-libs/gtk-4.6.9[broadway] ) " RDEPEND=" dev-python/pygobject:3[${PYTHON_USEDEP}] >=gui-libs/gtk-4.6.9[introspection] " DOCS=( {AUTHORS,NEWS,README}.md ) distutils_enable_tests pytest pkg_postinst() { xdg_pkg_postinst xdg_icon_cache_update elog "Nicotine can work with both gtk3+ and gtk4." elog "The newer version is preferred but it has worse screen reader support" elog "If you need it you can switch to gtk3+ by running nicotine" elog "with an environmental variable like this:" elog " $ NICOTINE_GTK_VERSION=3 nicotine" optfeature "Adwaita theme on GNOME (GTK 4)" gui-libs/libadwaita }