Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2024 15:14:19 GMT
From:      Dries Michiels <driesm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 37e168201c71 - main - textproc/py-wordninja: add new port
Message-ID:  <202411211514.4ALFEJXT003423@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=37e168201c7114cbd22013c165246c334a916f9f

commit 37e168201c7114cbd22013c165246c334a916f9f
Author:     Matthew Wener <matthew@wener.org>
AuthorDate: 2024-11-21 15:10:11 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-11-21 15:11:41 +0000

    textproc/py-wordninja: add new port
    
    Probabilistically split concatenated words.
    
    PR:     282840
---
 textproc/Makefile               |  1 +
 textproc/py-wordninja/Makefile  | 29 +++++++++++++++++++++++++++++
 textproc/py-wordninja/distinfo  |  3 +++
 textproc/py-wordninja/pkg-descr |  2 ++
 4 files changed, 35 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index ceeb0627f866..4dab3bca88b0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1700,6 +1700,7 @@
     SUBDIR += py-whoosh
     SUBDIR += py-wordcloud
     SUBDIR += py-wordnet
+    SUBDIR += py-wordninja
     SUBDIR += py-wstools
     SUBDIR += py-wtf-peewee
     SUBDIR += py-wtforms
diff --git a/textproc/py-wordninja/Makefile b/textproc/py-wordninja/Makefile
new file mode 100644
index 000000000000..a9daba7dca03
--- /dev/null
+++ b/textproc/py-wordninja/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	wordninja
+PORTVERSION=	2.0.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	matthew@wener.org
+COMMENT=	Probabilistically split concatenated words
+WWW=		https://github.com/keredson/wordninja
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+PORTDOCS=	PKG-INFO
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/textproc/py-wordninja/distinfo b/textproc/py-wordninja/distinfo
new file mode 100644
index 000000000000..ed6b45d8b5fe
--- /dev/null
+++ b/textproc/py-wordninja/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724809518
+SHA256 (wordninja-2.0.0.tar.gz) = 1a1cc7ec146ad19d6f71941ee82aef3d31221700f0d8bf844136cf8df79d281a
+SIZE (wordninja-2.0.0.tar.gz) = 541572
diff --git a/textproc/py-wordninja/pkg-descr b/textproc/py-wordninja/pkg-descr
new file mode 100644
index 000000000000..d6990494cad0
--- /dev/null
+++ b/textproc/py-wordninja/pkg-descr
@@ -0,0 +1,2 @@
+Probabilistically split concatenated words using NLP
+based on English Wikipedia uni-gram frequencies.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411211514.4ALFEJXT003423>