public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/fastText/
@ 2022-03-31  7:24 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-03-31  7:24 UTC (permalink / raw
  To: gentoo-commits

commit:     33a07cc462f49c63de1b1c2097779258e1597713
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Mar 31 07:02:51 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Mar 31 07:02:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33a07cc4

dev-libs/fastText: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-libs/fastText/Manifest              |  1 +
 dev-libs/fastText/fastText-0.9.2.ebuild | 64 +++++++++++++++++++++++++++++++++
 dev-libs/fastText/metadata.xml          | 12 +++++++
 3 files changed, 77 insertions(+)

diff --git a/dev-libs/fastText/Manifest b/dev-libs/fastText/Manifest
new file mode 100644
index 000000000..c45a8082f
--- /dev/null
+++ b/dev-libs/fastText/Manifest
@@ -0,0 +1 @@
+DIST fastText-0.9.2.tar.gz 4036722 BLAKE2B ea3af92ce18d04241128cfb28773f0785a006e79c861d718c2c6ad788d776ad60b0543a42eb8be5a865cbc12283355521431fe2fba48544399e4a2b1520ff3f1 SHA512 8f0f6e78b3c6b3c7e7d107778952f340cc208b8e0b920dd118a57884cca8ef7007ea88b6f3352cb7e08289a64743f507309e1e1259c785f810af7f5fa09f2656

diff --git a/dev-libs/fastText/fastText-0.9.2.ebuild b/dev-libs/fastText/fastText-0.9.2.ebuild
new file mode 100644
index 000000000..31129522f
--- /dev/null
+++ b/dev-libs/fastText/fastText-0.9.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_OPTIONAL=1
+inherit cmake distutils-r1
+
+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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+	python? (
+		${PYTHON_DEPS}
+		dev-python/pybind11[${PYTHON_USEDEP}]
+		dev-python/numpy[${PYTHON_USEDEP}]
+	)
+"
+
+DOCS=( {CODE_OF_CONDUCT,CONTRIBUTING,README}.md python/{README.rst,doc} docs )
+
+src_prepare() {
+	cmake_src_prepare
+	use python && distutils-r1_src_prepare
+
+	sed \
+		-e "/CMAKE_CXX_FLAGS/d" \
+		-e "s/\(DESTINATION\) lib/\1 $(get_libdir)/g" \
+		-i CMakeLists.txt || die
+	sed "/extra_compile_args=/,+1d" -i setup.py || die
+}
+
+src_configure() {
+	cmake_src_configure
+	use python && distutils-r1_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	use python && distutils-r1_src_compile
+}
+
+src_test() {
+	use python && distutils-r1_src_test
+}
+
+python_test() {
+	${EPYTHON} runtests.py -u || die
+}
+
+src_install() {
+	cmake_src_install
+	use python && distutils-r1_src_install
+
+	find "${ED}" -name '*.a' -delete || die
+}

diff --git a/dev-libs/fastText/metadata.xml b/dev-libs/fastText/metadata.xml
new file mode 100644
index 000000000..d6777249e
--- /dev/null
+++ b/dev-libs/fastText/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>cyber+gentoo@sysrq.in</email>
+		<name>Anna</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">facebookresearch/fastText</remote-id>
+		<remote-id type="pypi">fasttext</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/fastText/
@ 2022-10-30 11:37 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-10-30 11:37 UTC (permalink / raw
  To: gentoo-commits

commit:     6f21a78e055689b9df0e0d389ccb04e15fe436e9
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Oct 30 11:11:28 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Oct 30 11:35:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f21a78e

dev-libs/fastText: enable py3.11

Closes: https://bugs.gentoo.org/859733
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-libs/fastText/Manifest              |  2 +-
 dev-libs/fastText/fastText-0.9.2.ebuild | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/dev-libs/fastText/Manifest b/dev-libs/fastText/Manifest
index c45a8082f..a6779ea09 100644
--- a/dev-libs/fastText/Manifest
+++ b/dev-libs/fastText/Manifest
@@ -1 +1 @@
-DIST fastText-0.9.2.tar.gz 4036722 BLAKE2B ea3af92ce18d04241128cfb28773f0785a006e79c861d718c2c6ad788d776ad60b0543a42eb8be5a865cbc12283355521431fe2fba48544399e4a2b1520ff3f1 SHA512 8f0f6e78b3c6b3c7e7d107778952f340cc208b8e0b920dd118a57884cca8ef7007ea88b6f3352cb7e08289a64743f507309e1e1259c785f810af7f5fa09f2656
+DIST fastText-0.9.2.gh.tar.gz 4036722 BLAKE2B ea3af92ce18d04241128cfb28773f0785a006e79c861d718c2c6ad788d776ad60b0543a42eb8be5a865cbc12283355521431fe2fba48544399e4a2b1520ff3f1 SHA512 8f0f6e78b3c6b3c7e7d107778952f340cc208b8e0b920dd118a57884cca8ef7007ea88b6f3352cb7e08289a64743f507309e1e1259c785f810af7f5fa09f2656

diff --git a/dev-libs/fastText/fastText-0.9.2.ebuild b/dev-libs/fastText/fastText-0.9.2.ebuild
index 31129522f..27a81602f 100644
--- a/dev-libs/fastText/fastText-0.9.2.ebuild
+++ b/dev-libs/fastText/fastText-0.9.2.ebuild
@@ -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() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-30 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-30 11:37 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/fastText/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2022-03-31  7:24 Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox