# Copyright 2006-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MYSPELL_DICT=(
	"sr_RS.aff"
	"sr_RS.dic"
	"sr-Latn_RS.aff"
	"sr-Latn_RS.dic"
)

MYSPELL_HYPH=(
	"hyph_sr_RS.dic"
	"hyph_sr-Latn_RS.dic"
)

MYSPELL_THESAURUS_DICTIONARIES=(
)

inherit myspell-r2

DESCRIPTION="Serbian dictionaries for myspell/hunspell"
LICENSE="LGPL-2.1"
HOMEPAGE="https://extensions.openoffice.org/en/project/serbian-cyrillic-and-latin-spelling-and-hyphenation"
SRC_URI="mirror://sourceforge/aoo-extensions/dict-sr.oxt -> ${P}.oxt"

SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"

src_prepare() {
        default
        mv sr.aff sr_RS.aff || die
        mv sr.dic sr_RS.dic || die
        mv hyph_sr.dic hyph_sr_RS.dic || die
        mv sr-Latn.aff sr-Latn_RS.aff || die
        mv sr-Latn.dic sr-Latn_RS.dic || die
        mv hyph_sr-Latn.dic hyph_sr-Latn_RS.dic || die
}