Ticket #53350: patch_port_fontconfig_support_packaging.diff

File patch_port_fontconfig_support_packaging.diff, 1.2 KB (added by ctreleaven (Craig Treleaven), 8 years ago)
  • graphics/fontconfig/Portfile

    diff --git a/graphics/fontconfig/Portfile b/graphics/fontconfig/Portfile
    index 5831303be9..6afd527e01 100644
    a b post-activate { 
    6666    system "${prefix}/bin/fc-cache -v || true"
    6767}
    6868
     69pre-pkg {
     70        file copy ${filespath}/postinstall \
     71                ${package.scripts}/
     72        reinplace -locale C "s|@PREFIX@|${prefix}|g" \
     73                ${package.scripts}/postinstall
     74        file attributes ${package.scripts}/postinstall -permissions 0755
     75        long_description-append "  Install prefix ${prefix}"
     76}
     77
    6978platform macosx {
    7079    lappend add_fonts       /Library/Fonts \
    7180                            /Network/Library/Fonts \
  • new file graphics/fontconfig/files/postinstall

    diff --git a/graphics/fontconfig/files/postinstall b/graphics/fontconfig/files/postinstall
    new file mode 100755
    index 0000000000..3023c5e5bb
    - +  
     1#!/bin/sh
     2
     3# fontconfig installer support, postinstall script
     4# runs as root after installer successfully copies payload to destination
     5# thus picks up _any_ fonts that were delivered with this installer
     6
     7# fc-cache can fail due to /Network/Library/Fonts being unavailable, so force success.
     8@PREFIX@/bin/fc-cache --system-only --verbose || true