pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/libime inputmethod/libime: import libime-1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ad6de144ca0
branches:  trunk
changeset: 447438:4ad6de144ca0
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Feb 20 21:27:37 2021 +0000

description:
inputmethod/libime: import libime-1.0.3

libime is a library to support generic input method implementation.

diffstat:

 inputmethod/libime/DESCR                             |   1 +
 inputmethod/libime/Makefile                          |  38 ++++++++++
 inputmethod/libime/PLIST                             |  72 ++++++++++++++++++++
 inputmethod/libime/buildlink3.mk                     |  13 +++
 inputmethod/libime/distinfo                          |  19 +++++
 inputmethod/libime/patches/patch-data_CMakeLists.txt |  34 +++++++++
 6 files changed, 177 insertions(+), 0 deletions(-)

diffs (201 lines):

diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/DESCR  Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,1 @@
+libime is a library to support generic input method implementation.
diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/Makefile       Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2021/02/20 21:27:37 ryoon Exp $
+
+DISTNAME=      libime-1.0.3
+CATEGORIES=    inputmethod
+MASTER_SITES=  https://download.fcitx-im.org/fcitx5/libime/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/fcitx/libime
+COMMENT=       Generic inputmethod implementation library
+LICENSE=       gnu-lgpl-v2.1
+
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+
+DICTDISTFILES+=        lm_sc.3gm.arpa-20140820.tar.bz2
+DICTDISTFILES+=        dict.utf8-20200715.tar.xz
+DICTDISTFILES+=        table.tar.gz
+
+DISTFILES=     ${DEFAULT_DISTFILES}
+EXTRACT_ONLY=  ${DEFAULT_DISTFILES}
+.for f in ${DICTDISTFILES}
+DISTFILES+=    ${f}
+SITES.${f}=    https://download.fcitx-im.org/data/
+.endfor
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+post-extract:
+.for f in ${DICTDISTFILES}
+       cd ${WRKSRC}/data && \
+               ${LN} -sf ${DISTDIR}/${DIST_SUBDIR}/${f} ${f}
+.endfor
+
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../inputmethod/fcitx5/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/PLIST  Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,72 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/20 21:27:37 ryoon Exp $
+bin/libime_history
+bin/libime_migrate_fcitx4_pinyin
+bin/libime_migrate_fcitx4_table
+bin/libime_pinyindict
+bin/libime_prediction
+bin/libime_slm_build_binary
+bin/libime_tabledict
+include/LibIME/libime/core/datrie.h
+include/LibIME/libime/core/decoder.h
+include/LibIME/libime/core/dictionary.h
+include/LibIME/libime/core/historybigram.h
+include/LibIME/libime/core/inputbuffer.h
+include/LibIME/libime/core/languagemodel.h
+include/LibIME/libime/core/lattice.h
+include/LibIME/libime/core/libimecore_export.h
+include/LibIME/libime/core/lrucache.h
+include/LibIME/libime/core/prediction.h
+include/LibIME/libime/core/segmentgraph.h
+include/LibIME/libime/core/triedictionary.h
+include/LibIME/libime/core/userlanguagemodel.h
+include/LibIME/libime/core/utils.h
+include/LibIME/libime/pinyin/libimepinyin_export.h
+include/LibIME/libime/pinyin/pinyincontext.h
+include/LibIME/libime/pinyin/pinyindata.h
+include/LibIME/libime/pinyin/pinyindecoder.h
+include/LibIME/libime/pinyin/pinyindictionary.h
+include/LibIME/libime/pinyin/pinyinencoder.h
+include/LibIME/libime/pinyin/pinyinime.h
+include/LibIME/libime/pinyin/pinyinmatchstate.h
+include/LibIME/libime/pinyin/pinyinmatchstate_p.h
+include/LibIME/libime/pinyin/shuangpindata.h
+include/LibIME/libime/pinyin/shuangpinprofile.h
+include/LibIME/libime/table/autophrasedict.h
+include/LibIME/libime/table/libimetable_export.h
+include/LibIME/libime/table/tablebaseddictionary.h
+include/LibIME/libime/table/tablecontext.h
+include/LibIME/libime/table/tabledecoder.h
+include/LibIME/libime/table/tableoptions.h
+include/LibIME/libime/table/tablerule.h
+lib/cmake/LibIMECore/LibIMECoreConfig.cmake
+lib/cmake/LibIMECore/LibIMECoreConfigVersion.cmake
+lib/cmake/LibIMECore/LibIMECoreTargets-noconfig.cmake
+lib/cmake/LibIMECore/LibIMECoreTargets.cmake
+lib/cmake/LibIMEPinyin/LibIMEPinyinConfig.cmake
+lib/cmake/LibIMEPinyin/LibIMEPinyinConfigVersion.cmake
+lib/cmake/LibIMEPinyin/LibIMEPinyinTargets-noconfig.cmake
+lib/cmake/LibIMEPinyin/LibIMEPinyinTargets.cmake
+lib/cmake/LibIMETable/LibIMETableConfig.cmake
+lib/cmake/LibIMETable/LibIMETableConfigVersion.cmake
+lib/cmake/LibIMETable/LibIMETableTargets-noconfig.cmake
+lib/cmake/LibIMETable/LibIMETableTargets.cmake
+lib/libIMECore.so
+lib/libIMECore.so.0
+lib/libIMECore.so.${PKGVERSION}
+lib/libIMEPinyin.so
+lib/libIMEPinyin.so.0
+lib/libIMEPinyin.so.${PKGVERSION}
+lib/libIMETable.so
+lib/libIMETable.so.0
+lib/libIMETable.so.${PKGVERSION}
+lib/libime/zh_CN.lm
+lib/libime/zh_CN.lm.predict
+share/libime/cj.main.dict
+share/libime/db.main.dict
+share/libime/erbi.main.dict
+share/libime/qxm.main.dict
+share/libime/sc.dict
+share/libime/wanfeng.main.dict
+share/libime/wbpy.main.dict
+share/libime/wbx.main.dict
+share/libime/zrm.main.dict
diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/buildlink3.mk  Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/02/20 21:27:37 ryoon Exp $
+
+BUILDLINK_TREE+=       libime
+
+.if !defined(LIBIME_BUILDLINK3_MK)
+LIBIME_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libime+= libime>=1.0.3
+BUILDLINK_PKGSRCDIR.libime?=   ../../inputmethod/libime
+
+.endif # LIBIME_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libime
diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/distinfo       Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.1 2021/02/20 21:27:37 ryoon Exp $
+
+SHA1 (libime-1.0.3/dict.utf8-20200715.tar.xz) = 1c483cb039e70f31035c129f1c61591402d21ed6
+RMD160 (libime-1.0.3/dict.utf8-20200715.tar.xz) = d35ca30c88f71d23484f12e702a36fb186c1b83d
+SHA512 (libime-1.0.3/dict.utf8-20200715.tar.xz) = 75ad207842937369e79c3c3616165424c4e71fbce7ba2b15c7c2f1dcb898950e6d9babf39ed5bde01c21dd025906c988a80989863175daa8d1315a9be4402130
+Size (libime-1.0.3/dict.utf8-20200715.tar.xz) = 471536 bytes
+SHA1 (libime-1.0.3/libime-1.0.3.tar.xz) = e34e33f27851dc9e0fefde88e05b4bfc936b9e20
+RMD160 (libime-1.0.3/libime-1.0.3.tar.xz) = 5df92aca8529e506e1b8737ca59b06aae333af1a
+SHA512 (libime-1.0.3/libime-1.0.3.tar.xz) = 12d8bfbec403acc538fa4df7556b429b3f7782798cc6c14368852c580947b433b5a719978168289baf30e3c653493230a2a7dbd62d0dafbab7701a2a7ecc6b09
+Size (libime-1.0.3/libime-1.0.3.tar.xz) = 409456 bytes
+SHA1 (libime-1.0.3/lm_sc.3gm.arpa-20140820.tar.bz2) = fb27b25a2a6242aadf0823004cb425eb8974acd4
+RMD160 (libime-1.0.3/lm_sc.3gm.arpa-20140820.tar.bz2) = 9de76d890d6ee3f02db2845a4a9b32c96b5b3845
+SHA512 (libime-1.0.3/lm_sc.3gm.arpa-20140820.tar.bz2) = ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519
+Size (libime-1.0.3/lm_sc.3gm.arpa-20140820.tar.bz2) = 36623028 bytes
+SHA1 (libime-1.0.3/table.tar.gz) = b7e89f95ce2da991821acd270a1220a4cd4cb65a
+RMD160 (libime-1.0.3/table.tar.gz) = b678c943b232b8aba2c462c7b81b2f99f27ecd07
+SHA512 (libime-1.0.3/table.tar.gz) = 99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9
+Size (libime-1.0.3/table.tar.gz) = 4144686 bytes
+SHA1 (patch-data_CMakeLists.txt) = 54007355fa7e0adb145e97dd94225dd5a224a668
diff -r f5bc0b571c09 -r 4ad6de144ca0 inputmethod/libime/patches/patch-data_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/libime/patches/patch-data_CMakeLists.txt      Sat Feb 20 21:27:37 2021 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-data_CMakeLists.txt,v 1.1 2021/02/20 21:27:37 ryoon Exp $
+
+* Fix runtime errors during build for pkgsrc.
+  pkgsrc removes $ORIGIN from RPATH.
+
+--- data/CMakeLists.txt.orig   2020-08-29 01:46:26.014709200 +0000
++++ data/CMakeLists.txt
+@@ -24,7 +24,7 @@ add_custom_target(opengram-lm ALL DEPEND
+ add_custom_command(
+   OUTPUT "${OPENGRAM_LM_PREDICT_OUTPUT}"
+   DEPENDS "${OPENGRAM_LM_SRC}" opengram-lm LibIME::prediction
+-  COMMAND LibIME::prediction "${OPENGRAM_LM_OUTPUT}" "${OPENGRAM_LM_SRC}" "${OPENGRAM_LM_PREDICT_OUTPUT}")
++  COMMAND "${CMAKE_COMMAND}" -E env "LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/src/libime/core" ${PROJECT_BINARY_DIR}/tools/libime_prediction "${OPENGRAM_LM_OUTPUT}" "${OPENGRAM_LM_SRC}" 
"${OPENGRAM_LM_PREDICT_OUTPUT}")
+ add_custom_target(opengram-lm-predict ALL DEPENDS "${OPENGRAM_LM_PREDICT_OUTPUT}")
+ 
+ install(FILES "${OPENGRAM_LM_OUTPUT}" RENAME zh_CN.lm DESTINATION "${LIBIME_INSTALL_LIBDATADIR}")
+@@ -46,7 +46,7 @@ add_custom_command(
+ add_custom_command(
+   OUTPUT "${OPENGRAM_DICT_OUTPUT}"
+   DEPENDS "${OPENGRAM_DICT_SRC}" LibIME::pinyindict
+-  COMMAND LibIME::pinyindict "${OPENGRAM_DICT_SRC}" "${OPENGRAM_DICT_OUTPUT}")
++  COMMAND "${CMAKE_COMMAND}" -E env "LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/src/libime/pinyin:${PROJECT_BINARY_DIR}/src/libime/core" ${PROJECT_BINARY_DIR}/tools/libime_pinyindict 
"${OPENGRAM_DICT_SRC}" "${OPENGRAM_DICT_OUTPUT}")
+ add_custom_target(opengram-dict ALL DEPENDS "${OPENGRAM_DICT_OUTPUT}")
+ install(FILES "${OPENGRAM_DICT_OUTPUT}" DESTINATION "${LIBIME_INSTALL_PKGDATADIR}")
+ 
+@@ -64,7 +64,7 @@ foreach(TABLE_TXT_FILE ${TABLE_TXT_FILES
+   string(REPLACE .txt .main.dict TABLE_DICT_FILE ${TABLE_TXT_FILE})
+   add_custom_command(OUTPUT ${TABLE_DICT_FILE}
+                      DEPENDS ${TABLE_TXT_FILE} LibIME::tabledict
+-                     COMMAND LibIME::tabledict ${TABLE_TXT_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${TABLE_DICT_FILE})
++                     COMMAND "${CMAKE_COMMAND}" -E env "LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/src/libime/table:${PROJECT_BINARY_DIR}/src/libime/core" ${PROJECT_BINARY_DIR}/tools/libime_tabledict 
${TABLE_TXT_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${TABLE_DICT_FILE})
+   list(APPEND TABLE_DICT_FILES ${CMAKE_CURRENT_BINARY_DIR}/${TABLE_DICT_FILE})
+ endforeach()
+ 



Home | Main Index | Thread Index | Old Index