# 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 readme.gentoo-r1

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"

DISABLE_AUTOFORMATTING=true
DOC_CONTENTS=\
"""To use Lapwing theory, restart Plover fully (press Ctrl+Q and open it
again), and go to Configure > System > Change the system to \"Lapwing\".

For more info on setup, see https://lapwing.aerick.ca/Chapter-05.html"""

# 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}]
"

python_install_all() {
	default
	readme.gentoo_create_doc
}

pkg_postinst() {
	readme.gentoo_print_elog
}