x11-terms/mlterm: update patch
authorAkinori Hattori <hattya@gentoo.org>
Sun, 23 Jul 2017 15:15:23 +0000 (00:15 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 23 Jul 2017 15:15:23 +0000 (00:15 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

x11-terms/mlterm/files/mlterm-font.patch

index 205a748a04a12dd5de762970f050cff6f688d313..c091a08b61306a9d58fb01fa76416095f4ed85c7 100644 (file)
@@ -6,12 +6,12 @@
  #else /* __linux__ */
 -      if (stat("/usr/share/fonts/X11/misc/unifont.pcf.gz", &st) == 0) {
 -        font_file = "/usr/share/fonts/X11/misc/unifont.pcf.gz";
-+      if (stat("/usr/share/fonts/unifont/unifont.pcf.gz", &st) == 0) {
-+        font_file = "/usr/share/fonts/unifont/unifont.pcf.gz";
++      if (stat(XDATADIR "/fonts/unifont/unifont.pcf.gz", &st) == 0) {
++        font_file = XDATADIR "/fonts/unifont/unifont.pcf.gz";
          percent = 100;
        } else {
 -        font_file = "/usr/share/fonts/X11/misc/10x20.pcf.gz";
-+        font_file = "/usr/share/fonts/misc/10x20.pcf.gz";
++        font_file = XDATADIR "/fonts/misc/10x20.pcf.gz";
          percent = 0;
        }
  #endif