View | Details | Raw Unified | Return to bug 163883
Collapse All | Expand All

(-)/usr/home/henryhu/soft/ibus-pinyin/Makefile (-7 / +47 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	ibus-pinyin
8
PORTNAME=	ibus-pinyin
9
PORTVERSION=	1.3.11
9
PORTVERSION=	1.4.0
10
CATEGORIES=	chinese
10
CATEGORIES=	chinese
11
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
11
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
12
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DBTAR}
12
DISTFILES=		${DISTNAME}${EXTRACT_SUFX}
13
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
13
14
14
MAINTAINER=	henry.hu.sh@gmail.com
15
MAINTAINER=	henry.hu.sh@gmail.com
15
COMMENT=	PinYin engine for IBus
16
COMMENT=	PinYin engine for IBus
16
17
17
BUILD_DEPENDS=	ibus-daemon:${PORTSDIR}/textproc/ibus \
18
BUILD_DEPENDS=	ibus-daemon:${PORTSDIR}/textproc/ibus \
18
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
19
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
19
		${LOCALBASE}/include/boost/accumulators/accumulators.hpp:${PORTSDIR}/devel/boost-libs
20
RUN_DEPENDS=	ibus-daemon:${PORTSDIR}/textproc/ibus \
20
RUN_DEPENDS=	${BUILD_DEPENDS}
21
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
21
22
22
USE_PYTHON=	yes
23
USE_PYTHON=	yes
23
USE_GNOME=	pygtk2
24
USE_GNOME=	pygtk2
24
25
26
USE_GCC=	4.4+
25
USE_GMAKE=	yes
27
USE_GMAKE=	yes
26
GNU_CONFIGURE=	yes
28
GNU_CONFIGURE=	yes
27
CONFIGURE_ARGS=	--disable-dependency-tracking
29
CONFIGURE_ARGS=	--disable-dependency-tracking --disable-lua-extension
28
30
29
PROJECTHOST=	ibus
31
PROJECTHOST=	ibus
30
32
33
OPTIONS=	ANDROID_DB	"Build Android DB" on \
34
			OPENPHRASE_DB	"Build Open Phrase DB" off \
35
			OPENCC	"Use opencc" off
36
37
.include <bsd.port.pre.mk>
38
39
.if defined(WITH_ANDROID_DB)
40
CONFIGURE_ARGS+=	--enable-db-android
41
PLIST_SUB+=	ANDROID_DB=""
42
.else
43
CONFIGURE_ARGS+=	--disable-db-android
44
PLIST_SUB+=	ANDROID_DB="@comment "
45
.endif
46
47
OPENPHRASE_DBVER=	1.2.99
48
OPENPHRASE_DBFILE=	pinyin-database-${OPENPHRASE_DBVER}.tar.bz2
49
50
.if defined(WITH_OPENPHRASE_DB)
51
CONFIGURE_ARGS+=	--enable-db-open-phrase
52
DISTFILES+=	${OPENPHRASE_DBFILE}
53
PLIST_SUB+=	OPENPHRASE_DB=""
54
.else
55
CONFIGURE_ARGS+=	--disable-db-open-phrase
56
PLIST_SUB+=	OPENPHRASE_DB="@comment "
57
.endif
58
59
.if defined(WITH_OPENCC)
60
CONFIGURE_ARGS+=	--enable-opencc
61
LIB_DEPENDS+=		opencc.1:${PORTSDIR}/chinese/opencc
62
.else
63
CONFIGURE_ARGS+=	--disable-opencc
64
.endif
65
31
.if !defined(WITHOUT_NLS)
66
.if !defined(WITHOUT_NLS)
32
USE_GETTEXT=	yes
67
USE_GETTEXT=	yes
33
PLIST_SUB+=	NLS=""
68
PLIST_SUB+=	NLS=""
Lines 36-42 Link Here
36
PLIST_SUB+=	NLS="@comment "
71
PLIST_SUB+=	NLS="@comment "
37
.endif
72
.endif
38
73
74
post-extract:
75
.if defined(WITH_OPENPHRASE_DB)
76
	@${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase
77
.endif
78
39
post-patch:
79
post-patch:
40
	@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure
80
	@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure
41
81
42
.include <bsd.port.mk>
82
.include <bsd.port.post.mk>
(-)/usr/home/henryhu/soft/ibus-pinyin/distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (ibus-pinyin-1.3.11.tar.gz) = 3b778777eef1c47150675ed74a572776f0aa27f5a19b681200b71741f08b722a
1
SHA256 (ibus-pinyin-1.4.0.tar.gz) = 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a
2
SIZE (ibus-pinyin-1.3.11.tar.gz) = 1659622
2
SIZE (ibus-pinyin-1.4.0.tar.gz) = 1813003
3
SHA256 (pinyin-database-1.2.99.tar.bz2) = 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321
4
SIZE (pinyin-database-1.2.99.tar.bz2) = 9977983
(-)/usr/home/henryhu/soft/ibus-pinyin/pkg-plist (-1 / +5 lines)
Lines 4-10 Link Here
4
%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-pinyin.mo
4
%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-pinyin.mo
5
libexec/ibus-engine-pinyin
5
libexec/ibus-engine-pinyin
6
libexec/ibus-setup-pinyin
6
libexec/ibus-setup-pinyin
7
%%DATADIR%%/db/android.db
7
%%ANDROID_DB%%%%DATADIR%%/db/android.db
8
%%OPENPHRASE_DB%%%%DATADIR%%/db/open-phrase.db
9
%%DATADIR%%/db/english.db
8
%%DATADIR%%/db/create_index.sql
10
%%DATADIR%%/db/create_index.sql
9
%%DATADIR%%/icons/chinese.svg
11
%%DATADIR%%/icons/chinese.svg
10
%%DATADIR%%/icons/english.svg
12
%%DATADIR%%/icons/english.svg
Lines 30-35 Link Here
30
%%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES
32
%%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES
31
%%NLS%%@dirrmtry share/locale/ru
33
%%NLS%%@dirrmtry share/locale/ru
32
%%NLS%%@dirrmtry share/locale
34
%%NLS%%@dirrmtry share/locale
35
@dirrmtry share/ibus/component
36
@dirrmtry share/ibus
33
@dirrm %%DATADIR%%/setup
37
@dirrm %%DATADIR%%/setup
34
@dirrm %%DATADIR%%/icons
38
@dirrm %%DATADIR%%/icons
35
@dirrmtry %%DATADIR%%/db
39
@dirrmtry %%DATADIR%%/db

Return to bug 163883