mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
24054bf9f8
- Move obsolete pkg-req to inside pkg-install/pkg-deinstall
47 lines
2.6 KiB
Bash
47 lines
2.6 KiB
Bash
#!/bin/sh
|
|
|
|
grepv() {
|
|
awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2
|
|
}
|
|
|
|
if [ "x$2" = "xPOST-INSTALL" ]; then
|
|
FONTDIR=${PKG_PREFIX}/%%FONTSDIR%%
|
|
cd ${PKG_PREFIX}/%%FONTSDIR%%; %%LOCALBASE%%/bin/mkfontdir
|
|
|
|
# font alias entry here!
|
|
TMPFILE=/tmp/install-fonts-alias-$$
|
|
cat <<- EOF > ${TMPFILE}
|
|
kanji26 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
kanji26b -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
kanji26i -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
kanji26bi -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-fixed-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0
|
|
-jis-fixed-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0
|
|
-jis-fixed-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0
|
|
-jis-fixed-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0
|
|
-jis-fixed-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-fixed-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-fixed-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-fixed-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
-jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0
|
|
EOF
|
|
echo "Updating ${FONTDIR}/fonts.alias"
|
|
cd ${FONTDIR}
|
|
touch fonts.alias
|
|
cp fonts.alias fonts.alias.orig
|
|
(grepv ${TMPFILE} fonts.alias.orig ; cat ${TMPFILE}) > fonts.alias
|
|
rm -f fonts.alias.orig ${TMPFILE}
|
|
|
|
%%LOCALBASE%%/bin/xset fp rehash ||
|
|
(
|
|
echo "**********************************************************"
|
|
echo "You should restart X server or do 'xset fp rehash' command"
|
|
echo "to enable this update."
|
|
echo "**********************************************************"
|
|
)
|
|
fi
|
|
|