diff --git a/graphics/fontconfig/Portfile b/graphics/fontconfig/Portfile
index 5831303be9..6afd527e01 100644
a
|
b
|
post-activate { |
66 | 66 | system "${prefix}/bin/fc-cache -v || true" |
67 | 67 | } |
68 | 68 | |
| 69 | pre-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 | |
69 | 78 | platform macosx { |
70 | 79 | lappend add_fonts /Library/Fonts \ |
71 | 80 | /Network/Library/Fonts \ |
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 |