aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2003-10-14 13:35:38 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2003-10-14 13:35:38 +0000
commit98bd653a9daad139b0753cf2723deb025a1b457d (patch)
treee4b9d31002c3d64702451d86543bcaa2420f4bb2 /japanese
parentfb7ea843d6fbad7cbd2d94d751635808a1141eda (diff)
downloadports-98bd653a9daad139b0753cf2723deb025a1b457d.tar.gz
ports-98bd653a9daad139b0753cf2723deb025a1b457d.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/monafonts-ttf/Makefile31
-rw-r--r--japanese/monafonts-ttf/distinfo1
-rw-r--r--japanese/monafonts-ttf/files/fonts.dir.mona13
-rw-r--r--japanese/monafonts-ttf/pkg-deinstall11
-rw-r--r--japanese/monafonts-ttf/pkg-descr10
-rw-r--r--japanese/monafonts-ttf/pkg-install20
-rw-r--r--japanese/monafonts-ttf/pkg-plist2
8 files changed, 89 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 96af48da0e0c..60905e74f3e3 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -208,6 +208,7 @@
SUBDIR += mimekit
SUBDIR += ming
SUBDIR += monafonts
+ SUBDIR += monafonts-ttf
SUBDIR += mozilla-jlp
SUBDIR += mozilla-jlp-devel
SUBDIR += mplusfonts
diff --git a/japanese/monafonts-ttf/Makefile b/japanese/monafonts-ttf/Makefile
new file mode 100644
index 000000000000..89f601cb798f
--- /dev/null
+++ b/japanese/monafonts-ttf/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: Mona TrueType fonts
+# Date created: 14 October 2003
+# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= monafonts-ttf
+PORTVERSION= 2.90
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= monafont
+DISTNAME= monafont-ttf-${PORTVERSION}
+
+MAINTAINER= nobutaka@FreeBSD.org
+COMMENT= X11 TrueType kanji fonts
+
+USE_X_PREFIX= yes
+USE_ZIP= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+FONTSDIR= lib/X11/fonts/TrueType
+MAKE_ENV= FONTSDIR=${FONTSDIR}
+PLIST_SUB= FONTSDIR=${FONTSDIR}
+
+do-install:
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ ${INSTALL_DATA} ${WRKDIR}/mona.ttf ${FILESDIR}/fonts.dir.mona ${PREFIX}/${FONTSDIR}
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/japanese/monafonts-ttf/distinfo b/japanese/monafonts-ttf/distinfo
new file mode 100644
index 000000000000..234755878a8a
--- /dev/null
+++ b/japanese/monafonts-ttf/distinfo
@@ -0,0 +1 @@
+MD5 (monafont-ttf-2.90.zip) = fa952f01f0187664aaca5d3e259197d3
diff --git a/japanese/monafonts-ttf/files/fonts.dir.mona b/japanese/monafonts-ttf/files/fonts.dir.mona
new file mode 100644
index 000000000000..db7c16d43ecc
--- /dev/null
+++ b/japanese/monafonts-ttf/files/fonts.dir.mona
@@ -0,0 +1,13 @@
+12
+bw=0.5:mona.ttf -mona-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1
+bw=0.5:ab=y:mona.ttf -mona-gothic-bold-r-normal--0-0-0-0-p-0-iso8859-1
+bw=0.5:ai=0.3:mona.ttf -mona-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1
+bw=0.5:ab=y:ai=0.3:mona.ttf -mona-gothic-bold-i-normal--0-0-0-0-p-0-iso8859-1
+bw=0.5:mona.ttf -mona-gothic-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0
+bw=0.5:ab=y:mona.ttf -mona-gothic-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0
+bw=0.5:ai=0.3:mona.ttf -mona-gothic-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0
+bw=0.5:ab=y:ai=0.3:mona.ttf -mona-gothic-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0
+mona.ttf -mona-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
+ab=y:mona.ttf -mona-gothic-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0
+ai=0.3:mona.ttf -mona-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0
+ab=y:ai=0.3:mona.ttf -mona-gothic-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0
diff --git a/japanese/monafonts-ttf/pkg-deinstall b/japanese/monafonts-ttf/pkg-deinstall
new file mode 100644
index 000000000000..1b2d071d768f
--- /dev/null
+++ b/japanese/monafonts-ttf/pkg-deinstall
@@ -0,0 +1,11 @@
+#!/bin/sh
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
+cd ${FONTDIR}
+sed -e '/-mona-/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
diff --git a/japanese/monafonts-ttf/pkg-descr b/japanese/monafonts-ttf/pkg-descr
new file mode 100644
index 000000000000..efe7c52e00ca
--- /dev/null
+++ b/japanese/monafonts-ttf/pkg-descr
@@ -0,0 +1,10 @@
+TrueType kanji propotional fonts that have same metric and order as
+Japanese Windows font. This is named after ascii art 'mona' used in
+'2 channel' ,notrious huge Web BBS.
+
+This font is installed in {X11BASE}/lib/X11/fonts/TrueType.
+
+WWW: http://monafont.sourceforge.net/
+
+--
+MANTANI Nobutaka <nobutaka@FreeBSD.org>
diff --git a/japanese/monafonts-ttf/pkg-install b/japanese/monafonts-ttf/pkg-install
new file mode 100644
index 000000000000..3fa40e973f84
--- /dev/null
+++ b/japanese/monafonts-ttf/pkg-install
@@ -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 '/-monattf-/d' fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.mona | wc -l) - 2 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e 1d fonts.dir.mona >> fonts.dir
+rm -f fonts.dir.tmp fonts.alias.tmp
diff --git a/japanese/monafonts-ttf/pkg-plist b/japanese/monafonts-ttf/pkg-plist
new file mode 100644
index 000000000000..15d1941cee30
--- /dev/null
+++ b/japanese/monafonts-ttf/pkg-plist
@@ -0,0 +1,2 @@
+%%FONTSDIR%%/fonts.dir.mona
+%%FONTSDIR%%/mona.ttf