mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
26 lines
692 B
Plaintext
26 lines
692 B
Plaintext
|
# MAINTAINER: x11@FreeBSD.org
|
||
|
|
||
|
actions: [dir]
|
||
|
post-install: <<EOD
|
||
|
case "%@" in
|
||
|
/*) fontsdir="%@" ;;
|
||
|
*) fontsdir="%D/%@" ;;
|
||
|
esac
|
||
|
mkfontscale ${fontsdir} 2>/dev/null || true
|
||
|
mkfontdir ${fontsdir} 2>/dev/null || true
|
||
|
EOD
|
||
|
post-deinstall: <<EOD
|
||
|
case "%@" in
|
||
|
/*) fontsdir="%@" ;;
|
||
|
*) fontsdir="%D/%@" ;;
|
||
|
esac
|
||
|
mkfontscale ${fontsdir} 2>/dev/null || true
|
||
|
if [ -e ${fontsdir}/fonts.scale -a "`stat -f '%%z' ${fontsdir}/fonts.scale 2>/dev/null`" = '2' ]; then
|
||
|
rm ${fontsdir}/fonts.scale
|
||
|
fi
|
||
|
mkfontdir ${fontsdir} 2>/dev/null || true
|
||
|
if [ -e ${fontsdir}/fonts.dir -a "`stat -f '%%z' ${fontsdir}/fonts.dir 2>/dev/null`" = '2' ]; then
|
||
|
rm ${fontsdir}/fonts.dir
|
||
|
fi
|
||
|
EOD
|