* Level up port compliance by stripping the shared lib while I'm here. Changelog since 1.1.8: https://github.com/WojciechMula/pyahocorasick/blob/1.4.0/CHANGELOG.rst MFH: No (contains a breaking API change)
32 lines
685 B
Makefile
32 lines
685 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pyahocorasick
|
|
DISTVERSION= 1.4.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Python and C implementation of the Aho-Corasick algorithm
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
PORTDOCS= README.rst
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ahocorasick.so
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} unittests.py
|
|
|
|
.include <bsd.port.mk>
|