diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2009-08-16 14:51:55 -0600 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2009-09-01 16:33:45 +0200 |
commit | 28cef37b7914e1a1da6b41ab5c53c28eb14e3300 (patch) | |
tree | 14e99fcd742583f298bcb09fb283a7fdb3d859aa | |
parent | 687b87d63da9eb81d7d56f1382dfd970d0358610 (diff) |
ibm-type1: Skip fc-cache with DESTDIR.
Fontconfig-2.7.0 runs chmod on the cachedir, causing access violations
when installing into a sandboxed environment.
Signed-off-by: Ryan Hill <dirtyepic@gentoo.org>
Signed-off-by: Rémi Cardona <remi@gentoo.org>
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 5bc1bc3..6b07b9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,7 +39,16 @@ install-data-hook: $(MKFONTSCALE) $(DESTDIR)$(fontdir) @rm -f $(DESTDIR)$(fontdir)/font.dir $(MKFONTDIR) $(DESTDIR)$(fontdir) - $(FCCACHE) $(DESTDIR)$(fontdir) + @(if `test -z '$(DESTDIR)'`; then \ + echo $(FCCACHE) $(fontdir); \ + $(FCCACHE) $(fontdir); \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi) distuninstallcheck: @: |