freebsd-ports/Keywords/fc.ucl
Hiroki Sato c716728e4a Add "fc", "fcfontsdir", "fontsdir", and "none" arguments to USES=fonts.
They controls whether fc-cache and/or mkfontdir run in
post-{,de}install targets.

japanese/font-* use manually generates fonts.dir entries to utilize
special modifiers which are useful for CJK fonts.  Because mkfontdir
does not understand and silently remove them from fonts.dir,
options like fonts:fc or fonts:none is required.

Approved by:	portmgr (bapt)
2015-09-13 23:30:21 +00:00

19 lines
344 B
Text

# $FreeBSD$
#
# MAINTAINER: x11@FreeBSD.org
actions: [dir]
post-install: <<EOD
case "%@" in
/*) fontsdir="%@" ;;
*) fontsdir="%D/%@" ;;
esac
fc-cache -fs ${fontsdir} 2>/dev/null || true
EOD
post-deinstall: <<EOD
case "%@" in
/*) fontsdir="%@" ;;
*) fontsdir="%D/%@" ;;
esac
fc-cache -fs ${fontsdir} 2>/dev/null || true
EOD