freebsd-ports/chinese/opendesktop-fonts/pkg-plist

11 lines
732 B
Text
Raw Normal View History

@unexec if cmp -s %%X11BASE%%/etc/fonts/local.conf %D/share/fonts/TrueType/local.conf-sung; then rm -f %%X11BASE%%/etc/fonts/local.conf; fi
share/fonts/TrueType/local.conf-sung
@exec cp %D/share/fonts/TrueType/local.conf-sung %%X11BASE%%/etc/fonts/local.conf
@unexec %D/bin/ttfm.sh --remove xttfm %D/share/fonts/TrueType/fireflysung.ttf || true
share/fonts/TrueType/fireflysung.ttf
@exec %D/bin/ttfm.sh --add xttfm %D/share/fonts/TrueType/fireflysung.ttf || true
@unexec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
@exec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true
@unexec rmdir %D/share/fonts 2>/dev/null || true