1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Adding WordCloud, a little word cloud generator in Python.

This commit is contained in:
Thierry Thomas 2020-12-26 09:24:42 +00:00
parent b0f57da3f0
commit 1d34d2278b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=559274
5 changed files with 89 additions and 0 deletions

View File

@ -1444,6 +1444,7 @@
SUBDIR += py-ucl
SUBDIR += py-ufal.udpipe
SUBDIR += py-whoosh
SUBDIR += py-wordcloud
SUBDIR += py-wordnet
SUBDIR += py-wstools
SUBDIR += py-wtf-peewee

View File

@ -0,0 +1,51 @@
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= word_cloud
DISTVERSION= 1.5.0
CATEGORIES= textproc python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Little word cloud generator in Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYNUMPY} \
${PY_PILLOW}
RUN_DEPENDS= ${PYNUMPY} \
${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
USE_GITHUB= yes
GH_ACCOUNT= amueller
USES= python:3.6+ shebangfix
USE_PYTHON= distutils
SHEBANG_FILES= doc/*.sh examples/*.py
OPTIONS_DEFINE= DOCS EXAMPLES
PLIST_SUB+= VER=${PORTVERSION}
TEST_TARGET= test
PORTDOCS= *
PORTEXAMPLES= *
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
do-test: install
${REINPLACE_CMD} -e 's|--cov --cov-report xml ||' ${WRKSRC}/setup.cfg
${REINPLACE_CMD} -e 's|"python |"${PYTHON_CMD} |' ${WRKSRC}/test/test_wordcloud_cli.py
(cd ${TEST_WRKSRC} && py.test)
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1608913996
SHA256 (amueller-word_cloud-1.5.0_GH0.tar.gz) = 685f35ded1f8a69736fd6faba20ec153d6aeb4475d8b22d8a04f600036c7c4d2
SIZE (amueller-word_cloud-1.5.0_GH0.tar.gz) = 25431213

View File

@ -0,0 +1,3 @@
WordCloud, a little word cloud generator in Python.
WWW: https://amueller.github.io/word_cloud/

View File

@ -0,0 +1,31 @@
bin/wordcloud_cli
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/PKG-INFO
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/SOURCES.txt
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/dependency_links.txt
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/entry_points.txt
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/requires.txt
%%PYTHON_SITELIBDIR%%/wordcloud-%%VER%%-py%%PYTHON_VER%%.egg-info/top_level.txt
%%PYTHON_SITELIBDIR%%/wordcloud/DroidSansMono.ttf
%%PYTHON_SITELIBDIR%%/wordcloud/__init__.py
%%PYTHON_SITELIBDIR%%/wordcloud/__main__.py
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/_version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/_version.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/color_from_image.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/color_from_image.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/tokenization.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/tokenization.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/wordcloud.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/wordcloud.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/wordcloud_cli.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/__pycache__/wordcloud_cli.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/wordcloud/_version.py
%%PYTHON_SITELIBDIR%%/wordcloud/color_from_image.py
%%PYTHON_SITELIBDIR%%/wordcloud/query_integral_image.so
%%PYTHON_SITELIBDIR%%/wordcloud/stopwords
%%PYTHON_SITELIBDIR%%/wordcloud/tokenization.py
%%PYTHON_SITELIBDIR%%/wordcloud/wordcloud.py
%%PYTHON_SITELIBDIR%%/wordcloud/wordcloud_cli.py