git: 194dda49a4df - main - japanese/py-fugashi: New port: Cython MeCab wrapper for fast, pythonic Japanese tokenization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jul 2024 22:49:27 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=194dda49a4df8c0e52b2895696d4d435c18dd104 commit 194dda49a4df8c0e52b2895696d4d435c18dd104 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-07-20 22:48:54 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-07-20 22:49:22 +0000 japanese/py-fugashi: New port: Cython MeCab wrapper for fast, pythonic Japanese tokenization --- japanese/Makefile | 1 + japanese/py-fugashi/Makefile | 27 +++++++++++++++++++++++++++ japanese/py-fugashi/distinfo | 3 +++ japanese/py-fugashi/pkg-descr | 2 ++ 4 files changed, 33 insertions(+) diff --git a/japanese/Makefile b/japanese/Makefile index 8b3c0075d0b3..9e1df7b69745 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -224,6 +224,7 @@ SUBDIR += plan SUBDIR += prn SUBDIR += py-SudachiPy + SUBDIR += py-fugashi SUBDIR += py-jaconv SUBDIR += py-unidic SUBDIR += qkc diff --git a/japanese/py-fugashi/Makefile b/japanese/py-fugashi/Makefile new file mode 100644 index 000000000000..039df63b5e3f --- /dev/null +++ b/japanese/py-fugashi/Makefile @@ -0,0 +1,27 @@ +PORTNAME= fugashi +DISTVERSION= 1.3.2 +CATEGORIES= japanese python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cython MeCab wrapper for fast, pythonic Japanese tokenization +WWW= https://github.com/polm/fugashi + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libmecab.so:japanese/mecab + +USES= python +USE_PYTHON= distutils cython autoplist # tests depend on ipadic + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/fugashi/tests + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fugashi/fugashi${PYTHON_EXT_SUFFIX}.so + +.include <bsd.port.mk> diff --git a/japanese/py-fugashi/distinfo b/japanese/py-fugashi/distinfo new file mode 100644 index 000000000000..96d3abe5c198 --- /dev/null +++ b/japanese/py-fugashi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721513940 +SHA256 (fugashi-1.3.2.tar.gz) = 964980b5d227ee41af7570542aaab56b1298c44416271cba5d8ff9a58ab40748 +SIZE (fugashi-1.3.2.tar.gz) = 338825 diff --git a/japanese/py-fugashi/pkg-descr b/japanese/py-fugashi/pkg-descr new file mode 100644 index 000000000000..87580feda4ab --- /dev/null +++ b/japanese/py-fugashi/pkg-descr @@ -0,0 +1,2 @@ +fugashi is a Cython wrapper for MeCab, a Japanese tokenizer and morphological +analysis tool.