diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2009-08-16 14:48:15 -0600 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2009-09-01 16:23:43 +0200 |
commit | dbca5ca974d6cec77357082a6f86a2e0259e451a (patch) | |
tree | 36f66873228152f8b80d8ace849637c656cf7609 | |
parent | fca975ffcac8a4455c24300396e652e646c8476c (diff) |
bitstream-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 7ff500d..ca20def 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,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: @: |