From 784693f56c9c8899036fc4aa340be19676b514c8 Mon Sep 17 00:00:00 2001 From: Guangyuan Yang Date: Tue, 29 Dec 2020 14:58:55 +0000 Subject: Add Fcitx5 IME framework and related ports The Fcitx5 IME framework is the future version of the legacy Fcitx IME framework. Main parts of Fcitx5: - x11/xcb-imdkit - textproc/fcitx5 Application supports libraries of Fcitx5: - textproc/fcitx5-qt - textproc/fcitx5-gtk GUI configuration tool of Fcitx5: - textproc/fcitx5-configtool IME addons for Fcitx5: - chinese/fcitx5-rime - japanese/fcitx5-anthy textproc/fcitx5 and chinese/fcitx cannot be installed at the same time right now, due to development environment and runtime conflicts users could possibly run into. Submitted by: Ka Ho Ng Approved by: lwhsu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27667 --- chinese/Makefile | 2 ++ chinese/fcitx/Makefile | 2 +- chinese/fcitx5-chewing/Makefile | 24 ++++++++++++++++++++++++ chinese/fcitx5-chewing/distinfo | 3 +++ chinese/fcitx5-chewing/pkg-descr | 4 ++++ chinese/fcitx5-chewing/pkg-plist | 16 ++++++++++++++++ chinese/fcitx5-rime/Makefile | 33 +++++++++++++++++++++++++++++++++ chinese/fcitx5-rime/distinfo | 3 +++ chinese/fcitx5-rime/pkg-descr | 3 +++ chinese/fcitx5-rime/pkg-plist | 39 +++++++++++++++++++++++++++++++++++++++ 10 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 chinese/fcitx5-chewing/Makefile create mode 100644 chinese/fcitx5-chewing/distinfo create mode 100644 chinese/fcitx5-chewing/pkg-descr create mode 100644 chinese/fcitx5-chewing/pkg-plist create mode 100644 chinese/fcitx5-rime/Makefile create mode 100644 chinese/fcitx5-rime/distinfo create mode 100644 chinese/fcitx5-rime/pkg-descr create mode 100644 chinese/fcitx5-rime/pkg-plist (limited to 'chinese') diff --git a/chinese/Makefile b/chinese/Makefile index 13caff74a5e3..4706a6f47d87 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -37,6 +37,8 @@ SUBDIR += fcitx-sunpinyin SUBDIR += fcitx-table-extra SUBDIR += fcitx-ui-light + SUBDIR += fcitx5-chewing + SUBDIR += fcitx5-rime SUBDIR += fireflyttf SUBDIR += font-std SUBDIR += fortunetw diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile index 2ffa81edcede..197647ce3c0a 100644 --- a/chinese/fcitx/Makefile +++ b/chinese/fcitx/Makefile @@ -38,7 +38,7 @@ RUN_DEPENDS= xdg-open:devel/xdg-utils \ SUB_FILES= pkg-message SUB_LIST+= PORTSDIR=${PORTSDIR} -CONFLICTS= zh-scim-fcitx-3.* +CONFLICTS= zh-scim-fcitx-3.* fcitx5 USE_GNOME= pango intltool libxml2 introspection USE_KDE= ecm diff --git a/chinese/fcitx5-chewing/Makefile b/chinese/fcitx5-chewing/Makefile new file mode 100644 index 000000000000..bc808dc0d136 --- /dev/null +++ b/chinese/fcitx5-chewing/Makefile @@ -0,0 +1,24 @@ +# Created by: Ka Ho Ng +# $FreeBSD$ + +PORTNAME= fcitx5-chewing +DISTVERSION= 5.0.2 +CATEGORIES= chinese textproc + +MAINTAINER= khng300@gmail.com +COMMENT= Chewing support for Fcitx5 + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSES/GPL-2.0-or-later.txt + +LIB_DEPENDS= libchewing.so:chinese/libchewing \ + libFcitx5Core.so:textproc/fcitx5 + +USES= compiler:c++17-lang gettext-tools cmake kde:5 pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= fcitx + +USE_KDE= ecm + +.include diff --git a/chinese/fcitx5-chewing/distinfo b/chinese/fcitx5-chewing/distinfo new file mode 100644 index 000000000000..7c3aa338f14e --- /dev/null +++ b/chinese/fcitx5-chewing/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1608388686 +SHA256 (fcitx-fcitx5-chewing-5.0.2_GH0.tar.gz) = acf4a18ccbc815dfbb28bc92fc1d4552133c15c355ca41052d01b1b1e6d5301b +SIZE (fcitx-fcitx5-chewing-5.0.2_GH0.tar.gz) = 19701 diff --git a/chinese/fcitx5-chewing/pkg-descr b/chinese/fcitx5-chewing/pkg-descr new file mode 100644 index 000000000000..2868e8ce96ed --- /dev/null +++ b/chinese/fcitx5-chewing/pkg-descr @@ -0,0 +1,4 @@ +Chewing intelligent phonetic input method library support for +Fcitx5 input method framework. + +WWW: https://github.com/fcitx/fcitx5-chewing diff --git a/chinese/fcitx5-chewing/pkg-plist b/chinese/fcitx5-chewing/pkg-plist new file mode 100644 index 000000000000..77b6dda92b77 --- /dev/null +++ b/chinese/fcitx5-chewing/pkg-plist @@ -0,0 +1,16 @@ +lib/fcitx5/chewing.so +share/fcitx5/addon/chewing.conf +share/fcitx5/inputmethod/chewing.conf +share/icons/hicolor/48x48/apps/fcitx-chewing.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-chewing.png +share/locale/ca/LC_MESSAGES/fcitx5-chewing.mo +share/locale/da/LC_MESSAGES/fcitx5-chewing.mo +share/locale/de/LC_MESSAGES/fcitx5-chewing.mo +share/locale/he/LC_MESSAGES/fcitx5-chewing.mo +share/locale/ja/LC_MESSAGES/fcitx5-chewing.mo +share/locale/ko/LC_MESSAGES/fcitx5-chewing.mo +share/locale/ru/LC_MESSAGES/fcitx5-chewing.mo +share/locale/tr/LC_MESSAGES/fcitx5-chewing.mo +share/locale/zh_CN/LC_MESSAGES/fcitx5-chewing.mo +share/locale/zh_TW/LC_MESSAGES/fcitx5-chewing.mo +share/metainfo/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml diff --git a/chinese/fcitx5-rime/Makefile b/chinese/fcitx5-rime/Makefile new file mode 100644 index 000000000000..3e6638031214 --- /dev/null +++ b/chinese/fcitx5-rime/Makefile @@ -0,0 +1,33 @@ +# Created by: Ka Ho Ng +# $FreeBSD$ + +PORTNAME= fcitx5-rime +DISTVERSION= 5.0.2 +CATEGORIES= chinese textproc + +MAINTAINER= khng300@gmail.com +COMMENT= RIME support for Fcitx5 + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/LICENSES/LGPL-2.1-or-later.txt + +BUILD_DEPENDS= ${_SCHEMA_DEPENDS} +LIB_DEPENDS= librime.so:chinese/librime \ + libFcitx5Core.so:textproc/fcitx5 +RUN_DEPENDS= ${_SCHEMA_DEPENDS} + +USES= compiler:c++17-lang gettext-tools cmake kde:5 localbase \ + pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= fcitx + +USE_KDE= ecm + +_SCHEMA_DEPENDS= \ + ${LOCALBASE}/share/rime-data/luna_pinyin.schema.yaml:chinese/rime-luna-pinyin \ + ${LOCALBASE}/share/rime-data/bopomofo.schema.yaml:chinese/rime-bopomofo \ + ${LOCALBASE}/share/rime-data/cangjie5.schema.yaml:chinese/rime-cangjie \ + ${LOCALBASE}/share/rime-data/stroke.schema.yaml:chinese/rime-stroke + +.include diff --git a/chinese/fcitx5-rime/distinfo b/chinese/fcitx5-rime/distinfo new file mode 100644 index 000000000000..e03627216e49 --- /dev/null +++ b/chinese/fcitx5-rime/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1608288386 +SHA256 (fcitx-fcitx5-rime-5.0.2_GH0.tar.gz) = d3c2663c483a04fc5fbb0490a0de53220903314faa642d0c921815e8a1c28094 +SIZE (fcitx-fcitx5-rime-5.0.2_GH0.tar.gz) = 45722 diff --git a/chinese/fcitx5-rime/pkg-descr b/chinese/fcitx5-rime/pkg-descr new file mode 100644 index 000000000000..9ba9db9600f0 --- /dev/null +++ b/chinese/fcitx5-rime/pkg-descr @@ -0,0 +1,3 @@ +RIME support for Fcitx5 input method framework. + +WWW: https://github.com/fcitx/fcitx5-rime diff --git a/chinese/fcitx5-rime/pkg-plist b/chinese/fcitx5-rime/pkg-plist new file mode 100644 index 000000000000..8cc9936f9036 --- /dev/null +++ b/chinese/fcitx5-rime/pkg-plist @@ -0,0 +1,39 @@ +lib/fcitx5/rime.so +share/fcitx5/addon/rime.conf +share/fcitx5/inputmethod/rime.conf +share/icons/hicolor/48x48/apps/fcitx-rime-deploy.png +share/icons/hicolor/48x48/apps/fcitx-rime-disable.png +share/icons/hicolor/48x48/apps/fcitx-rime-im.png +share/icons/hicolor/48x48/apps/fcitx-rime-latin.png +share/icons/hicolor/48x48/apps/fcitx-rime-sync.png +share/icons/hicolor/48x48/apps/fcitx-rime.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime-deploy.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime-disable.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime-im.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime-latin.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime-sync.png +share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-rime.png +share/icons/hicolor/scalable/apps/fcitx-rime-deploy.svg +share/icons/hicolor/scalable/apps/fcitx-rime-disable.svg +share/icons/hicolor/scalable/apps/fcitx-rime-im.svg +share/icons/hicolor/scalable/apps/fcitx-rime-latin.svg +share/icons/hicolor/scalable/apps/fcitx-rime-sync.svg +share/icons/hicolor/scalable/apps/fcitx-rime.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime-deploy.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime-disable.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime-im.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime-latin.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime-sync.svg +share/icons/hicolor/scalable/apps/org.fcitx.Fcitx5.fcitx-rime.svg +share/locale/ca/LC_MESSAGES/fcitx5-rime.mo +share/locale/da/LC_MESSAGES/fcitx5-rime.mo +share/locale/de/LC_MESSAGES/fcitx5-rime.mo +share/locale/he/LC_MESSAGES/fcitx5-rime.mo +share/locale/ja/LC_MESSAGES/fcitx5-rime.mo +share/locale/ko/LC_MESSAGES/fcitx5-rime.mo +share/locale/ru/LC_MESSAGES/fcitx5-rime.mo +share/locale/tr/LC_MESSAGES/fcitx5-rime.mo +share/locale/vi/LC_MESSAGES/fcitx5-rime.mo +share/locale/zh_CN/LC_MESSAGES/fcitx5-rime.mo +share/locale/zh_TW/LC_MESSAGES/fcitx5-rime.mo +share/metainfo/org.fcitx.Fcitx5.Addon.Rime.metainfo.xml -- cgit v1.2.3