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:
parent
16f1f17d67
commit
92008b7d05
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68011
@ -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
|
||||
|
40
japanese/mikachan-ttfonts/Makefile
Normal file
40
japanese/mikachan-ttfonts/Makefile
Normal 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>
|
1
japanese/mikachan-ttfonts/distinfo
Normal file
1
japanese/mikachan-ttfonts/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mikachan-ttfonts/ver8.5.lzh) = 8d9c233e1b29070bf22890dd65efa083
|
5
japanese/mikachan-ttfonts/files/fonts.dir.mika
Normal file
5
japanese/mikachan-ttfonts/files/fonts.dir.mika
Normal 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
|
1
japanese/mikachan-ttfonts/pkg-comment
Normal file
1
japanese/mikachan-ttfonts/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Handwritten Japanese TrueType fonts by Mika-chan
|
11
japanese/mikachan-ttfonts/pkg-deinstall
Normal file
11
japanese/mikachan-ttfonts/pkg-deinstall
Normal 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
|
4
japanese/mikachan-ttfonts/pkg-descr
Normal file
4
japanese/mikachan-ttfonts/pkg-descr
Normal 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/
|
20
japanese/mikachan-ttfonts/pkg-install
Normal file
20
japanese/mikachan-ttfonts/pkg-install
Normal 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
|
2
japanese/mikachan-ttfonts/pkg-plist
Normal file
2
japanese/mikachan-ttfonts/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
%%FONTSDIR%%/fonts.dir.mika
|
||||
%%FONTSDIR%%/mika.ttf
|
Loading…
Reference in New Issue
Block a user