41 lines
762 B
Bash
41 lines
762 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..12} )
|
|
|
|
inherit autotools python-single-r1
|
|
|
|
LIBKKC_PV="0.3.5"
|
|
|
|
DESCRIPTION="Language model data for app-i18n/libkkc"
|
|
HOMEPAGE="https://github.com/ueno/libkkc"
|
|
SRC_URI="https://github.com/ueno/libkkc/releases/download/v${LIBKKC_PV}/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
DEPEND="
|
|
dev-libs/marisa[python]
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
cp -f "${FILESDIR}/genfilter.py" "${S}/tools/genfilter.py"
|
|
cp -f "${FILESDIR}/sortlm.py" "${S}/tools/sortlm.py"
|
|
python_fix_shebang tools/genfilter.py
|
|
python_fix_shebang tools/sortlm.py
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install
|
|
}
|