mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
c716728e4a
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)
20 lines
344 B
Plaintext
20 lines
344 B
Plaintext
# $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
|