From 625903ad504c514c3058abd59272fd26338cc6d0 Mon Sep 17 00:00:00 2001 From: wen Date: Mon, 22 Oct 2012 07:18:27 +0000 Subject: 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 Feature safe: yes --- chinese/librime/Makefile | 52 +++++++++++++++++++++++++++++++++++++++++++++++ chinese/librime/distinfo | 4 ++++ chinese/librime/pkg-descr | 4 ++++ chinese/librime/pkg-plist | 20 ++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 chinese/librime/Makefile create mode 100644 chinese/librime/distinfo create mode 100644 chinese/librime/pkg-descr create mode 100644 chinese/librime/pkg-plist (limited to 'chinese') 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 +# $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 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 -- cgit