summaryrefslogtreecommitdiff
path: root/chinese/ibus-pinyin/Makefile
blob: 3d050d16e9650e617f3318fe8edc707a6ec41010 (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
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:	zh-ibus-pinyin
# Date created:				21 October 2008
# Whom:					Henry Hu <henry.hu.sh@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	ibus-pinyin
PORTVERSION=	1.1.0.20090303
PORTREVISION=	1
CATEGORIES=	chinese
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DBTAR}

MAINTAINER=	henry.hu.sh@gmail.com
COMMENT=	PinYin engine for IBus

RUN_DEPENDS=	ibus-daemon:${PORTSDIR}/textproc/ibus \
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3

USE_PYTHON=	yes
USE_GNOME=	pygtk2

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-dependency-tracking

PROJECTHOST=	ibus
DBVER=		0.1.10.6
DBTAR=		pinyin-database-${DBVER}.tar.bz2

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

post-extract:
	${MV} ${WRKDIR}/py.db ${WRKSRC}/engine/
	${TOUCH} ${WRKSRC}/engine/${DBTAR}

.include <bsd.port.mk>