@@ -0,0 +1,77 @@
1+From 7e99cf4ae3f38406133a4abf962527cd02416f8e Mon Sep 17 00:00:00 2001
2+From: Sebastian Galkin <paraseba@gmail.com>
3+Date: Wed, 20 Dec 2017 18:23:03 -0200
4+Subject: [PATCH] put fonts in $out
5+
6+---
7+ Makefile.conf | 22 ++++------------------
8+ configure | 12 ------------
9+ 2 files changed, 4 insertions(+), 30 deletions(-)
10+
11+diff --git a/Makefile.conf b/Makefile.conf
12+index e7f8de9..87f3fff 100644
13+--- a/Makefile.conf
14++++ b/Makefile.conf
15+@@ -226,19 +226,11 @@ install_scid: all_scid
16+ fi
17+ install -m 755 -d $(SHAREDIR)/bitmaps
18+ cp -r ./bitmaps/* $(SHAREDIR)/bitmaps/
19+- @if [ "`id -u`" -eq 0 ]; then \
20+- install -m 755 -d $(FONTDIR); \
21+- install -m 644 -p fonts/*.ttf $(FONTDIR); \
22+- else \
23+- install -m 755 -d ~/.fonts; \
24+- install -m 644 -p fonts/*.ttf ~/.fonts; \
25+- fi
26++ install -m 755 -d $(FONTDIR); \
27++ install -m 644 -p fonts/*.ttf $(FONTDIR); \
28++
29+ @if [ ! -z "`which fc-cache`" ]; then \
30+- if [ "`id -u`" -eq 0 ]; then \
31+- fc-cache -fv $(FONTDIR); \
32+- else \
33+- fc-cache -fv ~/.fonts; \
34+- fi; \
35++ fc-cache -fv $(FONTDIR); \
36+ else \
37+ echo "Don't know how to setup truetype fonts (fc-cache not available)."; \
38+ echo "Please contact your system administrator."; \
39+@@ -292,12 +284,6 @@ uninstall:
40+ for f in `ls fonts/*.ttf`; do \
41+ rm -f ~/.$$f; \
42+ done; \
43+- if [ ! -z "`which fc-cache`" ]; then \
44+- fc-cache -fv ~/.fonts; \
45+- fi; \
46+- if [ "`find ~/.fonts -type d -empty`" = "`ls -d ~/.fonts`" ]; then \
47+- rmdir ~/.fonts; \
48+- fi; \
49+ fi
50+
51+ clean:
52+diff --git a/configure b/configure
53+index 4599c77..8b09678 100755
54+--- a/configure
55++++ b/configure
56+@@ -473,18 +473,6 @@ proc writeMakefile {{type ""}} {
57+ exit 1
58+ }
59+
60+- if {[isDarwin]} {
61+- set var(FONTDIR) /Library/Fonts/
62+- } else {
63+- # Just install fonts in to /usr irrespective of system prefix. /usr/local may not be active
64+- set prefix /usr
65+- if {![file isdirectory $prefix/share/fonts]} {
66+- set var(FONTDIR) "~/.fonts"
67+- } else {
68+- set var(FONTDIR) $prefix/share/fonts/truetype/Scid
69+- }
70+- }
71+-
72+ set line [gets $from]
73+ while {1} {
74+ set line [gets $from]
75+--
76+2.15.1
77+