[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: gnu: Add fcitx5-gtk4.
From: |
guix-commits |
Subject: |
03/13: gnu: Add fcitx5-gtk4. |
Date: |
Mon, 4 Apr 2022 17:13:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 287b98031f55cbc3a89ad0a0ae99cfa28eb153f4
Author: Zhu Zihao <all_but_last@163.com>
AuthorDate: Mon Mar 21 09:16:38 2022 +0800
gnu: Add fcitx5-gtk4.
* gnu/packages/fcitx5.scm (fcitx5-gtk4): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/fcitx5.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm
index 59085b8fe9..ca2d8f6827 100644
--- a/gnu/packages/fcitx5.scm
+++ b/gnu/packages/fcitx5.scm
@@ -252,6 +252,50 @@ IM module for GTK+3 applications.
@end table")
(license license:lgpl2.1+)))
+;; XXX: This package is separated from fcitx5-gtk for following reasons.
+;; 1. GTK4 has a lot more dependencies, some of which maybe unavailable on
+;; platforms other than x86_64. See <https://issues.guix.gnu.org/53648>.
+;; 2. GTK4 now propagates pango@1.50, it will conflict with GTK3 and GTK2
+;; (propagates pango@1.48) if they're all in the inputs of same package.
+;; See <https://issues.guix.gnu.org/54261>.
+(define-public fcitx5-gtk4
+ (package
+ (inherit fcitx5-gtk)
+ (name "fcitx5-gtk4")
+ (arguments
+ (list
+ #:tests? #f ;No test
+ #:configure-flags
+ #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
+ #$(this-package-input "fcitx5-gtk")
+ "/include/Fcitx5/GClient")
+ "-DENABLE_GTK2_IM_MODULE=OFF"
+ "-DENABLE_GTK3_IM_MODULE=OFF")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'fix-gclient
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define gclient
+ (search-input-file inputs "lib/libFcitx5GClient.so"))
+ ;; Force cmake search libFcitx5GClient.so in library search
+ ;; path instead of compiling again.
+ (substitute* "gtk4/CMakeLists.txt"
+ (("Fcitx5::GClient")
+ gclient))))
+ (add-before 'build 'enter-gtk4-subdirectory
+ (lambda _
+ (chdir "gtk4")))
+ (add-after 'install 'leave-gtk4-subdirectory
+ (lambda _
+ (chdir ".."))))))
+ (inputs
+ (modify-inputs (package-inputs fcitx5-gtk)
+ (delete "gtk+")
+ (prepend fcitx5-gtk gtk)))
+ (outputs '("out"))
+ (synopsis "GTK4 IM module for Fcitx 5")
+ (description "Fcitx5-gtk4 provides IM module for GTK4 applications.")))
+
(define-public fcitx5-qt
(package
(name "fcitx5-qt")
- branch master updated (345f79b2cf -> b1e7e64f35), guix-commits, 2022/04/04
- 02/13: gnu: gtk: Update to 4.6.1., guix-commits, 2022/04/04
- 01/13: gnu: pango 1.50: Add version 1.50.4., guix-commits, 2022/04/04
- 03/13: gnu: Add fcitx5-gtk4.,
guix-commits <=
- 08/13: services: Add 'log-cleanup' service to '%base-services' for build logs., guix-commits, 2022/04/04
- 07/13: services: Add 'log-cleanup-service-type'., guix-commits, 2022/04/04
- 04/13: gnu: gtkmm: Update to 4.6.1., guix-commits, 2022/04/04
- 05/13: gnu: libmediainfo: Update to 22.03., guix-commits, 2022/04/04
- 06/13: gnu: mediainfo: Update to 22.03., guix-commits, 2022/04/04
- 09/13: gnu: Add parole., guix-commits, 2022/04/04
- 11/13: environment: Export 'load-manifest'., guix-commits, 2022/04/04
- 12/13: shell: Add '--export-manifest'., guix-commits, 2022/04/04
- 13/13: news: Add entry about 'guix shell --export-manifest'., guix-commits, 2022/04/04
- 10/13: packages: Add 'package-unique-version-prefix'., guix-commits, 2022/04/04