diff options
author | sf <sf@FreeBSD.org> | 2001-06-01 22:25:58 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-06-01 22:25:58 +0800 |
commit | 551299e58fb174b5c76a2d98721d14ac714a0b7e (patch) | |
tree | 595256e02e7474e7544e206b6a1b4a7bcabd2a7e /japanese/jisx0213-fonts | |
parent | e0737183f83abdb1e632d01ae72606c99e1ba2b8 (diff) | |
download | freebsd-ports-gnome-551299e58fb174b5c76a2d98721d14ac714a0b7e.tar.gz freebsd-ports-gnome-551299e58fb174b5c76a2d98721d14ac714a0b7e.tar.zst freebsd-ports-gnome-551299e58fb174b5c76a2d98721d14ac714a0b7e.zip |
Add jisx0213-fonts 1.03, Japanese jisx0213 fonts.
PR: 27789
Submitted by: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
Diffstat (limited to 'japanese/jisx0213-fonts')
-rw-r--r-- | japanese/jisx0213-fonts/Makefile | 53 | ||||
-rw-r--r-- | japanese/jisx0213-fonts/distinfo | 6 | ||||
-rw-r--r-- | japanese/jisx0213-fonts/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/jisx0213-fonts/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/jisx0213-fonts/pkg-plist | 10 | ||||
-rw-r--r-- | japanese/jisx0213-fonts/pkg-req | 45 |
6 files changed, 118 insertions, 0 deletions
diff --git a/japanese/jisx0213-fonts/Makefile b/japanese/jisx0213-fonts/Makefile new file mode 100644 index 000000000000..9f4838361e67 --- /dev/null +++ b/japanese/jisx0213-fonts/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: jisx0213-fonts +# Date created: Jun 1 2001 +# Whom: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> +# +# $FreeBSD$ +# + +PORTNAME= jisx0213-fonts +PORTVERSION= 1.03 +CATEGORIES= japanese x11-fonts +MASTER_SITES= http://www.mars.sphere.ne.jp/imamura/ +DISTFILES= jiskan16-2000-1.bdf.gz jiskan16-2000-2.bdf.gz \ + K14-1.bdf.gz K14-2.bdf.gz K12-1.bdf.gz K12-2.bdf.gz + +MAINTAINER= yoichi@eken.phys.nagoya-u.ac.jp + +NO_WRKSUBDIR= yes +USE_X_PREFIX= yes +FONTSDIR= lib/X11/fonts/local + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 4 +BUILD_DEPENDS+= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients +RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients +.endif + +FONTNAMES= jiskan16-2000-1 jiskan16-2000-2 \ + K14-1 K14-2 K12-1 K12-2 +PLIST_SUB= FONTSDIR=${FONTSDIR} + +do-extract: + @${MKDIR} ${WRKDIR} + +do-build: +.for i in ${FONTNAMES} + (cd ${WRKSRC} ; \ + ${GZCAT} ${DISTDIR}/${i}.bdf.gz | bdftopcf -o ${i}.pcf ; \ + ${GZIP_CMD} ${i}.pcf) +.endfor + +do-install: + ${MKDIR} ${PREFIX}/${FONTSDIR} +.for i in ${FONTNAMES} + (cd ${WRKSRC} ; ${INSTALL_DATA} ${i}.pcf.gz ${PREFIX}/${FONTSDIR}) +.endfor + mkfontdir ${PREFIX}/${FONTSDIR} + +pre-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGREQ} ${PKGNAME} INSTALL + +.include <bsd.port.post.mk> diff --git a/japanese/jisx0213-fonts/distinfo b/japanese/jisx0213-fonts/distinfo new file mode 100644 index 000000000000..16cf36493196 --- /dev/null +++ b/japanese/jisx0213-fonts/distinfo @@ -0,0 +1,6 @@ +MD5 (jiskan16-2000-1.bdf.gz) = 4a6e49cead2edb18d7cf0b9b58318583 +MD5 (jiskan16-2000-2.bdf.gz) = 54e97485716f3978d257a176618844cd +MD5 (K14-1.bdf.gz) = 8235bb4caddd9e3bca65c539045d2899 +MD5 (K14-2.bdf.gz) = b9f62e3331497ddc44d097cc08dd9c7b +MD5 (K12-1.bdf.gz) = 0c2453f4a398ae4b2d1ee49809abe4ef +MD5 (K12-2.bdf.gz) = 87057aa428fce3503eb240264626a655 diff --git a/japanese/jisx0213-fonts/pkg-comment b/japanese/jisx0213-fonts/pkg-comment new file mode 100644 index 000000000000..f6819c5e983d --- /dev/null +++ b/japanese/jisx0213-fonts/pkg-comment @@ -0,0 +1 @@ +Japanese jisx0213 fonts diff --git a/japanese/jisx0213-fonts/pkg-descr b/japanese/jisx0213-fonts/pkg-descr new file mode 100644 index 000000000000..b557f9bbd3e5 --- /dev/null +++ b/japanese/jisx0213-fonts/pkg-descr @@ -0,0 +1,3 @@ +Japanese jisx0213 public domain fonts + +WWW: http://www.mars.sphere.ne.jp/imamura/jisx0213.html diff --git a/japanese/jisx0213-fonts/pkg-plist b/japanese/jisx0213-fonts/pkg-plist new file mode 100644 index 000000000000..60eef16658d0 --- /dev/null +++ b/japanese/jisx0213-fonts/pkg-plist @@ -0,0 +1,10 @@ +%%FONTSDIR%%/jiskan16-2000-1.pcf.gz +%%FONTSDIR%%/jiskan16-2000-2.pcf.gz +%%FONTSDIR%%/K14-1.pcf.gz +%%FONTSDIR%%/K14-2.pcf.gz +%%FONTSDIR%%/K12-1.pcf.gz +%%FONTSDIR%%/K12-2.pcf.gz +@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@unexec if [ `wc -c %D/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/%%FONTSDIR%%/fonts.dir; fi +@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi diff --git a/japanese/jisx0213-fonts/pkg-req b/japanese/jisx0213-fonts/pkg-req new file mode 100644 index 000000000000..ab31d6979d77 --- /dev/null +++ b/japanese/jisx0213-fonts/pkg-req @@ -0,0 +1,45 @@ +#!/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} +-netscape-fixed-medium-r-normal--16-156-75-75-c-160-jisx0212.1990-0 -misc-fixed-medium-r-normal--16-150-75-75-c-160-jisx0213.2000-1 +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; |