X-Git-Url: http://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/ba88eea2b3a8a33ecd7fc0ec64e3917c6c2fe21d..a9e5e6497a9b5acfb0a277122f807ef5b59dd394:/gnu/packages/ibus.scm diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm index 60ba8a2721..c0766c06bd 100644 --- a/gnu/packages/ibus.scm +++ b/gnu/packages/ibus.scm @@ -3,8 +3,9 @@ ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2016 Chris Marusich ;;; Copyright © 2017, 2018 Efraim Flashner -;;; Copyright © 2018 Tobias Geerinckx-Rice -;;; Copyright © 2018 Meiyo Peng +;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice +;;; Copyright © 2018, 2019 Meiyo Peng +;;; Copyright © 2020 kanichos ;;; ;;; This file is part of GNU Guix. ;;; @@ -52,12 +53,13 @@ #:use-module (gnu packages serialization) #:use-module (gnu packages sqlite) #:use-module (gnu packages textutils) + #:use-module (gnu packages unicode) #:use-module (gnu packages xorg)) (define-public ibus (package (name "ibus") - (version "1.5.19") + (version "1.5.21") (source (origin (method url-fetch) (uri (string-append "https://github.com/ibus/ibus/" @@ -65,30 +67,37 @@ version "/ibus-" version ".tar.gz")) (sha256 (base32 - "0a94bnpm24581317hdnihwr4cniriml10p4ffgxg14xhvaccfrjb")))) + "1fd2d1jqpp1nn74x04zcilhhab0zar82n0kg614rma6n43kfbhdd")))) (build-system glib-or-gtk-build-system) (arguments `(#:tests? #f ; tests fail because there's no connection to dbus - #:configure-flags `("--disable-emoji-dict" ; cannot find emoji.json path - "--disable-python2" - "--enable-python-library" - ,(string-append "--with-ucd-dir=" - (getcwd) "/ucd") - "--enable-wayland") - #:make-flags - (list "CC=gcc" - (string-append "pyoverridesdir=" - (assoc-ref %outputs "out") - "/lib/python" - ,(version-major+minor (package-version python)) - "/site-packages/gi/overrides/")) + #:parallel-build? #f ; race condition discovered with emoji support + #:configure-flags (list "--enable-python-library" + (string-append + "--with-unicode-emoji-dir=" + (assoc-ref %build-inputs "unicode-emoji") + "/share/unicode/emoji") + (string-append + "--with-emoji-annotation-dir=" + (assoc-ref %build-inputs "unicode-cldr-common") + "/share/unicode/cldr/common/annotations") + (string-append "--with-ucd-dir=" + (assoc-ref %build-inputs "ucd") + "/share/ucd") + "--enable-wayland") #:phases (modify-phases %standard-phases - (add-after 'unpack 'prepare-ucd-dir - (lambda* (#:key inputs #:allow-other-keys) - (mkdir-p "../ucd") - (symlink (assoc-ref inputs "unicode-blocks") "../ucd/Blocks.txt") - (symlink (assoc-ref inputs "unicode-nameslist") "../ucd/NamesList.txt") + (add-after 'unpack 'patch-python-target-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((root (string-append (assoc-ref outputs "out") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages"))) + (substitute* "configure" + (("(py2?overridesdir)=.*" _ var) + (string-append var "=" root "/gi/overrides/")) + (("(pkgpython2dir=).*" _ var) + (string-append var root "/ibus")))) #t)) (add-before 'configure 'disable-dconf-update (lambda _ @@ -112,7 +121,7 @@ "/share/X11/locale"))) (substitute* "ui/gtk3/xkblayout.vala" (("\"(setxkbmap|xmodmap)\"" _ prog) - (string-append "\"" (assoc-ref inputs prog) "\""))) + (string-append "\"" (assoc-ref inputs prog) "/bin/" prog "\""))) #t)) (add-after 'wrap-program 'wrap-with-additional-paths (lambda* (#:key outputs #:allow-other-keys) @@ -131,7 +140,7 @@ ("gconf" ,gconf) ("gtk2" ,gtk+-2) ("gtk+" ,gtk+) - ("intltool" ,intltool) + ("gettext" ,gnu-gettext) ("json-glib" ,json-glib) ("libnotify" ,libnotify) ("libx11" ,libx11) @@ -144,18 +153,9 @@ (native-inputs `(("glib" ,glib "bin") ; for glib-genmarshal ("gobject-introspection" ,gobject-introspection) ; for g-ir-compiler - ("unicode-nameslist" - ,(origin - (method url-fetch) - (uri "https://www.unicode.org/Public/UNIDATA/NamesList.txt") - (sha256 - (base32 "0yr2h0nfqhirfi3bxl33z6cc94qqshlpgi06c25xh9754irqsgv8")))) - ("unicode-blocks" - ,(origin - (method url-fetch) - (uri "https://www.unicode.org/Public/UNIDATA/Blocks.txt") - (sha256 - (base32 "0lnh9iazikpr548bd7nkaq9r3vfljfvz0rg2462prac8qxk7ni8b")))) + ("ucd" ,ucd) + ("unicode-emoji" ,unicode-emoji) + ("unicode-cldr-common" ,unicode-cldr-common) ("vala" ,vala) ("pkg-config" ,pkg-config))) (native-search-paths @@ -173,7 +173,7 @@ may also simplify input method development.") (define-public ibus-libpinyin (package (name "ibus-libpinyin") - (version "1.10.0") + (version "1.11.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/libpinyin/ibus-libpinyin/" @@ -181,7 +181,7 @@ may also simplify input method development.") "/ibus-libpinyin-" version ".tar.gz")) (sha256 (base32 - "0yq8aw4lddiviag8cnik6fp52vvk8lxv6bym13a3xya84c6zii3c")))) + "1bl1cgicd2df797dx1x0q904438bsn8i23djzcfcai4dp3631xc0")))) (build-system glib-or-gtk-build-system) (arguments `(#:phases @@ -207,6 +207,7 @@ may also simplify input method development.") ("sqlite" ,sqlite) ("python" ,python) ("pyxdg" ,python-pyxdg) + ("pygobject2" ,python-pygobject) ("gtk+" ,gtk+))) (native-inputs `(("pkg-config" ,pkg-config) @@ -222,15 +223,15 @@ ZhuYin (Bopomofo) input method based on libpinyin for IBus.") (define-public libpinyin (package (name "libpinyin") - (version "2.2.0") + (version "2.3.0") (source (origin (method url-fetch) (uri (string-append "https://github.com/libpinyin/libpinyin/" "releases/download/" version - "/libpinyin-2.2.0.tar.gz")) + "/libpinyin-" version ".tar.gz")) (sha256 (base32 - "1c4wxvcvjxvk23mcwqvsfsv4nhimx4kpjhabxa28gx1ih10l88gj")))) + "14969v6w8n1aiqphl2386dws7dmsdwbzyqnlz4kr8ppm39m9rp5k")))) (build-system gnu-build-system) (inputs `(("glib" ,glib) @@ -298,7 +299,7 @@ Japanese language input in most graphical applications.") (define-public librime (package (name "librime") - (version "1.3.2") + (version "1.5.3") (source (origin (method git-fetch) @@ -308,7 +309,7 @@ Japanese language input in most graphical applications.") (file-name (git-file-name name version)) (sha256 (base32 - "06q10cv7a3i6d8l3sq79nasw3p1njvmjgh4jq2hqw9abcx351m1r")) + "0xskhdhk7dgpc71r39pfzxi5vrlzy90aqj1gzv8nnapq91p2awhv")) (modules '((guix build utils))) (snippet '(begin @@ -349,16 +350,16 @@ traditional Chinese output.") (define-public rime-data (package (name "rime-data") - (version "0.38.20181029") + (version "0.38.20190131") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/plum.git") - (commit "fb4f829da2007f2dbb37d60a79bc67c25ea16568"))) + (commit "8b48688cd4610d0c9223eb68831a31b6134e4cc8"))) (file-name "plum-checkout") (sha256 - (base32 "1m1wiv9j5bay4saga58c7dj4h8gqivsbyp16y245ifvxvp9czj67")))) + (base32 "0fv3hv4av9y7afxijh1n8idnyf82v9rxxi2ypmxd7lkj4naa22qh")))) (build-system gnu-build-system) (arguments `(#:tests? #f ; no tests @@ -380,7 +381,8 @@ traditional Chinese output.") (let* ((dest-dir "package/rime")) (mkdir-p dest-dir) (for-each (lambda (pkg) - (symlink (assoc-ref inputs pkg) + (symlink (assoc-ref inputs + (string-append "rime-" pkg)) (string-append dest-dir "/" pkg))) '("array" "bopomofo" @@ -406,216 +408,216 @@ traditional Chinese output.") #t)) (delete 'configure)))) (native-inputs - `(("array" + `(("rime-array" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-array.git") - (commit "906e923902147584b0b0247028a782abbfbfd8a0"))) + (commit "93cc99238f120606a076220ec4ddcad164f6396a"))) (file-name "rime-array-checkout") (sha256 (base32 - "1alk6ghn4ji4kvp7lfm57bwm2gjh99i79r0w9naz6wkdim8idvb1")))) - ("bopomofo" + "06yxrv3x702751jvx46rfw3ix34jk7jh183rz6bllznzi7lxz7sz")))) + ("rime-bopomofo" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-bopomofo.git") - (commit "8dc44ca1b6ef4e45b452e070b9da737f5da165e3"))) + (commit "ed25098386f5efd3d70b08650f0d1b70c41c11a3"))) (file-name "rime-bopomofo-checkout") (sha256 (base32 - "16k6wfhcrw3a77rmbrp21ca0gmsmb3f68s193c1cfwr8i68k46nf")))) - ("cangjie" + "1ip1pbfb1hadf2mcymr5939iagf25ywfl67d9198jahzyr6rdyvc")))) + ("rime-cangjie" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-cangjie.git") - (commit "ab085e90856b3399b374dc3c8b4cb40d11f307a8"))) + (commit "5fd8ce6f64039e505ca02655a621f2e830b97c19"))) (file-name "rime-cangjie-checkout") (sha256 (base32 - "11fgj0rbv9nyzfijwm2l8pm8fznhif4h27ndrrcaaylkp7p5zsx2")))) - ("combo-pinyin" + "1gf6r0q593ixar6v0jyvs56cik2gjp7pf9v799rfd2yydyia3bfg")))) + ("rime-combo-pinyin" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-combo-pinyin.git") - (commit "f1bae63f20504f2b8113c5cbdf2700e858aa91eb"))) + (commit "9bd952b964e9744e5d18e9e31625b50f3585a2cb"))) (file-name "rime-combo-pinyin-checkout") (sha256 (base32 - "1l1079akwm1hw4kkn0q6x9fpylnl2ka6z2fn7lmdpfpsr0xgn0n7")))) - ("double-pinyin" + "0crafjs39x4j221gb34mxxh3cdpxfhhx3nfw6b6bgkzlrp35a02b")))) + ("rime-double-pinyin" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-double-pinyin.git") - (commit "2101a5cd40e511ec38835769aa66d2dddf059c2e"))) + (commit "69bf85d4dfe8bac139c36abbd68d530b8b6622ea"))) (file-name "rime-double-pinyin-checkout") (sha256 (base32 - "19hh2qm0njbfk2js678hfm2hw9b796s43vs11yy3m1v9m0gk2vi7")))) - ("emoji" + "093wif5avvvw45fqbwj5wkbxrychy4pagl4mwsmbrayc8jkp69ak")))) + ("rime-emoji" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-emoji.git") - (commit "6e6611b315f03ee4c33f958f9dbe960b13a0ed19"))) + (commit "c8d67f9b50bf89a10c57da646d2e6db8799aef38"))) (file-name "rime-emoji-checkout") (sha256 (base32 - "1brfs3214w36j3345di9ygp468hbvbqdqpkjxxs1dbp437rayhyy")))) - ("essay" + "0ngcm088iyyp3llxvv0m80i7n5928d6cgh256ikhn3ixallxxdxv")))) + ("rime-essay" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-essay.git") - (commit "5e5c7a0ef41c9b030abdad81a9df07b56b1661e9"))) + (commit "71d0b1f3d4f3bfe61ae07581edf07579740c4421"))) (file-name "rime-essay-checkout") (sha256 (base32 - "0ana9is0zhh79m4gjshvmaxbrg3jiqysydx5bpm151i7i6vw5y1i")))) - ("ipa" + "1iwz104k7zfk7lpa257kvpqdr6jhbg3p76n3644ywiz4l7kc678i")))) + ("rime-ipa" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-ipa.git") - (commit "02a9e2c181921a2e95e1a81f88188c41132755c3"))) + (commit "e420c7bfb07153a2d2484eb2bdccdd719811abbb"))) (file-name "rime-ipa-checkout") (sha256 (base32 - "1szrxgvqlgmxapj2aflw2cvbv0p6pl0sw0gyxa13dvdhhf7s9rvr")))) - ("jyutping" + "1wfv7lb4y61b3qic5mhw92rn46cckldd9wrkcq03mg5512mbw63z")))) + ("rime-jyutping" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-jyutping.git") - (commit "1402ec3d6cc0973f952fe3f9ef531294e4ffe9e0"))) + (commit "04891a298319888e8c6b1a20e0fa81cfaea01264"))) (file-name "rime-jyutping-checkout") (sha256 (base32 - "17g03dy4gw6vyc9da1wjn3iy9hx64dfnwiwsfc7bkzan22x2m4dv")))) - ("luna-pinyin" + "0wsj965khglz36cnvfm4fkv386xvxhmsxgcw88p5qi0b3wlbzzx6")))) + ("rime-luna-pinyin" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-luna-pinyin.git") - (commit "3b05132576f5c347ff8a70857d2dae080936ac3b"))) + (commit "c9c405566177cb3898bdb82d7f4157587f2d9c01"))) (file-name "rime-luna-pinyin-checkout") (sha256 (base32 - "0kgnpxjn10dm2d9718r12rdjlwqd2s2h84jvkhxhh5v0dkv1anl2")))) - ("middle-chinese" + "0i7f2675lvj9pzwlm8550ifnr3xqi77xlyyvml1wpxpkfqhjr475")))) + ("rime-middle-chinese" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-middle-chinese.git") - (commit "9ba8d70330654b9a730f882d35cfad7dbeddfd75"))) + (commit "ed6d44f8d0bedf6e0c1c3183a270f8f01a211a40"))) (file-name "rime-middle-chinese-checkout") (sha256 (base32 - "0hwg5zby5kphh0bcfay8mfxwr5bwqhamiw3cmmmf7kp9fbns5s23")))) - ("pinyin-simp" + "09mql88lsrxa99pyllby5z22kaiwwa037ha8gwaxjnnlsjgvz7zx")))) + ("rime-pinyin-simp" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-pinyin-simp.git") - (commit "74357ffd62c05fb60edf6eab5b86bc8c8c1907d0"))) + (commit "bb5a6dfa871669d2f451b477bfff6d131df6f6c6"))) (file-name "rime-pinyin-simp-checkout") (sha256 (base32 - "1paw3c7pv5bl54abnp9pidfxrkchdacyxy5m9zb311p5sgm7fhxh")))) - ("prelude" + "0ss82042k833w5q72h72ghcfchkx00nx6l4z4fb861s2rxr0bkjd")))) + ("rime-prelude" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-prelude.git") - (commit "33040568c3ddb2ee6340c9b669494317db21b77c"))) + (commit "8a52b4f86a59f3eb602f9a4cf6a680a67c15df8c"))) (file-name "rime-prelude-checkout") (sha256 (base32 - "1gwcasyyg6f0ib6s4qsrrjcqr1lcs7j3xqxl65rznsw44nhnbwwq")))) - ("quick" + "039fr3996vfxzn2milaq1f5fw08f6zgjsxsql6cfhsc5b55fidm7")))) + ("rime-quick" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-quick.git") - (commit "910a97d403ad8e72f322488da146da79c19d623f"))) + (commit "3fe5911ba608cb2df1b6301b76ad1573bd482a76"))) (file-name "rime-quick-checkout") (sha256 (base32 - "0yrq3gbfmm29xlr52rmxc41mqfrb0295q7sdhbc3ax71677mpr0y")))) - ("scj" + "08bh87ym5qvw55lyw20l3m7jd4c2z5rvil8h5q8790r7z6j6ijy9")))) + ("rime-scj" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-scj.git") - (commit "e0eae889f4376d2a434ac3b38523e0da7400db68"))) + (commit "cab5a0858765eff0553dd685a2d61d5536e9149c"))) (file-name "rime-scj-checkout") (sha256 (base32 - "1whnv9zs349kvy0zi7dnmpqwil8i6gqwrzvhy3qdrjzy58y6gwxn")))) - ("soutzoe" + "0ard2bjp4896a8dimmcwyjwgmp9kl4rz92yc92jnd3y4rgwl6fvk")))) + ("rime-soutzoe" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-soutzoe.git") - (commit "e47841a8ad6341731c41cdb814b7a25c837603c4"))) + (commit "beeaeca72d8e17dfd1e9af58680439e9012987dc"))) (file-name "rime-soutzoe-checkout") (sha256 (base32 - "1rgpmkxa72jy6gyy44fn8azpk3amk9s9lrdf7za03nv95d0fvm0p")))) - ("stenotype" + "0jyqx0q9s0qxn168l5n8zav8jcl2g5ppr7pa8jm1vwrllf20slcc")))) + ("rime-stenotype" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-stenotype.git") - (commit "d4ff379314fd95283853d1734854979cf3cbd287"))) + (commit "1d472097c32d943d1096644f4c31f28799a17bd8"))) (file-name "rime-stenotype-checkout") (sha256 (base32 - "1kckpi4l4884hvydr3d6vid3v7rsc1app29kmk7v8jf8vn16afhl")))) - ("stroke" + "1dy9qlbyhnshq2k1vcvkqn2624r96iaixhyrx1z7v0vz84fjf6y4")))) + ("rime-stroke" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-stroke.git") - (commit "cfd29c675c46cf70b7a7f0a3836a913059316a0a"))) + (commit "f802735392b378fb2a56a9b7b53b8ec96a30ccaf"))) (file-name "rime-stroke-checkout") (sha256 (base32 - "135is9c1p4lm98fd9l1gxyflkm69cv5an129ka7sk614bq84m08d")))) - ("terra-pinyin" + "1wlrsskxhldh8369n771gk7sxflzdx0c9qhq1mqm5hhkwc5ig1j0")))) + ("rime-terra-pinyin" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-terra-pinyin.git") - (commit "15b5c73a796571cd6f9ef6c89f96656cb9df86f9"))) + (commit "b9e0edd3182e74b26b03a278c038e669ca538a35"))) (file-name "rime-terra-pinyin-checkout") (sha256 (base32 - "1xsd84h1zw417h5hr4dbgyk5009zi7q2p9774w3ccr5sxgc3i3cm")))) - ("wubi" + "1vzrv2k178bii4ld9rvpdi8zmcwybd8bks0qzjx2v4kbjgwj28zk")))) + ("rime-wubi" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-wubi.git") - (commit "d44403728a0b1cd8b47cb1f81b83f58e5f790b74"))) + (commit "dd052ee158a38cb791755318b1aef9b4a3ed0316"))) (file-name "rime-wubi-checkout") (sha256 (base32 - "0ld31bdn94lncxd1ka44w4sbl03skh08mc927dhdmwq5bpvrgn36")))) - ("wugniu" + "00xzv3sbwqh2jz4i7s315h7rw17qa2dgj7kflyy3blxk0s2cqiqa")))) + ("rime-wugniu" ,(origin (method git-fetch) (uri (git-reference (url "https://github.com/rime/rime-wugniu.git") - (commit "65bcc354ada3839591d7546a64c71dbdd0592b02"))) + (commit "abd1ee98efbf170258fcf43875c21a4259e00b61"))) (file-name "rime-wugniu-checkout") (sha256 (base32 - "0g31awp40s778sp5c290x40s8np86n8aw011s17sslxrqhhb0bkx")))))) + "0qn54d3cclny106ixdw08r5n6wn52ffs1hgrma3k0j4pv0kr9nlq")))))) (home-page "https://rime.im/") (synopsis "Schema data of Rime Input Method Engine") (description "@dfn{rime-data} provides the schema data of Rime Input @@ -625,7 +627,7 @@ Method Engine.") (define-public ibus-rime (package (name "ibus-rime") - (version "1.3.0") + (version "1.4.0") (source (origin (method git-fetch) @@ -634,7 +636,7 @@ Method Engine.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1nqi7ymv34a9kx24say3xj98lkrs9nkpv1n2ijb91wdz3cr012ly")))) + (base32 "12y6jdz1amhgrnqa7zjim63dfsz6zyxyahbirfan37wmcfp6gp1d")))) (build-system gnu-build-system) (arguments `(#:tests? #f ; no tests @@ -660,6 +662,13 @@ Method Engine.") (assoc-ref inputs "rime-data") "/share/rime-data\"\n"))) #t)) + (add-after 'unpack 'fix-file-names + (lambda* (#:key outputs #:allow-other-keys) + ;; IBus uses the component file rime.xml to start the Rime + ;; engine. It must be patched with appropriate file names. + (substitute* "rime.xml" + (("/usr") (assoc-ref outputs "out"))) + #t)) (delete 'configure)))) (inputs `(("gdk-pixbuf" ,gdk-pixbuf) @@ -669,7 +678,7 @@ Method Engine.") ("librime" ,librime) ("rime-data" ,rime-data))) (native-inputs - `(("cmake" ,cmake) + `(("cmake" ,cmake-minimal) ("pkg-config" ,pkg-config))) (home-page "https://rime.im/") (synopsis "Rime Input Method Engine for IBus") @@ -680,3 +689,67 @@ 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 (string-append "http://kldp.net/hangul/release/" + "3442-libhangul-" version ".tar.gz")) + (sha256 + (base32 + "0ni9b0v70wkm0116na7ghv03pgxsfpfszhgyj3hld3bxamfal1ar")))) + (build-system gnu-build-system) + (home-page "https://github.com/libhangul/libhangul") + (synopsis "Library to support hangul input method logic") + (description + "This package provides 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 "Hangul engine for IBus") + (description + "ibus-hangul is a Korean input method engine for IBus.") + (license gpl2+)))