diff options
author | wen <wen@FreeBSD.org> | 2012-10-22 15:18:27 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2012-10-22 15:18:27 +0800 |
commit | 625903ad504c514c3058abd59272fd26338cc6d0 (patch) | |
tree | 838ecc05dc22ccf649238127424b7ccfbdb12b4f /chinese | |
parent | 3085c73e6c13702790b82dfefae97f6bf4b33cc9 (diff) | |
download | freebsd-ports-gnome-625903ad504c514c3058abd59272fd26338cc6d0.tar.gz freebsd-ports-gnome-625903ad504c514c3058abd59272fd26338cc6d0.tar.zst freebsd-ports-gnome-625903ad504c514c3058abd59272fd26338cc6d0.zip |
Rime Input Method Engine is a customizable and dialect-friendly intelligent
Chinese input method.
WWW: http://code.google.com/p/rimeime/
PR: 172751
Submitted by: Zhihao Yuan <lichray@gmail.com>
Feature safe: yes
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/librime/Makefile | 52 | ||||
-rw-r--r-- | chinese/librime/distinfo | 4 | ||||
-rw-r--r-- | chinese/librime/pkg-descr | 4 | ||||
-rw-r--r-- | chinese/librime/pkg-plist | 20 |
4 files changed, 80 insertions, 0 deletions
diff --git a/chinese/librime/Makefile b/chinese/librime/Makefile new file mode 100644 index 000000000000..50902b632c9c --- /dev/null +++ b/chinese/librime/Makefile @@ -0,0 +1,52 @@ +# Created by: Zhihao Yuan <lichray@gmail.com> +# $FreeBSD$ + +PORTNAME= librime +PORTVERSION= 0.9.4 +CATEGORIES= chinese textproc +MASTER_SITES= GOOGLE_CODE +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} brise-${DATA_VER}.tar.gz + +MAINTAINER= lichray@gmail.com +COMMENT= Rime Input Method Engine + +LICENSE= GPLv3 + +LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \ + glog:${PORTSDIR}/devel/glog \ + kyotocabinet:${PORTSDIR}/databases/kyotocabinet \ + opencc:${PORTSDIR}/chinese/opencc \ + yaml-cpp:${PORTSDIR}/devel/yaml-cpp + +USE_CMAKE= yes +USE_GETTEXT= yes +USE_GNOME= pkgconfig +USE_LDCONFIG= yes +USE_XORG= xproto +USE_PERL5_BUILD= yes +LDFLAGS+= -lintl + +post-patch: .SILENT + ${REINPLACE_CMD} 's|$${LIB_INSTALL_DIR}/pkgconfig|$${prefix}/libdata/pkgconfig|' \ + ${WRKSRC}/CMakeLists.txt + ${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ + -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \; + +post-build: + @echo "building rime data." + @${MKDIR} ${DATASRC} + @(cd ${WRKDIR}/brise; ${CP} \ + default.yaml essay.kct supplement/*.yaml preset/*.yaml ${DATASRC}) + ${WRKSRC}/bin/rime_deployer --build ${DATASRC} + +post-install: + ${MKDIR} ${DATADIR}/data + ${INSTALL_DATA} ${DATASRC}/*.kct ${DATASRC}/*.bin ${DATADIR}/data/ + +PROJECTHOST= rimeime +DATA_VER= 0.13 +WRKSRC= ${WRKDIR}/${PORTNAME} +DATASRC= ${WRKDIR}/tmp +DATADIR= ${PREFIX}/share/rime + +.include <bsd.port.mk> diff --git a/chinese/librime/distinfo b/chinese/librime/distinfo new file mode 100644 index 000000000000..25d87470cf03 --- /dev/null +++ b/chinese/librime/distinfo @@ -0,0 +1,4 @@ +SHA256 (librime-0.9.4.tar.gz) = 626082f5a2954686059445e414786691ee568777104ce8e093fbfd47c0095795 +SIZE (librime-0.9.4.tar.gz) = 2300407 +SHA256 (brise-0.13.tar.gz) = 72c7ea43b5baf972a1d9a6cccce5f860b73924b36e2b3f68822ac8329d1c11f3 +SIZE (brise-0.13.tar.gz) = 5368874 diff --git a/chinese/librime/pkg-descr b/chinese/librime/pkg-descr new file mode 100644 index 000000000000..9ea8ab364400 --- /dev/null +++ b/chinese/librime/pkg-descr @@ -0,0 +1,4 @@ +Rime Input Method Engine is a customizable and dialect-friendly intelligent +Chinese input method. + +WWW: http://code.google.com/p/rimeime/ diff --git a/chinese/librime/pkg-plist b/chinese/librime/pkg-plist new file mode 100644 index 000000000000..f203ed3eb766 --- /dev/null +++ b/chinese/librime/pkg-plist @@ -0,0 +1,20 @@ +bin/rime_deployer +bin/rime_dict_manager +include/rime_api.h +lib/librime.so +lib/librime.so.0 +lib/librime.so.0.9.4 +libdata/pkgconfig/rime.pc +share/cmake/rime/RimeConfig.cmake +share/rime/data/cangjie5.prism.bin +share/rime/data/cangjie5.reverse.bin +share/rime/data/cangjie5.table.bin +share/rime/data/essay.kct +share/rime/data/luna_pinyin.prism.bin +share/rime/data/luna_pinyin.reverse.bin +share/rime/data/luna_pinyin.table.bin +share/rime/data/luna_pinyin_fluency.prism.bin +share/rime/data/luna_pinyin_simp.prism.bin +@dirrmtry share/rime/data +@dirrmtry share/rime +@dirrm share/cmake/rime |