# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1

DESCRIPTION="SVG-based layout display plugin for Plover"
HOMEPAGE="https://github.com/opensteno/plover_svg_layout_display"
# using source directly: https://github.com/opensteno/plover_svg_layout_display/issues/4
# choosing a random commit: https://github.com/opensteno/plover_svg_layout_display/issues/5
#
# 1.0.0_pre20250911: there are no git tags (see issue 5 at above link), and
# i'm just picking a random commit
SRC_URI="
	https://github.com/opensteno/plover_svg_layout_display/archive/50790c9b7f725dbb841da04a0fd76c5d1e875d38.tar.gz -> ${P}.gh.tar.gz
"
S="${WORKDIR}/plover_svg_layout_display-50790c9b7f725dbb841da04a0fd76c5d1e875d38"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# upstream does not appear to have proper list of dependencies, so some of
# these are derived from source code importing modules
DEPEND="
	>=app-misc/plover-5.0.0[${PYTHON_USEDEP}]
	dev-python/pyside
"
BDEPEND="${DEPEND}"