git: cd7ce65e5d0d - main - textproc/py-fasttext-predict: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Aug 2024 23:28:38 UTC
The branch main has been updated by dutra: URL: https://cgit.FreeBSD.org/ports/commit/?id=cd7ce65e5d0d6c6b84f92b21c64e73f93ad107c1 commit cd7ce65e5d0d6c6b84f92b21c64e73f93ad107c1 Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2024-08-21 23:24:50 +0000 Commit: Gabriel M. Dutra <dutra@FreeBSD.org> CommitDate: 2024-08-21 23:27:31 +0000 textproc/py-fasttext-predict: Add new port fasttext-predict is a python package for fasttext PR: 278971 --- textproc/Makefile | 1 + textproc/py-fasttext-predict/Makefile | 25 +++++++++++++++++++++++++ textproc/py-fasttext-predict/distinfo | 3 +++ textproc/py-fasttext-predict/pkg-descr | 6 ++++++ 4 files changed, 35 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index fdb5e34afdec..abbabf39e774 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1376,6 +1376,7 @@ SUBDIR += py-evtx2splunk SUBDIR += py-extract-msg SUBDIR += py-fastavro + SUBDIR += py-fasttext-predict SUBDIR += py-faust-cchardet SUBDIR += py-feedparser SUBDIR += py-fingerprints diff --git a/textproc/py-fasttext-predict/Makefile b/textproc/py-fasttext-predict/Makefile new file mode 100644 index 000000000000..9115c89ec69a --- /dev/null +++ b/textproc/py-fasttext-predict/Makefile @@ -0,0 +1,25 @@ +PORTNAME= fasttext-predict +DISTVERSION= 0.9.2.2 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Python package for fasttext +WWW= https://pypi.org/project/${PORTNAME} \ + https://github.com/searxng/${PORTNAME} + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fasttext_pybind.cpython-${PYTHON_VER:S/.//}.so + +.include <bsd.port.mk> diff --git a/textproc/py-fasttext-predict/distinfo b/textproc/py-fasttext-predict/distinfo new file mode 100644 index 000000000000..e541431a427e --- /dev/null +++ b/textproc/py-fasttext-predict/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1715560244 +SHA256 (fasttext-predict-0.9.2.2.tar.gz) = acc6dfd3da421ef55823d83f6aaef8f8f72cb94d8b7b3a660f3e1bff0f6f4727 +SIZE (fasttext-predict-0.9.2.2.tar.gz) = 16326 diff --git a/textproc/py-fasttext-predict/pkg-descr b/textproc/py-fasttext-predict/pkg-descr new file mode 100644 index 000000000000..167e2db81fb6 --- /dev/null +++ b/textproc/py-fasttext-predict/pkg-descr @@ -0,0 +1,6 @@ +fasttext-predict is a python package for fasttext: + +* keep only the predict method, all other features are removed +* standalone package without external dependency (numpy is not a + dependency) wheels for various architectures using GitHub workflows. +* The script is inspired by lxml build scripts.