all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38870] Package ibus-libhangul
@ 2020-01-02 10:52 kanichos
  2020-01-03  6:23 ` bug#38870: " Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: kanichos @ 2020-01-02 10:52 UTC (permalink / raw)
  To: 38870

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+)))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#38870: Package ibus-libhangul
  2020-01-02 10:52 [bug#38870] Package ibus-libhangul kanichos
@ 2020-01-03  6:23 ` Ricardo Wurmus
  2020-01-03  9:21   ` [bug#38870] " kanichos
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2020-01-03  6:23 UTC (permalink / raw)
  To: kanichos; +Cc: 38870-done


kanichos@yandex.ru writes:

> It is the Korean input method for IBus. It supports Hangul and Hanja.

Thank you.

I split this into two commits:

94b8fe80419b835dbcab989a48d272c2bb65798f for libhangul
30208c1078485f0392f476f5d89693f6d338016f for ibus-libhangul

I changed the description of libhangul and used the version variable in
the source URI.  I also changed the indentation and added a copyright
line for you.

-- 
Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#38870] Package ibus-libhangul
  2020-01-03  6:23 ` bug#38870: " Ricardo Wurmus
@ 2020-01-03  9:21   ` kanichos
  0 siblings, 0 replies; 3+ messages in thread
From: kanichos @ 2020-01-03  9:21 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 38870-done@debbugs.gnu.org

Note that the source URI is unique anyway. The number in front of ‘libhangul’ is unique. Is it not misleading to compose it from the version variable? Also, apparently, there has not been a new release for ten years, despite development continuing on GitHub.

Also it seems that the IBus engine is actually called ibus-hangul.

03.01.2020, 10:02, "Ricardo Wurmus" <rekado@elephly.net>:
> kanichos@yandex.ru writes:
>
>>  It is the Korean input method for IBus. It supports Hangul and Hanja.
>
> Thank you.
>
> I split this into two commits:
>
> 94b8fe80419b835dbcab989a48d272c2bb65798f for libhangul
> 30208c1078485f0392f476f5d89693f6d338016f for ibus-libhangul
>
> I changed the description of libhangul and used the version variable in
> the source URI. I also changed the indentation and added a copyright
> line for you.
>
> --
> Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-03  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02 10:52 [bug#38870] Package ibus-libhangul kanichos
2020-01-03  6:23 ` bug#38870: " Ricardo Wurmus
2020-01-03  9:21   ` [bug#38870] " kanichos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.