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

EAPI="8"

inherit autotools

MY_P="${P^g}"

DESCRIPTION="Kakasi binding for Gauche"
HOMEPAGE="https://osdn.jp/projects/gauche/"
SRC_URI="https://downloads.sourceforge.net/${PN%-*}/${MY_P}.tgz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND=">=app-i18n/kakasi-2.3.4
	dev-scheme/gauche:="
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

PATCHES=( "${FILESDIR}"/${PN}-gauche-package.patch )

src_prepare() {
	default

	mv configure.{in,ac} || die
	eautoreconf
}