Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/fastText/
Date: Tue, 01 Nov 2022 02:55:17
Message-Id: 1667129756.6f21a78e055689b9df0e0d389ccb04e15fe436e9.tastytea@gentoo
1 commit: 6f21a78e055689b9df0e0d389ccb04e15fe436e9
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Oct 30 11:11:28 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Sun Oct 30 11:35:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f21a78e
7
8 dev-libs/fastText: enable py3.11
9
10 Closes: https://bugs.gentoo.org/859733
11 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
12
13 dev-libs/fastText/Manifest | 2 +-
14 dev-libs/fastText/fastText-0.9.2.ebuild | 16 ++++++++++++----
15 2 files changed, 13 insertions(+), 5 deletions(-)
16
17 diff --git a/dev-libs/fastText/Manifest b/dev-libs/fastText/Manifest
18 index c45a8082f..a6779ea09 100644
19 --- a/dev-libs/fastText/Manifest
20 +++ b/dev-libs/fastText/Manifest
21 @@ -1 +1 @@
22 -DIST fastText-0.9.2.tar.gz 4036722 BLAKE2B ea3af92ce18d04241128cfb28773f0785a006e79c861d718c2c6ad788d776ad60b0543a42eb8be5a865cbc12283355521431fe2fba48544399e4a2b1520ff3f1 SHA512 8f0f6e78b3c6b3c7e7d107778952f340cc208b8e0b920dd118a57884cca8ef7007ea88b6f3352cb7e08289a64743f507309e1e1259c785f810af7f5fa09f2656
23 +DIST fastText-0.9.2.gh.tar.gz 4036722 BLAKE2B ea3af92ce18d04241128cfb28773f0785a006e79c861d718c2c6ad788d776ad60b0543a42eb8be5a865cbc12283355521431fe2fba48544399e4a2b1520ff3f1 SHA512 8f0f6e78b3c6b3c7e7d107778952f340cc208b8e0b920dd118a57884cca8ef7007ea88b6f3352cb7e08289a64743f507309e1e1259c785f810af7f5fa09f2656
24
25 diff --git a/dev-libs/fastText/fastText-0.9.2.ebuild b/dev-libs/fastText/fastText-0.9.2.ebuild
26 index 31129522f..27a81602f 100644
27 --- a/dev-libs/fastText/fastText-0.9.2.ebuild
28 +++ b/dev-libs/fastText/fastText-0.9.2.ebuild
29 @@ -3,13 +3,14 @@
30
31 EAPI=8
32
33 -PYTHON_COMPAT=( python3_{8..10} )
34 +PYTHON_COMPAT=( python3_{8..11} )
35 +DISTUTILS_USE_PEP517=setuptools
36 DISTUTILS_OPTIONAL=1
37 -inherit cmake distutils-r1
38 +inherit cmake distutils-r1 edo
39
40 DESCRIPTION="Library for fast text representation and classification"
41 HOMEPAGE="https://fasttext.cc https://github.com/facebookresearch/fastText"
42 -SRC_URI="https://github.com/facebookresearch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +SRC_URI="https://github.com/facebookresearch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
44
45 LICENSE="MIT"
46 SLOT="0"
47 @@ -24,6 +25,9 @@ RDEPEND="
48 dev-python/numpy[${PYTHON_USEDEP}]
49 )
50 "
51 +BDEPEND="
52 + python? ( ${DISTUTILS_DEPS} )
53 +"
54
55 DOCS=( {CODE_OF_CONDUCT,CONTRIBUTING,README}.md python/{README.rst,doc} docs )
56
57 @@ -39,6 +43,10 @@ src_prepare() {
58 }
59
60 src_configure() {
61 + local mycmakeargs=(
62 + -DPROJECT_VERSION=${PV}
63 + )
64 +
65 cmake_src_configure
66 use python && distutils-r1_src_configure
67 }
68 @@ -53,7 +61,7 @@ src_test() {
69 }
70
71 python_test() {
72 - ${EPYTHON} runtests.py -u || die
73 + edo ${EPYTHON} runtests.py -u
74 }
75
76 src_install() {