File: 0010-install-fonts-and-ime-tables-to-usr-share.patch

package info (click to toggle)
zhcon 1%3A0.2.6-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,756 kB
  • sloc: cpp: 10,942; sh: 2,998; ansic: 1,628; makefile: 56
file content (60 lines) | stat: -rw-r--r-- 2,295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Forwarded: not-needed
Description: Move zhcon fonts and IME tables to /usr/share/zhcon
 The fonts and IME tables that come with zhcon are platform-independent,
 and should not be in /usr/lib/zhcon.  Furthermore, with the new
 multiarch support in place, these files would have been installed
 in directories such as /usr/lib/x86_64-linux-gnu/zhcon, and
 zhcon would not be able to find its fonts, hence the move.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Last-Update: 2018-08-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/font/Makefile.am
+++ b/font/Makefile.am
@@ -1,8 +1,8 @@
 EXTRA_DIST = *.bpsf
 
 install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/font/
-	$(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(libdir)/zhcon/font/
+	$(mkinstalldirs) $(DESTDIR)$(datadir)/zhcon/font/
+	$(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(datadir)/zhcon/font/
 
 uninstall-local:
-	-rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf
+	-rm -f $(DESTDIR)$(datadir)/zhcon/font/*.bpsf
--- a/src/zhcon.cpp
+++ b/src/zhcon.cpp
@@ -622,7 +622,7 @@
     if (getenv("LC_ALL"))
         mOldLocale = getenv("LC_ALL");
 
-    string prefix = PREFIX"/lib/zhcon/";
+    string prefix = PREFIX"/share/zhcon/";
     mASCIIFont = prefix + f.GetOption(string("ascfont"), string(ASCIIFONT));
     mGB2312Font = prefix + f.GetOption(string("gbfont"), string(GB2312FONT));
     mGBKFont = prefix + f.GetOption(string("gbkfont"), string(GBKFONT));
@@ -766,7 +766,7 @@
     InputManager::SetTty(mConFd, ttyno, mTtyFd);
     
     string s;
-    s = f.GetOption(string("zhconpath"), string(PREFIX"/lib/zhcon/"));
+    s = f.GetOption(string("zhconpath"), string(PREFIX"/share/zhcon/"));
     NativeInputServer::SetDataPath(s);
 #ifdef HAVE_UNICON_LIB
     s = f.GetOption(string("uniconpath"), string("/usr/lib/unicon/"));
--- a/input/Makefile.am
+++ b/input/Makefile.am
@@ -1,8 +1,8 @@
 EXTRA_DIST = *.mb
 
 install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/input/
-	$(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(libdir)/zhcon/input/
+	$(mkinstalldirs) $(DESTDIR)$(datadir)/zhcon/input/
+	$(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(datadir)/zhcon/input/
 
 uninstall-local:
-	-rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb
+	-rm -f $(DESTDIR)$(datadir)/zhcon/input/*.mb