Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 7DF26782BFE for <~alpine/aports@lists.alpinelinux.org>; Mon, 30 Aug 2021 14:27:33 +0000 (UTC) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Gyt2F0T6ZzQk2v; Mon, 30 Aug 2021 16:27:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kasku.net; s=MBO0001; t=1630333651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k2qQO+rtSJDDppTpt9i85dQT70hSXpDAZzA/0ziSh2c=; b=G6mjpARDEOJk7g84vv9ESZf04HpPoDNK3+4sx3g8gcPyX9+U6dr1z5xztZHDJBp8UYzKFM lRYLLplnds07eaXV7bN6Ue173UJXN43Qq7ZLDwbzIykcsiZMAJIQ+ZjU2UL0WpteAOQsyy Phv2HFActKnEp/s14uo13DRX5zT+QxZk+fvsxwBzK2RHc5C0ZaAryTY2ZCZWydpH7GG39m /dxi6EgNxoecK8L+SPrmfx4PfEhuh2LaLQwPDUA+yzizGncNUccdxbo8+6hczjFh5OihAd /HJsJmbEUzrHgB06aiPimmJf7jdTQQRrLZjW5b44hXKu384IEB8HuTKlmnOF7Q== Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id BVW5wedp4tnU; Mon, 30 Aug 2021 16:27:26 +0200 (CEST) From: Cormac Stephenson To: ~alpine/aports@lists.alpinelinux.org Cc: Cormac Stephenson Subject: [PATCH v3] testing/ibus-hangul: new aport Date: Mon, 30 Aug 2021 15:24:46 +0100 Message-Id: <20210830142444.17218-1-c7s@kasku.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 008CA1845 X-Rspamd-UID: 5a8d60 --- .../0001-Update-gettext-version.patch | 25 +++++++++++ .../ibus-hangul/0002-Use-gettext-module.patch | 25 +++++++++++ testing/ibus-hangul/APKBUILD | 45 +++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 testing/ibus-hangul/0001-Update-gettext-version.patch create mode 100644 testing/ibus-hangul/0002-Use-gettext-module.patch create mode 100644 testing/ibus-hangul/APKBUILD diff --git a/testing/ibus-hangul/0001-Update-gettext-version.patch b/testing/ibus-hangul/0001-Update-gettext-version.patch new file mode 100644 index 0000000000..4b77f2041a --- /dev/null +++ b/testing/ibus-hangul/0001-Update-gettext-version.patch @@ -0,0 +1,25 @@ +From 51b70498e2b26fa82161d1ac8007a448af0d5f20 Mon Sep 17 00:00:00 2001 +From: Cormac Stephenson +Date: Mon, 23 Aug 2021 23:40:33 +0100 +Subject: [PATCH 1/2] Update gettext version + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 114a7c0..87ba47f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -51,7 +51,7 @@ AC_ISC_POSIX + AC_HEADER_STDC + AM_PROG_LIBTOOL + +-AM_GNU_GETTEXT_VERSION([0.19.8]) ++AM_GNU_GETTEXT_VERSION(0.20) + AM_GNU_GETTEXT([external]) + + # check ibus +-- +2.32.0 + diff --git a/testing/ibus-hangul/0002-Use-gettext-module.patch b/testing/ibus-hangul/0002-Use-gettext-module.patch new file mode 100644 index 0000000000..fafe9a31ba --- /dev/null +++ b/testing/ibus-hangul/0002-Use-gettext-module.patch @@ -0,0 +1,25 @@ +From a1e9c3b022ae893d679ae3102f5b5c63afa31379 Mon Sep 17 00:00:00 2001 +From: Cormac Stephenson +Date: Sun, 29 Aug 2021 16:08:52 +0100 +Subject: [PATCH 2/2] Use gettext module + +--- + setup/main.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup/main.py b/setup/main.py +index cb82f05..7915e27 100644 +--- a/setup/main.py ++++ b/setup/main.py +@@ -294,7 +294,7 @@ class Setup (): + self.__settings.set_value(key, v) + + if __name__ == "__main__": +- locale.bindtextdomain(config.gettext_package, config.localedir) ++ gettext.bindtextdomain(config.gettext_package, config.localedir) + + GLib.set_prgname("ibus-setup-hangul") + GLib.set_application_name(_("IBusHangul Setup")) +-- +2.32.0 + diff --git a/testing/ibus-hangul/APKBUILD b/testing/ibus-hangul/APKBUILD new file mode 100644 index 0000000000..5fafe5aa02 --- /dev/null +++ b/testing/ibus-hangul/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Cormac Stephenson +# Maintainer: Cormac Stephenson +pkgname=ibus-hangul +pkgver=1.5.4 +pkgrel=0 +pkgdesc="Korean input method engine for IBus" +url="https://github.com/libhangul/ibus-hangul" +arch="all" +license="GPL-2.0-only" +depends="py3-gobject3 gtk-update-icon-cache" +makedepends="automake autoconf libtool ibus-dev libhangul-dev gtk+3.0-dev" +subpackages="$pkgname-lang" +source="$pkgname-$pkgver.tar.gz::https://github.com/libhangul/ibus-hangul/archive/refs/tags/$pkgver.tar.gz + 0001-Update-gettext-version.patch + 0002-Use-gettext-module.patch +" +options="!check" # test requires user interaction + +prepare() { + default_prepare + autoreconf -fi +} + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libexec=/usr/lib/ibus + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +9ee5a3364fdfb1ec0177c797009f9723f1c7c9bb096c24ec2a8b12340e230207df4c7fe490534dea237850822cd307c6971dec56e9767b5a9fcef82278875b01 ibus-hangul-1.5.4.tar.gz +9b8c8e4925bf4c688e96e3c35916aa5bdb1e918747c9d759307d09e37365877b2e80f9be4c08fe52c60bb28252ed644fcae0d9b10d6381673f585b9d84356686 0001-Update-gettext-version.patch +79d5bcbc7141d38d758e631661dc07285bd16be82b0426668affd43f746756d17713897fe97c3400b762241673dda9e66aa90dfe0708085f704ae67245d5b81e 0002-Use-gettext-module.patch +" -- 2.32.0