Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 07:18:27 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306255 - head/chinese/librime
Message-ID:  <201210220718.q9M7IRNI058833@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Mon Oct 22 07:18:27 2012
New Revision: 306255
URL: http://svn.freebsd.org/changeset/ports/306255

Log:
  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

Added:
  head/chinese/librime/
  head/chinese/librime/Makefile   (contents, props changed)
  head/chinese/librime/distinfo   (contents, props changed)
  head/chinese/librime/pkg-descr   (contents, props changed)
  head/chinese/librime/pkg-plist   (contents, props changed)

Added: head/chinese/librime/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/librime/Makefile	Mon Oct 22 07:18:27 2012	(r306255)
@@ -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>

Added: head/chinese/librime/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/librime/distinfo	Mon Oct 22 07:18:27 2012	(r306255)
@@ -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

Added: head/chinese/librime/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/librime/pkg-descr	Mon Oct 22 07:18:27 2012	(r306255)
@@ -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/

Added: head/chinese/librime/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/librime/pkg-plist	Mon Oct 22 07:18:27 2012	(r306255)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210220718.q9M7IRNI058833>