2021-09-14 11:13:06 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2013-01-29 23:07:16 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-09-14 11:13:06 +03:00
|
|
|
EAPI=7
|
2013-01-29 23:07:16 +04:00
|
|
|
|
2021-09-14 11:13:06 +03:00
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=no
|
2013-08-05 09:48:51 +04:00
|
|
|
inherit distutils-r1
|
2013-01-29 23:07:16 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Python binding for MeCab"
|
2021-09-14 11:13:06 +03:00
|
|
|
HOMEPAGE="https://taku910.github.io/mecab/"
|
2018-07-22 21:57:45 +03:00
|
|
|
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN%-*}/${P}.tar.gz"
|
2013-01-29 23:07:16 +04:00
|
|
|
|
|
|
|
LICENSE="|| ( BSD LGPL-2.1 GPL-2 )"
|
|
|
|
SLOT="0"
|
2015-05-15 15:36:44 +03:00
|
|
|
KEYWORDS="amd64 ~ia64 ppc64 x86"
|
2013-01-29 23:07:16 +04:00
|
|
|
|
2013-08-05 09:48:51 +04:00
|
|
|
DEPEND="~app-text/mecab-${PV}"
|
2013-01-29 23:07:16 +04:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2018-07-22 21:57:45 +03:00
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-python3.patch )
|
|
|
|
DOCS=( AUTHORS README test.py )
|
2013-08-05 09:48:51 +04:00
|
|
|
HTML_DOCS=( bindings.html )
|
2021-09-14 11:13:06 +03:00
|
|
|
|
|
|
|
python_test() {
|
|
|
|
"${EPYTHON}" test.py || die "Tests failed with ${EPYTHON}"
|
|
|
|
}
|