diff options
author | Takanori Watanabe <takawata@FreeBSD.org> | 2001-02-21 17:11:55 +0000 |
---|---|---|
committer | Takanori Watanabe <takawata@FreeBSD.org> | 2001-02-21 17:11:55 +0000 |
commit | e21026544a1ce9b61802d05044b227f9d698928f (patch) | |
tree | 16f80f73d7ceeefd5bd99431762a73b2046d4c44 /japanese/monafonts/pkg-req | |
parent | Move this ports to appropriate place. (diff) |
Move monafonts to Japanese directory.
Submitted by:MAINTAINER
Notes
Notes:
svn path=/head/; revision=38561
Diffstat (limited to 'japanese/monafonts/pkg-req')
-rw-r--r-- | japanese/monafonts/pkg-req | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/japanese/monafonts/pkg-req b/japanese/monafonts/pkg-req new file mode 100644 index 000000000000..e68d231d4589 --- /dev/null +++ b/japanese/monafonts/pkg-req @@ -0,0 +1,62 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + exit 1; +fi +if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then + exit 1; +fi + +export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local + +if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then + echo '**********************************************************************' + echo "****** ${FONTDIR}/ doesn't exist." + echo "****** Creating ${FONTDIR}/" + echo '****** Please upgrade your XFree86 to 3.3.3 or upper,' + echo "****** or add this directory to your /etc/XF86Config's FontPath entry." + echo '**********************************************************************' + mkdir ${FONTDIR} +fi + +# font alias entry here! +TMPFILE=/tmp/install-fonts-alias-$$ +cat << EOF > ${TMPFILE} +mona12aR -mona-gothic-medium-r-normal--12-120-75-75-p-60-iso8859-1 +mona16aB -mona-gothic-bold-r-normal--16-150-75-75-p-80-iso8859-1 +mona16kR -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0 +mona12kB -mona-gothic-bold-r-normal--12-120-75-75-p-120-jisx0208.1990-0 +mona16aI -mona-gothic-medium-i-normal--16-150-75-75-p-80-iso8859-1 +mona12kI -mona-gothic-medium-i-normal--12-120-75-75-p-120-jisx0208.1990-0 +mona16aR -mona-gothic-medium-r-normal--16-150-75-75-p-80-iso8859-1 +mona12aB -mona-gothic-bold-r-normal--12-120-75-75-p-60-iso8859-1 +mona12kR -mona-gothic-medium-r-normal--12-120-75-75-p-120-jisx0208.1990-0 +mona16kB -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0 +mona12aI -mona-gothic-medium-i-normal--12-120-75-75-p-60-iso8859-1 +mona16kI -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0 +mona12rR -mona-gothic-medium-r-normal--12-120-75-75-p-60-jisx0201.1976-0 +mona16rB -mona-gothic-bold-r-normal--16-150-75-75-p-80-jisx0201.1976-0 +mona16rI -mona-gothic-medium-i-normal--16-150-75-75-p-80-jisx0201.1976-0 +mona16rR -mona-gothic-medium-r-normal--16-150-75-75-p-80-jisx0201.1976-0 +mona12rB -mona-gothic-bold-r-normal--12-120-75-75-p-60-jisx0201.1976-0 +mona12rI -mona-gothic-medium-i-normal--12-120-75-75-p-60-jisx0201.1976-0 +EOF + +echo "Updating ${FONTDIR}/fonts.alias" +cd ${FONTDIR} +touch fonts.alias +cp fonts.alias fonts.alias.orig +if [ "$2" = "INSTALL" ] ; then + (grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig ; \ + cat ${TMPFILE}) > fonts.alias +elif [ "$2" = "DEINSTALL" ] ; then + grep -v -- "`cat ${TMPFILE}`" fonts.alias.orig > fonts.alias +fi +rm -f fonts.alias.orig ${TMPFILE} + +echo "**********************************************************" +echo "You should restart X server or do 'xset fp rehash' command" +echo "to enable this update." +echo "**********************************************************" + +exit 0; |