2013-03-20 12:42:31 +00:00
|
|
|
# Created by: Junji NAKANISHI <jun-g@daemonfreaks.com>
|
2008-01-24 07:33:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mecab
|
2013-03-20 12:42:31 +00:00
|
|
|
PORTVERSION= 0.995
|
2008-01-24 07:33:46 +00:00
|
|
|
CATEGORIES= japanese python textproc
|
2013-03-20 12:42:31 +00:00
|
|
|
MASTER_SITES= GOOGLE_CODE
|
2008-01-24 07:33:46 +00:00
|
|
|
DISTNAME= ${PORTNAME}-python-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= jun-g@daemonfreaks.com
|
|
|
|
COMMENT= Python bindings for MeCab
|
|
|
|
|
2013-03-20 12:42:31 +00:00
|
|
|
LICENSE= BSD GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
LICENSE_FILE_BSD= ${WRKSRC}/BSD
|
|
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/GPL
|
|
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL
|
|
|
|
|
2008-01-24 07:33:46 +00:00
|
|
|
BUILD_DEPENDS= swig>=1.3:${PORTSDIR}/devel/swig13
|
2012-10-13 03:58:43 +00:00
|
|
|
LIB_DEPENDS= mecab:${PORTSDIR}/japanese/mecab
|
2008-01-24 07:33:46 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
PYDISTUTILS_EGGINFO= ${PORTNAME}_python-${PKGVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
|
|
|
|
|
2008-03-31 10:03:24 +00:00
|
|
|
pre-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|cmd1("mecab-config --version")|"${PKGVERSION}"|' \
|
|
|
|
${WRKSRC}/setup.py
|
|
|
|
|
2008-01-24 07:33:46 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|