please consider to split the package.

this patch make it possible (or a step) to in stall fcitx5 without QT. Or you 
can write some similar patch.

I understand there is a package fcitx5-config-qt, which is needed by fcitx5, 
but I can remove it after settle down the configs,
or even I can manaul edit config file.
but fcitx5-pinyin is the package I can't get rid of.


BR.
Ning.
From 9f70148a98b77ac12ad3b581dff35bceee9f40b3 Mon Sep 17 00:00:00 2001
From: Zhang Ning <zhangn1...@outlook.com>
Date: Tue, 13 Dec 2022 13:30:51 +0800
Subject: [PATCH] split fcitx5-pinyin

split fcitx5-pinyin to 3 packages
fcitx5-pinyin
fcitx5-pinyin-data
fcitx5-pinyin-dictmanager

Signed-off-by: Zhang Ning <zhangn1...@outlook.com>
---
 debian/control                           | 47 ++++++++++++++++++++++++
 debian/fcitx5-pinyin-data.install        | 11 ++++++
 debian/fcitx5-pinyin-dictmanager.install |  1 +
 debian/fcitx5-pinyin.install             | 12 ------
 4 files changed, 59 insertions(+), 12 deletions(-)
 create mode 100644 debian/fcitx5-pinyin-data.install
 create mode 100644 debian/fcitx5-pinyin-dictmanager.install

diff --git a/debian/control b/debian/control
index 5d30167..1106954 100644
--- a/debian/control
+++ b/debian/control
@@ -269,6 +269,7 @@ Multi-Arch: same
 Depends:
  fcitx5-chinese-addons-data,
  fcitx5-module-punctuation (= ${binary:Version}),
+ fcitx5-pinyin-data,
  ${misc:Depends},
  ${shlibs:Depends},
 Recommends:
@@ -295,6 +296,52 @@ Description: Fcitx Input Method Framework v5 (builtin pinyin support)
  This package provides the builtin pinyin input method. It provides
  the default pinyin input method for Chinese users.
 
+Package: fcitx5-pinyin-data
+Architecture: any
+Multi-Arch: same
+Depends:
+ fcitx5-chinese-addons-data,
+Conflicts:
+ fcitx-data,
+Description: Fcitx Input Method Framework v5 (builtin pinyin support)
+ Fcitx5 is the next generation of fcitx input method framework. It
+ provides pleasant and modern input experience with intuitive graphical
+ configuration tools. The framework is highly extensible with support
+ for GTK+ and Qt toolkits, DBus interfaces, a large variety of desktop
+ environments and a developer-friendly API.
+ .
+ Some of its new features include support of both Wayland and Xorg
+ and the ability to mimic IBus Input Method Framework in order to
+ provide better compatibility across different Linux distributions
+ and desktop environments.
+ .
+ This package provides data used by pinyin input method and pinyin dict manager
+
+Package: fcitx5-pinyin-dictmanager
+Architecture: any
+Multi-Arch: same
+Depends:
+ fcitx5-chinese-addons-data,
+ fcitx5-module-punctuation (= ${binary:Version}),
+ fcitx5-pinyin-data,
+ ${misc:Depends},
+ ${shlibs:Depends},
+Conflicts:
+ fcitx-data,
+Description: Fcitx Input Method Framework v5 (builtin pinyin support)
+ Fcitx5 is the next generation of fcitx input method framework. It
+ provides pleasant and modern input experience with intuitive graphical
+ configuration tools. The framework is highly extensible with support
+ for GTK+ and Qt toolkits, DBus interfaces, a large variety of desktop
+ environments and a developer-friendly API.
+ .
+ Some of its new features include support of both Wayland and Xorg
+ and the ability to mimic IBus Input Method Framework in order to
+ provide better compatibility across different Linux distributions
+ and desktop environments.
+ .
+ This package provides dict manager for pinyin input method.
+
 Package: fcitx5-table
 Architecture: any
 Multi-Arch: same
diff --git a/debian/fcitx5-pinyin-data.install b/debian/fcitx5-pinyin-data.install
new file mode 100644
index 0000000..ddeefd1
--- /dev/null
+++ b/debian/fcitx5-pinyin-data.install
@@ -0,0 +1,11 @@
+usr/share/fcitx5/addon/pinyin.conf
+usr/share/fcitx5/inputmethod/pinyin.conf
+usr/share/fcitx5/inputmethod/shuangpin.conf
+usr/share/fcitx5/pinyin/chaizi.dict
+usr/share/fcitx5/pinyin/emoji.dict
+usr/share/icons/hicolor/*/apps/fcitx-pinyin.png
+usr/share/icons/hicolor/*/apps/fcitx-remind-*.png
+usr/share/icons/hicolor/*/apps/fcitx-shuangpin.png
+usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-pinyin.png
+usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-remind-*.png
+usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-shuangpin.png
diff --git a/debian/fcitx5-pinyin-dictmanager.install b/debian/fcitx5-pinyin-dictmanager.install
new file mode 100644
index 0000000..8732bc6
--- /dev/null
+++ b/debian/fcitx5-pinyin-dictmanager.install
@@ -0,0 +1 @@
+usr/lib/*/fcitx5/qt5/libpinyindictmanager.so
diff --git a/debian/fcitx5-pinyin.install b/debian/fcitx5-pinyin.install
index cbd8d3d..c69c3f8 100644
--- a/debian/fcitx5-pinyin.install
+++ b/debian/fcitx5-pinyin.install
@@ -1,13 +1 @@
 usr/lib/*/fcitx5/libpinyin.so
-usr/lib/*/fcitx5/qt5/libpinyindictmanager.so
-usr/share/fcitx5/addon/pinyin.conf
-usr/share/fcitx5/inputmethod/pinyin.conf
-usr/share/fcitx5/inputmethod/shuangpin.conf
-usr/share/fcitx5/pinyin/chaizi.dict
-usr/share/fcitx5/pinyin/emoji.dict
-usr/share/icons/hicolor/*/apps/fcitx-pinyin.png
-usr/share/icons/hicolor/*/apps/fcitx-remind-*.png
-usr/share/icons/hicolor/*/apps/fcitx-shuangpin.png
-usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-pinyin.png
-usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-remind-*.png
-usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-shuangpin.png
-- 
2.35.1

Reply via email to