From patchwork Thu Jan 2 10:52:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Kozlov X-Patchwork-Id: 19526 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B15D8179D5; Thu, 2 Jan 2020 10:53:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 69247179D3 for ; Thu, 2 Jan 2020 10:53:09 +0000 (GMT) Received: from localhost ([::1]:39594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imy6G-0002i1-Qa for patchwork@mira.cbaines.net; Thu, 02 Jan 2020 05:53:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40078) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imy6B-0002ht-4W for guix-patches@gnu.org; Thu, 02 Jan 2020 05:53:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imy6A-0002ic-14 for guix-patches@gnu.org; Thu, 02 Jan 2020 05:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imy69-0002iU-UY for guix-patches@gnu.org; Thu, 02 Jan 2020 05:53:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imy69-0007PQ-Tr for guix-patches@gnu.org; Thu, 02 Jan 2020 05:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38870] Package ibus-libhangul Resent-From: kanichos@yandex.ru Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Jan 2020 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38870 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 38870@debbugs.gnu.org X-Debbugs-Original-To: guix-patches Received: via spool by submit@debbugs.gnu.org id=B.157796237528465 (code B ref -1); Thu, 02 Jan 2020 10:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2020 10:52:55 +0000 Received: from localhost ([127.0.0.1]:38277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imy63-0007P3-Ch for submit@debbugs.gnu.org; Thu, 02 Jan 2020 05:52:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:55645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imy61-0007Ov-Dm for submit@debbugs.gnu.org; Thu, 02 Jan 2020 05:52:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40054) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imy5z-0002g4-OU for guix-patches@gnu.org; Thu, 02 Jan 2020 05:52:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imy5x-0002dv-LH for guix-patches@gnu.org; Thu, 02 Jan 2020 05:52:50 -0500 Received: from forward400p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:105]:46435) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1imy5w-0002Zr-Tr for guix-patches@gnu.org; Thu, 02 Jan 2020 05:52:49 -0500 Received: from mxback20g.mail.yandex.net (mxback20g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:320]) by forward400p.mail.yandex.net (Yandex) with ESMTP id 22F3D1BC0D6F for ; Thu, 2 Jan 2020 13:52:45 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback20g.mail.yandex.net (mxback/Yandex) with ESMTP id 0uFsNOSDGB-qi8KKpdd; Thu, 02 Jan 2020 13:52:44 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1577962364; bh=e1WxMsJdcUh8mUBKKaM1Ymph9Dp5wDsaGpN0kdCsVFw=; h=Message-Id:Date:Subject:To:From; b=BRqXuGgs9eKdlKrlEytdJipXbK2ADeSRWZOsPSewE2VMa3gLZYa7YuBpFoijPYYRC 5ReKQ929H1b3nQYjmgGZH00Kc6hAEJFW9MAJaMAAalwhQUEKU0Hazq6ZDtv3wa1w4m TtFtpYna9BZaYgFtshpPdIu4xZcG/zVFhj6fI264= Authentication-Results: mxback20g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas8-f59b61ed75ea.qloud-c.yandex.net with HTTP; Thu, 02 Jan 2020 13:52:44 +0300 From: kanichos@yandex.ru MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 02 Jan 2020 13:52:44 +0300 Message-Id: <1627831577962364@sas8-f59b61ed75ea.qloud-c.yandex.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches It is the Korean input method for IBus. It supports Hangul and Hanja. --- gnu/packages/ibus.scm | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm index 7daefde021..b2b75f5ba3 100644 --- a/gnu/packages/ibus.scm +++ b/gnu/packages/ibus.scm @@ -692,3 +692,61 @@ input methods as well as those for Chinese dialects. It has the ability to compose phrases and sentences intelligently and provide very accurate traditional Chinese output.") (license gpl3+))) + +(define-public libhangul + (package + (name "libhangul") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri "http://kldp.net/hangul/release/3442-libhangul-0.1.0.tar.gz") + (sha256 + (base32 + "0ni9b0v70wkm0116na7ghv03pgxsfpfszhgyj3hld3bxamfal1ar")))) + (build-system gnu-build-system) + (home-page "https://github.com/libhangul/libhangul") + (synopsis + "A library to support hangul input method logic") + (description + "A library to support hangul input method logic, hanja dictionary and small hangul character classification.") + (license lgpl2.1+))) + +(define-public ibus-libhangul + (package + (name "ibus-libhangul") + (version "1.5.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/libhangul/ibus-hangul/releases/download/" version "/ibus-hangul-" version ".tar.gz")) + (sha256 + (base32 + "1400ba2p34vr9q285lqvjm73f6m677cgfdymmjpiwyrjgbbiqrjy")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") "/libexec/ibus-setup-hangul") + `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) + `("LD_LIBRARY_PATH" ":" prefix (,(string-append (assoc-ref inputs "libhangul") "/lib"))) + `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin"))) + (inputs + `(("ibus" ,ibus) + ("glib" ,glib) + ("python-pygobject" ,python-pygobject) + ("gtk+" ,gtk+) + ("libhangul" ,libhangul) + ("python" ,python))) + (home-page "https://github.com/libhangul/ibus-hangul") + (synopsis + "The hangul engine for IBus") + (description + "ibus-hangul is a Korean input method engine for IBus.") + (license gpl2+)))