diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2009-08-16 15:00:30 -0600 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2009-09-01 16:35:17 +0200 |
commit | 16a4bce5c8c911c443bd21932c25fddccad6ccc9 (patch) | |
tree | 0ef47c4c0c9b9f23bf084cc40f6acffba57859f1 | |
parent | 5fc284976292e3d67e8fe68c711dab1ae224da17 (diff) |
misc-ethiopic: 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 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index d0e24cb..c979e70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,12 +32,30 @@ install-data-hook: $(MKFONTSCALE) $(DESTDIR)$(ttffontdir) @rm -f $(DESTDIR)$(ttffontdir)/font.dir $(MKFONTDIR) $(DESTDIR)$(ttffontdir) - $(FCCACHE) $(DESTDIR)$(ttffontdir) + @(if `test -z '$(DESTDIR)'`; then \ + echo $(FCCACHE) $(ttffontdir); \ + $(FCCACHE) $(ttffontdir); \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi) @rm -f $(DESTDIR)$(otffontdir)/fonts.scale $(MKFONTSCALE) $(DESTDIR)$(otffontdir) @rm -f $(DESTDIR)$(otffontdir)/font.dir $(MKFONTDIR) $(DESTDIR)$(otffontdir) - $(FCCACHE) $(DESTDIR)$(otffontdir) + @(if `test -z '$(DESTDIR)'`; then \ + echo $(FCCACHE) $(otffontdir); \ + $(FCCACHE) $(otffontdir); \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi) distuninstallcheck: @: |