blob: c69cca9a3c897db20ce03825f09a4bcfd7e4a1bc (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: ibus-anthy
# Date created: 30 Apr 2009
# Whom: Daichi GOTO <daichi@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ibus-anthy
PORTVERSION= 1.2.1
PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= daichi@freebsd.org
COMMENT= Anthy engine for IBus
BUILD_DEPENDS= anthy-agent:${PORTSDIR}/japanese/anthy
BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
LIB_DEPENDS= anthy.1:${PORTSDIR}/japanese/anthy
LIB_DEPENDS= ibus.2:${PORTSDIR}/textproc/ibus
USE_GNOME= pygtk2
USE_PYTHON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
PROJECTHOST= ibus
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
REPLACE_FILES= engine/engine.py setup/anthyprefs.py setup/main.py
post-patch:
@for FILE in ${REPLACE_FILES}; do \
${SED} -i .bak -e "s/@@LOCALBASE@@/${LOCALBASE:S/\//\\\//g}/g" \
${WRKSRC}/$${FILE}; \
done;
port-build:
.if !defined(WITHOUT_NLS)
@cd ${WRKSRC}/po; \
${GMAKE} all-yes
.endif
post-install:
.if !defined(WITHOUT_NLS)
@cd ${WRKSRC}/po; \
${GMAKE} install-data-yes
@${CHMOD} 444 \
${LOCALBASE}/share/locale/fr/LC_MESSAGES/ibus-anthy.mo \
${LOCALBASE}/share/locale/ja/LC_MESSAGES/ibus-anthy.mo \
${LOCALBASE}/share/locale/zh_CN/LC_MESSAGES/ibus-anthy.mo
.endif
@${CAT} ${PKGMESSAGE}
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
.include <bsd.port.mk>
|