aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2022-12-30 10:00:29 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2022-12-30 10:00:29 +0000
commitaa17ba01c99c79ec9ebfa4af466fae1631bacfd5 (patch)
treee3ab4acfcf6132659348e3b7db1df68920ca9ec4
parente1a29a33c044e2063bd9d537fdf3bf790aa30059 (diff)
downloadports-aa17ba01c99c79ec9ebfa4af466fae1631bacfd5.tar.gz
ports-aa17ba01c99c79ec9ebfa4af466fae1631bacfd5.zip
Add chinese/fcitx5-mcbopomofo: McBopomofo for Fcitx5
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/fcitx5-mcbopomofo/Makefile24
-rw-r--r--chinese/fcitx5-mcbopomofo/distinfo3
-rw-r--r--chinese/fcitx5-mcbopomofo/files/patch-src_McBopomofo.cpp10
-rw-r--r--chinese/fcitx5-mcbopomofo/pkg-descr1
-rw-r--r--chinese/fcitx5-mcbopomofo/pkg-plist16
6 files changed, 55 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 4f521a2331f5..8328f021341d 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -35,6 +35,7 @@
SUBDIR += fcitx-ui-light
SUBDIR += fcitx5-chewing
SUBDIR += fcitx5-chinese-addons
+ SUBDIR += fcitx5-mcbopomofo
SUBDIR += fcitx5-rime
SUBDIR += fcitx5-table-extra
SUBDIR += fcitx5-table-other
diff --git a/chinese/fcitx5-mcbopomofo/Makefile b/chinese/fcitx5-mcbopomofo/Makefile
new file mode 100644
index 000000000000..ce72f17f33fe
--- /dev/null
+++ b/chinese/fcitx5-mcbopomofo/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= fcitx5-mcbopomofo
+DISTVERSION= 2.4.2
+CATEGORIES= chinese textproc
+
+MAINTAINER= lwhsu@FreeBSD.org
+COMMENT= McBopomofo for Fcitx5
+WWW= https://github.com/openvanilla/fcitx5-mcbopomofo
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+LIB_DEPENDS= libFcitx5Core.so:textproc/fcitx5 \
+ libfmt.so:devel/libfmt
+
+USES= cmake compiler:c++17-lang gettext-tools kde:5 pkgconfig
+
+USE_GITHUB= yes
+GH_ACCOUNT= openvanilla
+
+USE_KDE= ecm
+
+CMAKE_ARGS= -DENABLE_TEST=Off
+
+.include <bsd.port.mk>
diff --git a/chinese/fcitx5-mcbopomofo/distinfo b/chinese/fcitx5-mcbopomofo/distinfo
new file mode 100644
index 000000000000..42ac2733a5bc
--- /dev/null
+++ b/chinese/fcitx5-mcbopomofo/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672392270
+SHA256 (openvanilla-fcitx5-mcbopomofo-2.4.2_GH0.tar.gz) = 90061879b11db13b8fe1397888e7d100656de8cc6107fccddd4ab2bd8e8ad85d
+SIZE (openvanilla-fcitx5-mcbopomofo-2.4.2_GH0.tar.gz) = 1858726
diff --git a/chinese/fcitx5-mcbopomofo/files/patch-src_McBopomofo.cpp b/chinese/fcitx5-mcbopomofo/files/patch-src_McBopomofo.cpp
new file mode 100644
index 000000000000..c3a90e397bdc
--- /dev/null
+++ b/chinese/fcitx5-mcbopomofo/files/patch-src_McBopomofo.cpp
@@ -0,0 +1,10 @@
+--- src/McBopomofo.cpp.orig 2022-12-30 09:01:33 UTC
++++ src/McBopomofo.cpp
+@@ -31,6 +31,7 @@
+ #include <fmt/format.h>
+
+ #include <memory>
++#include <sstream>
+ #include <unordered_map>
+ #include <utility>
+
diff --git a/chinese/fcitx5-mcbopomofo/pkg-descr b/chinese/fcitx5-mcbopomofo/pkg-descr
new file mode 100644
index 000000000000..f007a3752ae6
--- /dev/null
+++ b/chinese/fcitx5-mcbopomofo/pkg-descr
@@ -0,0 +1 @@
+McBopomofo support for Fcitx5 input method framework.
diff --git a/chinese/fcitx5-mcbopomofo/pkg-plist b/chinese/fcitx5-mcbopomofo/pkg-plist
new file mode 100644
index 000000000000..91430a34d614
--- /dev/null
+++ b/chinese/fcitx5-mcbopomofo/pkg-plist
@@ -0,0 +1,16 @@
+lib/fcitx5/mcbopomofo.so
+share/fcitx5/addon/mcbopomofo.conf
+share/fcitx5/data/mcbopomofo-add-phrase-hook.sh
+share/fcitx5/data/mcbopomofo-data-plain-bpmf.txt
+share/fcitx5/data/mcbopomofo-data.txt
+share/fcitx5/inputmethod/mcbopomofo-plain.conf
+share/fcitx5/inputmethod/mcbopomofo.conf
+share/icons/hicolor/24x24/apps/fcitx-mcbopomofo.png
+share/icons/hicolor/24x24/apps/org.fcitx.Fcitx5.fcitx-mcbopomofo.png
+share/icons/hicolor/32x32/apps/fcitx-mcbopomofo.png
+share/icons/hicolor/32x32/apps/org.fcitx.Fcitx5.fcitx-mcbopomofo.png
+share/icons/hicolor/64x64/apps/fcitx-mcbopomofo.png
+share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-mcbopomofo.png
+share/locale/en/LC_MESSAGES/fcitx5-mcbopomofo.mo
+share/locale/zh_TW/LC_MESSAGES/fcitx5-mcbopomofo.mo
+share/metainfo/org.fcitx.Fcitx5.Addon.McBopomofo.metainfo.xml