From patchwork Sun Nov 6 20:46:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: dan X-Patchwork-Id: 44359 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 F068627BBEA; Sun, 6 Nov 2022 20:48:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6425B27BBE9 for ; Sun, 6 Nov 2022 20:48:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ormYm-0004j8-V7; Sun, 06 Nov 2022 15:48:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ormYl-0004h4-1X for guix-patches@gnu.org; Sun, 06 Nov 2022 15:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ormYk-0004Sn-PC for guix-patches@gnu.org; Sun, 06 Nov 2022 15:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ormYk-0001Hi-LL for guix-patches@gnu.org; Sun, 06 Nov 2022 15:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59084] [PATCH 7/7] gnu: Add fcitx5-rime. Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Nov 2022 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59084 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59084@debbugs.gnu.org Received: via spool by 59084-submit@debbugs.gnu.org id=B59084.16677676274732 (code B ref 59084); Sun, 06 Nov 2022 20:48:02 +0000 Received: (at 59084) by debbugs.gnu.org; 6 Nov 2022 20:47:07 +0000 Received: from localhost ([127.0.0.1]:60782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ormXq-0001EA-Fy for submit@debbugs.gnu.org; Sun, 06 Nov 2022 15:47:06 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ormXo-0001CV-CJ for 59084@debbugs.gnu.org; Sun, 06 Nov 2022 15:47:04 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 52D695C0093 for <59084@debbugs.gnu.org>; Sun, 6 Nov 2022 15:46:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 06 Nov 2022 15:46:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1667767619; x= 1667854019; bh=M39uYPKiVxBxVNbw3jroNCb8tZ1pntJdgwkwZjhjbG4=; b=g 0TBwtNJq07/W9rS64BCbXxOfYCDOEDo04e+YJc7c5phEfvARRi8De7Th+PctLkeE l60UuFBtLifc7xNa4Hu903pnqNUCZ34Jq7Bk9thmf4hdGm3nBLARRO+TnlLzp5b0 0UvxWmbK2iNArSFIt7hg7b20CD9gcGNCI7/6hxkjzBrYhdhxXVvy5gWt+JuxRgvh /c53y9oP/Snx9Q1NtfJftU9VK24eFUfEeV9/8TU5ipE0BMrfBvR+yzV+9khdwtcS JQ0en71HTnR/N7UQ4SNraJAtAxXadDa0maTRWYmNhyRcmspDgcZfe/EHm1COf/Xb 1AxBlVv3kgw78Wcxfs4ZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1667767619; x=1667854019; bh=M 39uYPKiVxBxVNbw3jroNCb8tZ1pntJdgwkwZjhjbG4=; b=YKLqYciWRL+wSvzCF HDiFUI8DL8uz2wGXnLMO9vY+01Pn4inE6DNTEXCLsc6FiJZcLYcpxjWKUmMjNNzG Oy7pH6zFijlM3aYMwRRepDNr9Adr010ZM2wj3FPgBifpl0Fgld9OIFDfSKLjE5pO obeGQCH4AtDE481SX+Hh18BGotpeIwOhJVQvvpjvpyZ4shV+zIidLklqLsWjHSIp RHgTNSuwO7TjO86MuvR5nBGSLjwOSh5YKqsqaT6ilH2xkZY2BsdfVl/4TZf3r3wF pbDzN2DzAx4sMiQXOb/omgadYejyJvZ5H6VBSorHBta1szmZbYqVHqL+QLhId0Es G5jZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdeigddufeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhggtgfgsehtke ertdertdejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgr thhtvghrnhephfelueehhfeuvdehkeejheduleevhfeijeeuheejueevjeejveevkeelle eutdelnecuffhomhgrihhnpehftghithigqdhimhdrohhrghdpghhithhhuhgsrdgtohhm necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesug grnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <59084@debbugs.gnu.org>; Sun, 6 Nov 2022 15:46:58 -0500 (EST) From: dan Date: Mon, 7 Nov 2022 04:46:39 +0800 Message-Id: <20221106204639.14621-7-i@dan.games> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221106204639.14621-1-i@dan.games> References: <20221106204639.14621-1-i@dan.games> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fcitx5.scm (fcitx5-rime): New variable. --- gnu/packages/fcitx5.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm index 7e19159844..8c8677ab7c 100644 --- a/gnu/packages/fcitx5.scm +++ b/gnu/packages/fcitx5.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020, 2022 Zhu Zihao ;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2022 Dominic Martinez +;;; Copyright © 2022 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,6 +36,7 @@ (define-module (gnu packages fcitx5) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) + #:use-module (gnu packages ibus) #:use-module (gnu packages iso-codes) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages libevent) @@ -532,3 +534,42 @@ (define (install-theme-variant variant target) @item DeepPurple @end itemize\n") (license license:asl2.0))) + +(define-public fcitx5-rime + (package + (name "fcitx5-rime") + (version "5.0.14") + (source (origin + (method url-fetch) + (uri (string-append "https://download.fcitx-im.org/fcitx5" + "/fcitx5-rime/fcitx5-rime-" version + ".tar.xz")) + (sha256 + (base32 + "1i8wb7pbjifz48j4c18lp07ms1a2wc3p9d9g13dgimgf9yi64brm")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ;no tests + #:configure-flags (list (string-append "-DRIME_DATA_DIR=" + (assoc-ref %build-inputs + "rime-data") + "/share/rime-data")) + #:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* "data/CMakeLists.txt" + (("DESTINATION....RIME_DATA_DIR..") + "DESTINATION \"${CMAKE_INSTALL_DATADIR}/rime-data\"")) + #t))))) + (inputs (list fcitx5 librime rime-data)) + (native-inputs (list gettext-minimal extra-cmake-modules pkg-config)) + (home-page "https://github.com/fcitx/fcitx5-rime") + (synopsis "Rime Input Method Engine for Fcitx 5") + (description + "@dfn{fcitx5-rime} provides the Rime input method engine for fcitx5. +Rime is a lightweight, extensible input method engine supporting various input +schemas including glyph-based input methods, romanization-based 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 license:lgpl2.1+)))