# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

ASPELL_LANG="Belarusian"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"

inherit aspell-dict-r1

SRC_URI="mirror://gnu/${PN%-*}/dict/${PN/aspell-/}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"

LICENSE="GPL-2"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="classic"

src_prepare() {
	! use classic && local PATCHES=( "${FILESDIR}"/aspell5-be-${PV}-official.patch )

	default
}