diff options
author | Shigeyuki Fukushima <shige@FreeBSD.org> | 2002-01-15 15:55:09 +0000 |
---|---|---|
committer | Shigeyuki Fukushima <shige@FreeBSD.org> | 2002-01-15 15:55:09 +0000 |
commit | c836bdea2bbff4f9a3661663eeb3bc2a35857fa2 (patch) | |
tree | c82fdb06d8f0db2722ee3b45d82171323b3361ba /japanese/font-kochi | |
parent | 6aa009e6f7ddb1875e585b5b6b3e8b0102fd4358 (diff) | |
download | ports-c836bdea2bbff4f9a3661663eeb3bc2a35857fa2.tar.gz ports-c836bdea2bbff4f9a3661663eeb3bc2a35857fa2.zip |
Notes
Diffstat (limited to 'japanese/font-kochi')
-rw-r--r-- | japanese/font-kochi/Makefile | 50 | ||||
-rw-r--r-- | japanese/font-kochi/distinfo | 2 | ||||
-rw-r--r-- | japanese/font-kochi/files/fonts.alias.kochi | 40 | ||||
-rw-r--r-- | japanese/font-kochi/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/font-kochi/pkg-deinstall | 13 | ||||
-rw-r--r-- | japanese/font-kochi/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/font-kochi/pkg-install | 18 | ||||
-rw-r--r-- | japanese/font-kochi/pkg-plist | 4 |
8 files changed, 131 insertions, 0 deletions
diff --git a/japanese/font-kochi/Makefile b/japanese/font-kochi/Makefile new file mode 100644 index 000000000000..64128b0a9415 --- /dev/null +++ b/japanese/font-kochi/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: Kochi TrueType fonts +# Date created: 6 January 2001 +# Whom: KANOU Hiroki <kanou@mil.allnet.ne.jp> +# +# $FreeBSD$ +# + +PORTNAME= kochi-ttfonts +PORTVERSION= 20011227 +CATEGORIES= japanese x11-fonts +MASTER_SITES= http://www.on.cs.keio.ac.jp/~yasu/linux/fonts/ +DISTFILES= kochi-mincho-0.1.${PORTVERSION}.tar.bz2 \ + kochi-gothic-0.0.${PORTVERSION}.tar.bz2 + +MAINTAINER= kanou@mil.allnet.ne.jp + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 4 +RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients +.endif + +USE_X_PREFIX= yes +USE_BZIP2= yes +NO_BUILD= yes + +FONTSDIR= lib/X11/fonts/TrueType +MAKE_ENV= FONTSDIR=${FONTSDIR} +PLIST_SUB= FONTSDIR=${FONTSDIR} + +post-extract: + (cd ${WRKDIR}/kochi-mincho/examples; \ + ${MV} fonts.dir.xtt fonts.dir.kochi ) + +do-install: +.if !exists(${PREFIX}/${FONTSDIR}) + @${ECHO} "*********************************************************" + @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path" + @${ECHO} "and load 'xtt' module in /etc/XF86Config." + @${ECHO} "*********************************************************" + ${MKDIR} ${PREFIX}/${FONTSDIR} +.endif + ${INSTALL_DATA} ${WRKDIR}/kochi-gothic/fonts/kochi-gothic.ttf \ + ${WRKDIR}/kochi-mincho/fonts/kochi-mincho.ttf \ + ${WRKDIR}/kochi-mincho/examples/fonts.dir.kochi \ + ${FILESDIR}/fonts.alias.kochi \ + ${PREFIX}/${FONTSDIR} + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.post.mk> diff --git a/japanese/font-kochi/distinfo b/japanese/font-kochi/distinfo new file mode 100644 index 000000000000..690bf82624cc --- /dev/null +++ b/japanese/font-kochi/distinfo @@ -0,0 +1,2 @@ +MD5 (kochi-mincho-0.1.20011227.tar.bz2) = c447759248a40fd68ca60ff14c723606 +MD5 (kochi-gothic-0.0.20011227.tar.bz2) = 3889d82a6ae0d292ecd492e42953647d diff --git a/japanese/font-kochi/files/fonts.alias.kochi b/japanese/font-kochi/files/fonts.alias.kochi new file mode 100644 index 000000000000..47b3e2c83306 --- /dev/null +++ b/japanese/font-kochi/files/fonts.alias.kochi @@ -0,0 +1,40 @@ +-kochi-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-medium-o-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-medium-o-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-medium-i-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-medium-i-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-medium-r-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-medium-r-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-obold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-obold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-obold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-obold-o-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-obold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-obold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-obold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-obold-i-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-obold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-mincho-obold-r-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-mincho-obold-ro-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-obold-ro-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-obold-o-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-obold-o-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-obold-ri-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-obold-ri-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-obold-i-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-obold-i-normal--0-0-0-0-c-0-iso8859-1 +-kochi-mincho-obold-r-normal--0-0-0-0-p-0-iso8859-1 -kochi-mincho-obold-r-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-medium-o-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-medium-o-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-medium-i-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-medium-r-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-obold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-obold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-obold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-obold-o-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-obold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-obold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-obold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-obold-i-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-obold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -kochi-gothic-obold-r-normal--0-0-0-0-c-0-jisx0208.1983-0 +-kochi-gothic-obold-ro-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-obold-ro-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-obold-o-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-obold-o-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-obold-ri-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-obold-ri-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-obold-i-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-obold-i-normal--0-0-0-0-c-0-iso8859-1 +-kochi-gothic-obold-r-normal--0-0-0-0-p-0-iso8859-1 -kochi-gothic-obold-r-normal--0-0-0-0-c-0-iso8859-1 diff --git a/japanese/font-kochi/pkg-comment b/japanese/font-kochi/pkg-comment new file mode 100644 index 000000000000..202c73ae17e6 --- /dev/null +++ b/japanese/font-kochi/pkg-comment @@ -0,0 +1 @@ +Free Japanese TrueType fonts named 'Kochi' diff --git a/japanese/font-kochi/pkg-deinstall b/japanese/font-kochi/pkg-deinstall new file mode 100644 index 000000000000..99d635d3157d --- /dev/null +++ b/japanese/font-kochi/pkg-deinstall @@ -0,0 +1,13 @@ +#!/bin/sh +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +cd ${FONTDIR} +sed -e '/-kochi-/d' fonts.dir > fonts.dir.tmp +numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc) +echo ${numfonts} > fonts.dir +sed -e 1d fonts.dir.tmp >> fonts.dir +sed -e '/^-kochi-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +rm -f fonts.dir.tmp diff --git a/japanese/font-kochi/pkg-descr b/japanese/font-kochi/pkg-descr new file mode 100644 index 000000000000..ef9292d08935 --- /dev/null +++ b/japanese/font-kochi/pkg-descr @@ -0,0 +1,3 @@ +Free Japanese TrueType fonts named 'Kochi Mincho' and 'Kochi Gothic'. + +WWW: http://www.on.cs.keio.ac.jp/~yasu/jp_fonts.html diff --git a/japanese/font-kochi/pkg-install b/japanese/font-kochi/pkg-install new file mode 100644 index 000000000000..a64d49b66d95 --- /dev/null +++ b/japanese/font-kochi/pkg-install @@ -0,0 +1,18 @@ +#!/bin/sh +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +if [ "$2" = "PRE-INSTALL" ]; then + echo "Please add ${FONTDIR} to your /etc/XF86Config file" + exit 0 +fi +cd ${FONTDIR} +touch fonts.dir +sed -e '/-kochi-/d' fonts.dir > fonts.dir.tmp +numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.kochi | wc -l) - 2 | bc) +echo ${numfonts} > fonts.dir +sed -e 1d fonts.dir.tmp >> fonts.dir +sed -e 1d fonts.dir.kochi >> fonts.dir +touch fonts.alias +sed -e '/^-kochi-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +cat fonts.alias.kochi >> fonts.alias +rm -f fonts.dir.tmp fonts.alias.tmp diff --git a/japanese/font-kochi/pkg-plist b/japanese/font-kochi/pkg-plist new file mode 100644 index 000000000000..8f046a05a51f --- /dev/null +++ b/japanese/font-kochi/pkg-plist @@ -0,0 +1,4 @@ +%%FONTSDIR%%/fonts.alias.kochi +%%FONTSDIR%%/fonts.dir.kochi +%%FONTSDIR%%/kochi-mincho.ttf +%%FONTSDIR%%/kochi-gothic.ttf |