# 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..15} )

inherit distutils-r1 pypi

DESCRIPTION="All-in-one Plover plugin to setup Lapwing theory"
HOMEPAGE="
	https://github.com/aerickt/plover-lapwing-aio
	https://lapwing.aerick.ca/
	https://plover.wiki/index.php/Lapwing_theory
"

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

# TODO:
#  * QA Notice: setuptools warnings detected:
#  *
#  * 	License classifiers are deprecated.
#  * 	Package 'plover_lapwing.dictionaries' is absent from the `packages` configuration.

RDEPEND="
	app-misc/plover[${PYTHON_USEDEP}]
	plover-plugin/plover-dict-commands[${PYTHON_USEDEP}]
	plover-plugin/plover-last-translation[${PYTHON_USEDEP}]
	plover-plugin/plover-modal-dictionary[${PYTHON_USEDEP}]
	plover-plugin/plover-python-dictionary[${PYTHON_USEDEP}]
	plover-plugin/plover-stitching[${PYTHON_USEDEP}]
"

pkg_postinst() {
	elog "To use Lapwing theory, restart Plover fully (press Ctrl+Q and open it"
	elog "again), and go to Configure > System > Change the system to \"Lapwing\"."
	elog ""
	elog "For more info on setup, see https://lapwing.aerick.ca/Chapter-05.html"
}