Hi, Here is patch to add the ibus-hangul input method to the port tree. It is based mostly on ibus-anthy. There is a test infra but 1 of the 2 tests requires running X and I don't know how to manage this and even if it's possible with the build system.
Tested under Gnome, on OpenBSD amd64 current. This is my very first submission to ports, so please do not shoot :-) Best regards,
diff --git a/inputmethods/Makefile b/inputmethods/Makefile index fc9852e8ae6..56dcce82e85 100644 --- a/inputmethods/Makefile +++ b/inputmethods/Makefile @@ -13,6 +13,7 @@ SUBDIR += fcitx-tables SUBDIR += ibus SUBDIR += ibus-anthy + SUBDIR += ibus-hangul SUBDIR += ibus-skk SUBDIR += libskk SUBDIR += libtomoe-gtk diff --git a/inputmethods/ibus-hangul/Makefile b/inputmethods/ibus-hangul/Makefile new file mode 100644 index 00000000000..bc4196346af --- /dev/null +++ b/inputmethods/ibus-hangul/Makefile @@ -0,0 +1,40 @@ + +COMMENT = hangul input engine for ibus + +GH_ACCOUNT = libhangul +GH_PROJECT = ibus-hangul +GH_TAGNAME = 1.5.4 + +CATEGORIES = inputmethods korean + +HOMEPAGE = https://github.com/libhangul/ibus-hangul/wiki + +# GPLv2 +PERMIT_PACKAGE = Yes + +WANTLIB += hangul ffi glib-2.0 gobject-2.0 iconv intl +WANTLIB += c gio-2.0 gmodule-2.0 ibus-1.0 z +WANTLIB += pcre pthread + +MODULES = devel/dconf \ + lang/python + +MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} + +BUILD_DEPENDS = devel/gettext,-tools \ + inputmethods/ibus + +RUN_DEPENDS = devel/desktop-file-utils \ + inputmethods/ibus \ + x11/gtk+3,-guic + +LIB_DEPENDS = korean/libhangul + +USE_GMAKE = Yes + +AUTOCONF_VERSION = 2.69 +AUTOMAKE_VERSION = 1.16 + +CONFIGURE_STYLE = autoreconf + +.include <bsd.port.mk> diff --git a/inputmethods/ibus-hangul/distinfo b/inputmethods/ibus-hangul/distinfo new file mode 100644 index 00000000000..4c41bd5f953 --- /dev/null +++ b/inputmethods/ibus-hangul/distinfo @@ -0,0 +1,2 @@ +SHA256 (ibus-hangul-1.5.4.tar.gz) = PhQ4uV4dshyY3dy8kxIIGckZICyE9quYCiK6wIlrABg= +SIZE (ibus-hangul-1.5.4.tar.gz) = 69641 diff --git a/inputmethods/ibus-hangul/pkg/DESCR b/inputmethods/ibus-hangul/pkg/DESCR new file mode 100644 index 00000000000..a0112996f1c --- /dev/null +++ b/inputmethods/ibus-hangul/pkg/DESCR @@ -0,0 +1,2 @@ +The Hangul engine for IBus platform. It provides Korean input +method from libhangul. diff --git a/inputmethods/ibus-hangul/pkg/PLIST b/inputmethods/ibus-hangul/pkg/PLIST new file mode 100644 index 00000000000..da2fab1707a --- /dev/null +++ b/inputmethods/ibus-hangul/pkg/PLIST @@ -0,0 +1,36 @@ +@comment $OpenBSD: PLIST,v$ +bin/ibus-setup-hangul +@bin libexec/ibus-engine-hangul +libexec/ibus-setup-hangul +share/applications/ibus-setup-hangul.desktop +share/glib-2.0/schemas/org.freedesktop.ibus.engine.hangul.gschema.xml +share/ibus-hangul/ +share/ibus-hangul/data/ +share/ibus-hangul/data/symbol.txt +share/ibus-hangul/icons/ +share/ibus-hangul/icons/ibus-hangul.png +share/ibus-hangul/icons/ibus-hangul.svg +share/ibus-hangul/setup/ +${MODPY_COMMENT}share/ibus-hangul/setup/${MODPY_PYCACHE}/ +share/ibus-hangul/setup/${MODPY_PYCACHE}config.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +share/ibus-hangul/setup/${MODPY_PYCACHE}config.${MODPY_PYC_MAGIC_TAG}pyc +share/ibus-hangul/setup/${MODPY_PYCACHE}keycapturedialog.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +share/ibus-hangul/setup/${MODPY_PYCACHE}keycapturedialog.${MODPY_PYC_MAGIC_TAG}pyc +share/ibus-hangul/setup/${MODPY_PYCACHE}main.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +share/ibus-hangul/setup/${MODPY_PYCACHE}main.${MODPY_PYC_MAGIC_TAG}pyc +share/ibus-hangul/setup/config.py +share/ibus-hangul/setup/keycapturedialog.py +share/ibus-hangul/setup/main.py +share/ibus-hangul/setup/setup.ui +share/ibus/component/hangul.xml +share/icons/hicolor/64x64/apps/ibus-hangul.png +share/icons/hicolor/64x64/apps/ibus-setup-hangul.png +share/icons/hicolor/scalable/apps/ibus-hangul.svg +share/icons/hicolor/scalable/apps/ibus-setup-hangul.svg +share/locale/ko/LC_MESSAGES/ibus-hangul.mo +share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo +share/metainfo/ +share/metainfo/org.freedesktop.ibus.engine.hangul.metainfo.xml +@tag glib-compile-schemas +@tag update-desktop-database +@tag gtk-update-icon-cache %D/share/icons/hicolor