diff options
-rw-r--r-- | inputmethod/librime/DESCR | 11 | ||||
-rw-r--r-- | inputmethod/librime/Makefile | 29 | ||||
-rw-r--r-- | inputmethod/librime/PLIST | 9 | ||||
-rw-r--r-- | inputmethod/librime/buildlink3.mk | 20 | ||||
-rw-r--r-- | inputmethod/librime/distinfo | 6 | ||||
-rw-r--r-- | inputmethod/librime/options.mk | 14 | ||||
-rw-r--r-- | inputmethod/librime/patches/patch-CMakeLists.txt | 24 |
7 files changed, 113 insertions, 0 deletions
diff --git a/inputmethod/librime/DESCR b/inputmethod/librime/DESCR new file mode 100644 index 00000000000..70c35b80fb7 --- /dev/null +++ b/inputmethod/librime/DESCR @@ -0,0 +1,11 @@ +RIME: Rime Input Method Engine + +features: + - supporting varieties of input methods, either shape-based or phonetic-based, + including those for Chinese dialects + - a built-in dictionary in traditional Chinese, easily converting to + simplified Chinese via opencc + - a modulized, extensible input method framework to create innovative input + schemata in YAML syntax + - cross-platform core library in C++, built on top of open-source technologies + - OS-specific wrappers working consistently on Windows, Linux and OS X diff --git a/inputmethod/librime/Makefile b/inputmethod/librime/Makefile new file mode 100644 index 00000000000..07f8a556ea7 --- /dev/null +++ b/inputmethod/librime/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2014/11/29 09:31:49 obache Exp $ + +DISTNAME= librime-1.0 +CATEGORIES= inputmethod +MASTER_SITES= http://rimeime.googlecode.com/files/ +#MASTER_SITES= http://dl.bintray.com/lotem/rime/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://code.google.com/p/rimeime/ +COMMENT= Rime input method engine +LICENSE= gnu-gpl-v3 + +WRKSRC= ${WRKDIR}/librime +USE_CMAKE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +PKGCONFIG_OVERRIDE+= rime.pc.in + +.include "options.mk" + +.include "../../converters/opencc/buildlink3.mk" +.include "../../databases/kyotocabinet/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../devel/google-glog/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../textproc/yaml-cpp/buildlink3.mk" +.include "../../x11/xproto/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/librime/PLIST b/inputmethod/librime/PLIST new file mode 100644 index 00000000000..616d172ff46 --- /dev/null +++ b/inputmethod/librime/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2014/11/29 09:31:49 obache Exp $ +bin/rime_deployer +bin/rime_dict_manager +include/rime_api.h +lib/librime.so +lib/librime.so.1 +lib/librime.so.${PKGVERSION}.0 +lib/pkgconfig/rime.pc +share/cmake/rime/RimeConfig.cmake diff --git a/inputmethod/librime/buildlink3.mk b/inputmethod/librime/buildlink3.mk new file mode 100644 index 00000000000..9adb616c362 --- /dev/null +++ b/inputmethod/librime/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/11/29 09:31:49 obache Exp $ +# + +BUILDLINK_TREE+= librime + +.if !defined(LIBRIME_BUILDLINK3_MK) +LIBRIME_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.librime+= librime>=1.0 +BUILDLINK_PKGSRCDIR.librime?= ../../inputmethod/librime + +.include "../../converters/opencc/buildlink3.mk" +.include "../../databases/kyotocabinet/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../devel/google-glog/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../textproc/yaml-cpp/buildlink3.mk" +.endif # LIBRIME_BUILDLINK3_MK + +BUILDLINK_TREE+= -librime diff --git a/inputmethod/librime/distinfo b/inputmethod/librime/distinfo new file mode 100644 index 00000000000..ee54300465b --- /dev/null +++ b/inputmethod/librime/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/11/29 09:31:49 obache Exp $ + +SHA1 (librime-1.0.tar.gz) = 5fd6db95b039e08dadfe547e3e63962aeaa97d8c +RMD160 (librime-1.0.tar.gz) = 0e5972bfcf179d464a8e58f9ddce3bf55708865b +Size (librime-1.0.tar.gz) = 2576401 bytes +SHA1 (patch-CMakeLists.txt) = 3e478dda0da10ecfc31f1cb7849a5fd0bd21a065 diff --git a/inputmethod/librime/options.mk b/inputmethod/librime/options.mk new file mode 100644 index 00000000000..e6a23e0da8c --- /dev/null +++ b/inputmethod/librime/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2014/11/29 09:31:49 obache Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.librime +PKG_SUPPORTED_OPTIONS= tests + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mtests) +.include "../../devel/googletest/buildlink3.mk" +CMAKE_ARGS+= -DBUILD_TEST=ON +TEST_TARGET= test +TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/lib +.endif diff --git a/inputmethod/librime/patches/patch-CMakeLists.txt b/inputmethod/librime/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..a5d766644c1 --- /dev/null +++ b/inputmethod/librime/patches/patch-CMakeLists.txt @@ -0,0 +1,24 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2014/11/29 09:31:49 obache Exp $ + +* No reason to restrct only for Linux. + +--- CMakeLists.txt.orig 2013-11-10 10:20:21.000000000 +0000 ++++ CMakeLists.txt +@@ -98,7 +98,7 @@ if(NOT DEFINED BIN_INSTALL_DIR) + set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin) + endif() + +-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++#if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + # uninstall target + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" +@@ -125,7 +125,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + file(GLOB supplement_schema ${PROJECT_SOURCE_DIR}/data/supplement/*.yaml) + install(FILES ${supplement_schema} DESTINATION ${pkgdatadir}) + endif(BUILD_DATA) +-endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++#endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + + if(BUILD_SHARED_LIBS) + set(RIME_LIBRARY rime) |