dev-libs/fastText: enable py3.11

Closes: https://bugs.gentoo.org/859733
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-10-30 16:11:28 +05:00
parent 628c55a757
commit 6f21a78e05
2 changed files with 13 additions and 5 deletions

View File

@@ -3,13 +3,14 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_OPTIONAL=1
inherit cmake distutils-r1
inherit cmake distutils-r1 edo
DESCRIPTION="Library for fast text representation and classification"
HOMEPAGE="https://fasttext.cc https://github.com/facebookresearch/fastText"
SRC_URI="https://github.com/facebookresearch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/facebookresearch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -24,6 +25,9 @@ RDEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
)
"
BDEPEND="
python? ( ${DISTUTILS_DEPS} )
"
DOCS=( {CODE_OF_CONDUCT,CONTRIBUTING,README}.md python/{README.rst,doc} docs )
@@ -39,6 +43,10 @@ src_prepare() {
}
src_configure() {
local mycmakeargs=(
-DPROJECT_VERSION=${PV}
)
cmake_src_configure
use python && distutils-r1_src_configure
}
@@ -53,7 +61,7 @@ src_test() {
}
python_test() {
${EPYTHON} runtests.py -u || die
edo ${EPYTHON} runtests.py -u
}
src_install() {