summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2009-08-16 14:10:11 -0600
committerRémi Cardona <remi@gentoo.org>2009-09-01 16:14:19 +0200
commit16b4d6d5f9cc1dc1b8e8024915a082a532decb70 (patch)
tree83af3ddf6d1f9ecae2a1bccecb56313add4ed4c2
parentd9dabaa1cb852c344047338d752edc28bbf80742 (diff)
adobe-utopia-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.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8107903..5ec0d4e 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:
@: