aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/py-mecab/Makefile
blob: 83c529a550d0e3f5453610553d5692f6c4ad46e7 (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
32
# New ports collection makefile for:    py-mecab
# Date created:                         27 August 2007
# Whom:                                 Junji NAKANISHI <jun-g@daemonfreaks.com>
#
# $FreeBSD$

PORTNAME=   mecab
PORTVERSION=    0.97
CATEGORIES= japanese python textproc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-python-${PORTVERSION}

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

BUILD_DEPENDS=  swig>=1.3:${PORTSDIR}/devel/swig13
LIB_DEPENDS=    mecab.1:${PORTSDIR}/japanese/mecab

USE_PYTHON= yes
USE_PYDISTUTILS=yes
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>