mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
japanese/py-fugashi: New port: Cython MeCab wrapper for fast, pythonic Japanese tokenization
This commit is contained in:
parent
73244b5384
commit
194dda49a4
@ -224,6 +224,7 @@
|
||||
SUBDIR += plan
|
||||
SUBDIR += prn
|
||||
SUBDIR += py-SudachiPy
|
||||
SUBDIR += py-fugashi
|
||||
SUBDIR += py-jaconv
|
||||
SUBDIR += py-unidic
|
||||
SUBDIR += qkc
|
||||
|
27
japanese/py-fugashi/Makefile
Normal file
27
japanese/py-fugashi/Makefile
Normal file
@ -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>
|
3
japanese/py-fugashi/distinfo
Normal file
3
japanese/py-fugashi/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1721513940
|
||||
SHA256 (fugashi-1.3.2.tar.gz) = 964980b5d227ee41af7570542aaab56b1298c44416271cba5d8ff9a58ab40748
|
||||
SIZE (fugashi-1.3.2.tar.gz) = 338825
|
2
japanese/py-fugashi/pkg-descr
Normal file
2
japanese/py-fugashi/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
fugashi is a Cython wrapper for MeCab, a Japanese tokenizer and morphological
|
||||
analysis tool.
|
Loading…
Reference in New Issue
Block a user