1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:19:20 +00:00
freebsd-ports/japanese/kappa20/pkg-install
Baptiste Daroussin a5da770e67 Make fonts repecting XDG
Xorg is now looking in ${LOCALBASE}/share/fonts by default
Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1))
Large cleanup on lots of font ports
All fonts are now properly dynamically generating fonts.dir and fonts.scale
instead of sometime overwriting existing ones)
All fonts are generating fontconfig's cache
Improve consistency in fonts ports
2015-03-21 23:05:19 +00:00

27 lines
687 B
Bash

#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
FONTDIR=${PKG_PREFIX}/share/fonts/k20fonts
FAFILE=${PKG_PREFIX}/share/doc/ja/k20fonts/fonts.alias
grepv() {
awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2
}
echo "Updating ${FONTDIR}/fonts.alias"
cd ${FONTDIR}
touch fonts.alias
cp fonts.alias fonts.alias.orig
(grepv ${FAFILE} fonts.alias.orig ; cat ${FAFILE}) > fonts.alias
rm -f fonts.alias.orig
echo "**********************************************************"
echo "You should restart X server or do 'xset fp rehash' command"
echo "to enable this update."
echo "**********************************************************"
exit 0