mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
0406d5b04f
This should silence all QAT messages about leftover font files. Bump portrevision for all affected ports. Original idea: bapt
20 lines
575 B
YAML
20 lines
575 B
YAML
# $FreeBSD$
|
|
#
|
|
# MAINTAINER: x11@FreeBSD.org
|
|
|
|
actions: [dirrmtry]
|
|
post-install: |
|
|
fc-cache -s %D/%@ 2>/dev/null || true
|
|
mkfontscale %D/%@ 2>/dev/null || true
|
|
mkfontdir %D/%@ 2>/dev/null || true
|
|
post-deinstall: |
|
|
fc-cache -s %D/%@ 2>/dev/null || true
|
|
mkfontscale %D/%@ 2>/dev/null || true
|
|
if [ -e %D/%@/fonts.scale -a "`stat -f '%%z' %D/%@/fonts.scale 2>/dev/null`" = '2' ]; then
|
|
rm %D/%@/fonts.scale
|
|
fi
|
|
mkfontdir %D/%@ 2>/dev/null || true
|
|
if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@/fonts.dir 2>/dev/null`" = '2' ]; then
|
|
rm %D/%@/fonts.dir
|
|
fi
|