1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/Keywords/fontsdir.yaml
Niclas Zeising 1d45334d44 Fix fontdir handling to work properly.
Fix the name of mkfontdir and use correct paths.
2013-12-20 22:26:13 +00:00

18 lines
495 B
YAML

# $FreeBSD$
#
# MAINTAINER: x11@FreeBSD.org
actions: [dirrmtry]
post-install: |
mkfontscale %D/%@ 2>/dev/null || true
mkfontdir %D/%@ 2>/dev/null || true
post-deinstall: |
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