there are some mistake in previous patch, update a new version
From d74cc8be25d1e6e3ad90b39ce3b961c4db7809ae Mon Sep 17 00:00:00 2001
From: Zhang Ning <zhangn1...@outlook.com>
Date: Tue, 13 Dec 2022 13:30:51 +0800
Subject: [PATCH v1] 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>
---
 0001-split-fcitx5-pinyin.patch           | 130 +++++++++++++++++++++++
 debian/control                           |  48 +++++++++
 debian/fcitx5-pinyin-data.install        |  11 ++
 debian/fcitx5-pinyin-dictmanager.install |   1 +
 debian/fcitx5-pinyin.install             |  12 ---
 5 files changed, 190 insertions(+), 12 deletions(-)
 create mode 100644 0001-split-fcitx5-pinyin.patch
 create mode 100644 debian/fcitx5-pinyin-data.install
 create mode 100644 debian/fcitx5-pinyin-dictmanager.install

diff --git a/0001-split-fcitx5-pinyin.patch b/0001-split-fcitx5-pinyin.patch
new file mode 100644
index 0000000..0106ec6
--- /dev/null
+++ b/0001-split-fcitx5-pinyin.patch
@@ -0,0 +1,130 @@
+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
+
diff --git a/debian/control b/debian/control
index 5d30167..1c48164 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:
@@ -278,6 +279,7 @@ Recommends:
  fcitx5-module-pinyinhelper (= ${binary:Version}),
  fcitx5-module-quickphrase,
  fcitx5-modules,
+ fcitx5-pinyin-dictmanager,
 Conflicts:
  fcitx-data,
 Description: Fcitx Input Method Framework v5 (builtin pinyin support)
@@ -295,6 +297,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: all
+Multi-Arch: foreign
+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