1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/Keywords/fcfontsdir.ucl
Mathieu Arnold 3752f7f4d0 Replace the dirrmtry action with dir.
With hat:	portmgr
Sponsored by:	Absolight
2014-10-02 12:39:57 +00:00

22 lines
586 B
Plaintext

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