From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:46188) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqFZg-0002vR-75 for guix-patches@gnu.org; Sat, 11 Jan 2020 07:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqFZe-0007k1-HR for guix-patches@gnu.org; Sat, 11 Jan 2020 07:09:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqFZe-0007jO-Bl for guix-patches@gnu.org; Sat, 11 Jan 2020 07:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqFZe-0001Z5-6y for guix-patches@gnu.org; Sat, 11 Jan 2020 07:09:02 -0500 Subject: [bug#39086] [PATCH 2/5] gnu: Add unicode-emoji. Resent-Message-ID: From: Leo Prikler Date: Sat, 11 Jan 2020 13:08:27 +0100 Message-Id: <20200111120829.29821-2-leo.prikler@student.tugraz.at> In-Reply-To: <20200111120829.29821-1-leo.prikler@student.tugraz.at> References: <20200111120829.29821-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39086@debbugs.gnu.org * gnu/packages/ibus.scm (unicode-emoji): New package. --- gnu/packages/ibus.scm | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm index 512a1ff9ec..3d582fb935 100644 --- a/gnu/packages/ibus.scm +++ b/gnu/packages/ibus.scm @@ -30,6 +30,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system trivial) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages anthy) @@ -55,6 +56,64 @@ #:use-module (gnu packages textutils) #:use-module (gnu packages xorg)) +(define-public unicode-emoji + (package + (name "unicode-emoji") + (version "12.0") + (source #f) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (let ((out (string-append %output "/share/unicode/emoji"))) + (use-modules (guix build utils)) + (mkdir-p out) + (for-each + (lambda (input) + (copy-file + (cdr input) + (string-append out "/" + (substring (car input) 8) ; strip "unicode-" + ".txt"))) + %build-inputs) + #t))) + (inputs + `(("unicode-emoji-data" + ,(origin + (method url-fetch) + (uri "https://www.unicode.org/Public/emoji/12.0/emoji-data.txt") + (sha256 + (base32 "03sf7h1d6kb9m5s02lif88jsi5kjszpkfvcymaqxj8ds70ar9pgv")))) + ("unicode-emoji-sequences" + ,(origin + (method url-fetch) + (uri "https://www.unicode.org/Public/emoji/12.0/emoji-sequences.txt") + (sha256 + (base32 "1hghki2rn3n7m4lwpwi2a5wrsf2nij4bxga9ldabx4g0g2k23svs")))) + ("unicode-emoji-test" + ,(origin + (method url-fetch) + (uri "https://www.unicode.org/Public/emoji/12.0/emoji-test.txt") + (sha256 + (base32 "1dqd0fh999mh6naj816ni113m9dimfy3ih9nffjq2lrv9mmlgdck")))) + ("unicode-emoji-variation-sequences" + ,(origin + (method url-fetch) + (uri "https://www.unicode.org/Public/emoji/12.0/emoji-variation-sequences.txt") + (sha256 + (base32 "1cccwx5bl79w4c19vi5dhjqxrph92s8hihp9y8s2cqvdzmgbln7a")))) + ("unicode-emoji-zwj-sequences" + ,(origin + (method url-fetch) + (uri "https://www.unicode.org/Public/emoji/12.0/emoji-zwj-sequences.txt") + (sha256 + (base32 "1l791nbijmmhwa7kmvfn8gp26ban512l6mgqpz1mnbq3xm19181n")))))) + (home-page "https://www.unicode.org") + (synopsis "Unicode Emoji data") + (description + "Data files for the Unicode Technological Standard #51 (Emoji).") + (license unicode))) + (define-public ibus (package (name "ibus") -- 2.24.1