aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/py-mecab/Makefile
blob: 936675b11ed682b2f872748e679f0117d99ab0e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Created by: Junji NAKANISHI <jun-g@daemonfreaks.com>
# $FreeBSD$

PORTNAME=   mecab
PORTVERSION=    0.996
CATEGORIES= japanese python textproc
MASTER_SITES=   GOOGLE_CODE
DISTNAME=   ${PORTNAME}-python-${PORTVERSION}

MAINTAINER= jun-g@daemonfreaks.com
COMMENT=    Python bindings for MeCab

LICENSE=    BSD GPLv2 LGPL21
LICENSE_COMB=   dual

BUILD_DEPENDS=  swig:${PORTSDIR}/devel/swig13
LIB_DEPENDS=    libmecab.so:${PORTSDIR}/japanese/mecab

USES=       python
USE_PYTHON= distutils
PYDISTUTILS_EGGINFO=    ${PORTNAME}_python-${PKGVERSION}-${PYTHON_VERSION:S/thon//}.egg-info

pre-patch:
    @${REINPLACE_CMD} -e 's|cmd1("mecab-config --version")|"${PKGVERSION}"|' \
        ${WRKSRC}/setup.py

.include <bsd.port.pre.mk>

PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}

.include <bsd.port.post.mk>