git: 90fd687e394c - main - chinese/ibus-array: new port: IME modules for ibus

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 08 Nov 2023 08:04:06 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=90fd687e394c7a8ad9dd38eb0404c378a50b0d5b

commit 90fd687e394c7a8ad9dd38eb0404c378a50b0d5b
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-11-06 11:55:39 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-11-08 08:03:43 +0000

    chinese/ibus-array: new port: IME modules for ibus
    
    Array 30 Traditional Chinese IME module for ibus
    
    PR:             251538
    Reported by:    Jia-Shiun Li <jiashiun@gmail.com>
---
 chinese/Makefile             |  1 +
 chinese/ibus-array/Makefile  | 32 ++++++++++++++++++++++++++++++++
 chinese/ibus-array/distinfo  |  3 +++
 chinese/ibus-array/pkg-descr |  2 ++
 chinese/ibus-array/pkg-plist | 12 ++++++++++++
 5 files changed, 50 insertions(+)

diff --git a/chinese/Makefile b/chinese/Makefile
index 815fbf684423..5d1927cd9af7 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -48,6 +48,7 @@
     SUBDIR += gcin-qt5
     SUBDIR += gydict
     SUBDIR += hc
+    SUBDIR += ibus-array
     SUBDIR += ibus-cangjie
     SUBDIR += ibus-chewing
     SUBDIR += ibus-libpinyin
diff --git a/chinese/ibus-array/Makefile b/chinese/ibus-array/Makefile
new file mode 100644
index 000000000000..4055def90b97
--- /dev/null
+++ b/chinese/ibus-array/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	ibus-array
+PORTVERSION=	0.2.2.${SNAPDATE}
+CATEGORIES=	chinese
+
+MAINTAINER=	jiashiun@gmail.com
+COMMENT=	Array 30 input method for IBus
+WWW=		https://github.com/lexical/ibus-array/
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	ibus-daemon:textproc/ibus zh-opencc>=1.0:chinese/opencc
+RUN_DEPENDS=	ibus-daemon:textproc/ibus zh-opencc>=1.0:chinese/opencc
+
+USES=		autoreconf gmake gnome libtool pkgconfig python:3.0+ sqlite
+USE_GNOME+=	glib20
+USE_GITHUB=	yes
+GH_ACCOUNT=	lexical
+GH_TAGNAME=	06146c5e6518ddf813d0ab1789ba84eadbe9d52b
+SNAPDATE=	20230502
+
+GNU_CONFIGURE=	yes
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=		gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+pre-configure:
+	cd ${WRKSRC} && ./autogen.sh
+
+.include <bsd.port.mk>
diff --git a/chinese/ibus-array/distinfo b/chinese/ibus-array/distinfo
new file mode 100644
index 000000000000..b2b137930f80
--- /dev/null
+++ b/chinese/ibus-array/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1694586372
+SHA256 (lexical-ibus-array-0.2.2.20230502-06146c5e6518ddf813d0ab1789ba84eadbe9d52b_GH0.tar.gz) = 7b8bd8b03fd86605a010530d7c56908691399e93b562be9568aa23776b98bfbe
+SIZE (lexical-ibus-array-0.2.2.20230502-06146c5e6518ddf813d0ab1789ba84eadbe9d52b_GH0.tar.gz) = 4272091
diff --git a/chinese/ibus-array/pkg-descr b/chinese/ibus-array/pkg-descr
new file mode 100644
index 000000000000..288f2aa4c163
--- /dev/null
+++ b/chinese/ibus-array/pkg-descr
@@ -0,0 +1,2 @@
+Implementation of fully functional Array 30 input method engine for iBus.
+Array 30 is a traditional Chinese input method used in Taiwan.
diff --git a/chinese/ibus-array/pkg-plist b/chinese/ibus-array/pkg-plist
new file mode 100644
index 000000000000..24dcadd86ee1
--- /dev/null
+++ b/chinese/ibus-array/pkg-plist
@@ -0,0 +1,12 @@
+libexec/ibus-engine-array
+libexec/ibus-setup-array
+%%DATADIR%%/icons/ibus-array.png
+%%DATADIR%%/setup/__pycache__/config%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%DATADIR%%/setup/__pycache__/config%%PYTHON_EXT_SUFFIX%%.pyc
+%%DATADIR%%/setup/__pycache__/main%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%DATADIR%%/setup/__pycache__/main%%PYTHON_EXT_SUFFIX%%.pyc
+%%DATADIR%%/setup/config.py
+%%DATADIR%%/setup/main.py
+%%DATADIR%%/tables/array.db
+share/ibus/component/array.xml
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-array.mo