Add new port: ja-mikachan-ttfonts.

This is handwritten TrueType font-set.

See: http://mikachan-font.com

Lha use was adviced by sf, thanks.
This commit is contained in:
SADA Kenji 2002-10-14 07:07:12 +00:00
parent 16f1f17d67
commit 92008b7d05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68011
9 changed files with 85 additions and 0 deletions

View File

@ -208,6 +208,7 @@
SUBDIR += migemo-emacs21
SUBDIR += migemo-xemacs-devel-mule
SUBDIR += migemo-xemacs21-mule
SUBDIR += mikachan-ttfonts
SUBDIR += mimekit
SUBDIR += ming
SUBDIR += mnews

View File

@ -0,0 +1,40 @@
# New ports collection makefile for: TrueTypeFont Mika-chan
# Date created: 12 October 2002
# Whom: sada
# Based on: KANOU Hiroki's kochi-ttfonts
#
# $FreeBSD$
#
PORTNAME= mikachan-ttfonts
PORTVERSION= 8.5
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://members.tripod.co.jp/mikachan_font/
DISTNAME= ver${PORTVERSION}
EXTRACT_SUFX= .lzh
MAINTAINER= sada@FreeBSD.org
BUILD_DEPENDS= lha:${PORTSDIR}/archivers/lha
RESTRICTED= "detailed condition is not clear"
EXTRACT_CMD= lha
EXTRACT_BEFORE_ARGS= pq
EXTRACT_AFTER_ARGS= > ${WRKSRC}/mika.ttf
DIST_SUBDIR= ${PORTNAME}
USE_X_PREFIX= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
MAKE_ENV= FONTSDIR=${FONTSDIR}
PLIST_SUB= FONTSDIR=${FONTSDIR}
FONTSDIR= lib/X11/fonts/TrueType
do-install:
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
${INSTALL_DATA} \
${WRKDIR}/mika.ttf ${FILESDIR}/fonts.dir.mika \
${PREFIX}/${FONTSDIR}
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mikachan-ttfonts/ver8.5.lzh) = 8d9c233e1b29070bf22890dd65efa083

View File

@ -0,0 +1,5 @@
4
bw=0.5:mika.ttf -misc-mikachan-medium-r-normal--0-0-0-0-c-0-iso8859-1
bw=0.5:mika.ttf -misc-mikachan-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
mika.ttf -misc-mikachan-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
mika.ttf -misc-mikachan-medium-r-normal--0-0-0-0-p-0-iso8859-1

View File

@ -0,0 +1 @@
Handwritten Japanese TrueType fonts by Mika-chan

View File

@ -0,0 +1,11 @@
#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
cd ${FONTDIR}
sed -e '/-mikachan-/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
rm -f fonts.dir.tmp

View File

@ -0,0 +1,4 @@
Mika-chan wrote a full set of Japanese fonts by hand, scanned,
then translated it to a TrueTypeFont package.
WWW: http://mikachan-font.com/

View File

@ -0,0 +1,20 @@
#!/bin/sh
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
if [ "$2" = "PRE-INSTALL" ]; then
if [ ! -d ${FONTDIR} ]; then
echo "*********************************************************"
echo "Please add ${FONTDIR} to your font path"
echo "and load 'xtt' module in /etc/XF86Config."
echo "*********************************************************"
mkdir $FONTDIR
fi
exit 0
fi
cd ${FONTDIR}
touch fonts.dir
sed -e '/-mikachan-/d' fonts.dir > fonts.dir.tmp
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.mika | wc -l) - 2 | bc)
echo ${numfonts} > fonts.dir
sed -e 1d fonts.dir.tmp >> fonts.dir
sed -e 1d fonts.dir.mika >> fonts.dir
rm -f fonts.dir.tmp fonts.alias.tmp

View File

@ -0,0 +1,2 @@
%%FONTSDIR%%/fonts.dir.mika
%%FONTSDIR%%/mika.ttf