# Created by: Junji NAKANISHI # $FreeBSD: head/japanese/py-mecab/Makefile 412347 2016-04-01 14:08:37Z mat $ PORTNAME= mecab PORTVERSION= 0.996 PORTREVISION= 2 CATEGORIES= japanese python textproc MASTER_SITES= GOOGLE_CODE DISTNAME= ${PORTNAME}-python-${PORTVERSION} MAINTAINER= jun-g@daemonfreaks.com COMMENT= Python bindings for MeCab LICENSE= BSD3CLAUSE GPLv2 LGPL21 LICENSE_COMB= dual BUILD_DEPENDS= swig:devel/swig13 LIB_DEPENDS= libmecab.so:japanese/mecab USES= python USE_PYTHON= distutils PYDISTUTILS_EGGINFO= ${PORTNAME}_python-${PORTVERSION}.post2-py${PYTHON_VER}.egg-info pre-patch: @${REINPLACE_CMD} -e 's|cmd1("mecab-config --version")|"${PKGVERSION}"|' \ ${WRKSRC}/setup.py post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_MeCab.so .include PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX} .include