diff options
author | taoka <taoka@FreeBSD.org> | 2000-01-08 09:23:47 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 2000-01-08 09:23:47 +0800 |
commit | ee869fcc7e3d2fec70160ecfa55062431510e6c5 (patch) | |
tree | 3e95aa8a76b9ffe17cbafa7a34f21be1513133ea | |
parent | 35b738ffd5bc2842337ac87117b5c8cf96644da9 (diff) | |
download | freebsd-ports-gnome-ee869fcc7e3d2fec70160ecfa55062431510e6c5.tar.gz freebsd-ports-gnome-ee869fcc7e3d2fec70160ecfa55062431510e6c5.tar.zst freebsd-ports-gnome-ee869fcc7e3d2fec70160ecfa55062431510e6c5.zip |
X11 18-dot kanji font
PR: 15394
Submitted by: Yoshiro MIHIRA <sanpei@jp.FreeBSD.org>
-rw-r--r-- | japanese/kanji18/Makefile | 71 | ||||
-rw-r--r-- | japanese/kanji18/distinfo | 9 | ||||
-rw-r--r-- | japanese/kanji18/files/DEINSTALL.tmpl | 12 | ||||
-rw-r--r-- | japanese/kanji18/files/INSTALL.tmpl | 12 | ||||
-rw-r--r-- | japanese/kanji18/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/kanji18/pkg-descr | 6 | ||||
-rw-r--r-- | japanese/kanji18/pkg-plist | 8 | ||||
-rw-r--r-- | japanese/kanji18/pkg-req | 48 |
8 files changed, 167 insertions, 0 deletions
diff --git a/japanese/kanji18/Makefile b/japanese/kanji18/Makefile new file mode 100644 index 000000000000..6e9a6770dd63 --- /dev/null +++ b/japanese/kanji18/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: kanji18 +# Version required: 1.0 +# Date created: 23 November 1999 +# Whom: Yoshiro MIHIRA <sanpei@jp.FreeBSD.org> +# +# $FreeBSD$ +# + +DISTNAME?= kanji18 +PKGNAME= ja-${DISTNAME}-1.0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= ${MASTER_SITE_PORTS_JP} +MASTER_SITE_SUBDIR= ${DISTNAME} +DISTFILES?= 573.z 574.z 575.z 576.z 577.z 578.z 579.z 580.z 581.z + +MAINTAINER= sanpei@jp.FreeBSD.org + +BUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar \ + bdftopcf:${PORTSDIR}/x11/XFree86 + +DIST_SUBDIR= ${DISTNAME} +FONTSDIR= lib/X11/fonts/local +NO_WRKSUBDIR= yes +USE_X_PREFIX= yes + +EXTRACT_CMD= zcat +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= | gunshar -d $(WRKDIR) +PKGINSTALL= ${WRKSRC}/INSTALL +PKGDEINSTALL= ${WRKSRC}/DEINSTALL +PLIST_SUB= FONTSDIR=${FONTSDIR} +README_FILE?= 573.z +RESIZESED_FILE?= 18to16.sed +RESIZED_ALIAS_FILE?= kanji16.alias + +post-extract: + @(cd $(WRKSRC); ${CAT} ${DISTNAME}.?? | uudecode) + +post-patch: + @(cd $(WRKSRC); zcat ${DISTNAME}.bdf.Z \ + | bdftopcf -i | ${GZIP_CMD} > ${DISTNAME}.pcf.gz ) + @(${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/${README_FILE} \ + | ${AWK} '/^#! \/bin\/sh/{i=1} i==0{print}' \ + > ${WRKSRC}/README.${DISTNAME}) + +do-build: + @for file in INSTALL DEINSTALL; do \ + ${SED} -e 's,%%FONTSDIR%%,${FONTSDIR},g' \ + < ${FILESDIR}/$${file}.tmpl > ${WRKSRC}/$${file}; \ + done + +pre-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL + +do-install: + @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.pcf.gz ${PREFIX}/lib/X11/fonts/local/ + @(cd ${PREFIX}/${FONTSDIR} ; mkfontdir) +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/${DISTNAME} + @${INSTALL_DATA} ${WRKSRC}/${RESIZESED_FILE} ${PREFIX}/share/doc/${DISTNAME}/ + @${INSTALL_DATA} ${WRKSRC}/README.${DISTNAME} ${PREFIX}/share/doc/${DISTNAME}/ + @${INSTALL_DATA} ${WRKSRC}/${RESIZED_ALIAS_FILE} ${PREFIX}/share/doc/${DISTNAME}/ + @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.alias ${PREFIX}/share/doc/${DISTNAME}/ +.endif + +post-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/japanese/kanji18/distinfo b/japanese/kanji18/distinfo new file mode 100644 index 000000000000..caa1ed63e370 --- /dev/null +++ b/japanese/kanji18/distinfo @@ -0,0 +1,9 @@ +MD5 (kanji18/573.z) = 9b9f8203db6ac2081c6ddf126ca988b2 +MD5 (kanji18/574.z) = 9229db291f900701cfe1b1114d40c275 +MD5 (kanji18/575.z) = bb068f6affaebc2890ff4e56dc90a6de +MD5 (kanji18/576.z) = 34b0957f1c0244fa7c0304e7b089ad3f +MD5 (kanji18/577.z) = 078b8ed462419b54fba39d4c577270b3 +MD5 (kanji18/578.z) = abcab2294fdac8b49028fc980e25c0de +MD5 (kanji18/579.z) = 26028f4acff0aba0cd17184734c7feb9 +MD5 (kanji18/580.z) = 2e59cf03d5fa5b0102854a53780302e6 +MD5 (kanji18/581.z) = 0fc053bd2a0d82900300e1f6029dba54 diff --git a/japanese/kanji18/files/DEINSTALL.tmpl b/japanese/kanji18/files/DEINSTALL.tmpl new file mode 100644 index 000000000000..ee96237b0b93 --- /dev/null +++ b/japanese/kanji18/files/DEINSTALL.tmpl @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ "x$2" = "xPOST-DEINSTALL" ]; then + cd ${PKG_PREFIX}/%%FONTSDIR%%; ${PKG_PREFIX}/bin/mkfontdir + ${PKG_PREFIX}/bin/xset fp rehash || + ( + echo "**********************************************************" + echo "You should restart X server or do 'xset fp rehash' command" + echo "to enable this update." + echo "**********************************************************" + ) +fi diff --git a/japanese/kanji18/files/INSTALL.tmpl b/japanese/kanji18/files/INSTALL.tmpl new file mode 100644 index 000000000000..77be2d3b8f9e --- /dev/null +++ b/japanese/kanji18/files/INSTALL.tmpl @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ "x$2" = "xPOST-INSTALL" ]; then + cd ${PKG_PREFIX}/%%FONTSDIR%%; ${PKG_PREFIX}/bin/mkfontdir + ${PKG_PREFIX}/bin/xset fp rehash || + ( + echo "**********************************************************" + echo "You should restart X server or do 'xset fp rehash' command" + echo "to enable this update." + echo "**********************************************************" + ) +fi diff --git a/japanese/kanji18/pkg-comment b/japanese/kanji18/pkg-comment new file mode 100644 index 000000000000..ff9a754e71a7 --- /dev/null +++ b/japanese/kanji18/pkg-comment @@ -0,0 +1 @@ +X11 18-dot kanji font diff --git a/japanese/kanji18/pkg-descr b/japanese/kanji18/pkg-descr new file mode 100644 index 000000000000..af1ed79144ff --- /dev/null +++ b/japanese/kanji18/pkg-descr @@ -0,0 +1,6 @@ +Japanese 18 dot gothic font. + + Bitmap font is installed the following directory tree: + ${X11BASE}/lib/X11/fonts/local/ + +MIHIRA Yoshiro diff --git a/japanese/kanji18/pkg-plist b/japanese/kanji18/pkg-plist new file mode 100644 index 000000000000..8f6d494f2f5f --- /dev/null +++ b/japanese/kanji18/pkg-plist @@ -0,0 +1,8 @@ +%%FONTSDIR%%/kanji18.pcf.gz +share/doc/kanji18/18to16.sed +share/doc/kanji18/README.kanji18 +share/doc/kanji18/kanji16.alias +share/doc/kanji18/kanji18.alias +@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@dirrm share/doc/kanji18 diff --git a/japanese/kanji18/pkg-req b/japanese/kanji18/pkg-req new file mode 100644 index 000000000000..42c523b16967 --- /dev/null +++ b/japanese/kanji18/pkg-req @@ -0,0 +1,48 @@ +#!/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} +kanji18 -jis-gothic-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-0 +-jis-fixed-medium-r-normal--18-130-100-100-c-180-jisx0208.1983-0 -jis-gothic-medium-r-normal--18-130-100-100-c-180-jisx0208.1983-0 +-jis-fixed-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-0 -jis-gothic-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-0 +-jis-gothic-medium-r-normal--18-130-100-100-c-180-jisx0208.1983-0 -jis-gothic-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-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; |