aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2001-02-21 07:52:26 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2001-02-21 07:52:26 +0000
commit136b5ae750b7996fa456bc33705df56aaf25b918 (patch)
treeb3ecfb3ef3382810f78ef205ebd02b878b90f24e /x11-fonts
parent272a088a704f026ac14c228d0ac2ae3d79255d28 (diff)
downloadports-136b5ae750b7996fa456bc33705df56aaf25b918.tar.gz
ports-136b5ae750b7996fa456bc33705df56aaf25b918.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/monafonts/Makefile34
-rw-r--r--x11-fonts/monafonts/distinfo1
-rw-r--r--x11-fonts/monafonts/files/patch-aa16
-rw-r--r--x11-fonts/monafonts/files/patch-ab8
-rw-r--r--x11-fonts/monafonts/pkg-comment1
-rw-r--r--x11-fonts/monafonts/pkg-descr12
-rw-r--r--x11-fonts/monafonts/pkg-plist19
-rw-r--r--x11-fonts/monafonts/pkg-req62
8 files changed, 153 insertions, 0 deletions
diff --git a/x11-fonts/monafonts/Makefile b/x11-fonts/monafonts/Makefile
new file mode 100644
index 000000000000..036b15a1c953
--- /dev/null
+++ b/x11-fonts/monafonts/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: monafonts
+# Date created: 14 February 2001
+# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= monafonts
+PORTVERSION?= 20010213
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= http://members.tripod.co.jp/s42335/mona/
+DISTNAME= mona-${PORTVERSION}
+
+MAINTAINER= nobutaka@nobutaka.com
+
+FONTSDIR= lib/X11/fonts/local
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+ALL_TARGET= fonts
+.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
+
+PLIST_SUB= FONTSDIR=${FONTSDIR}
+
+
+pre-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGREQ} ${PKGNAME} INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/x11-fonts/monafonts/distinfo b/x11-fonts/monafonts/distinfo
new file mode 100644
index 000000000000..f2167ca856f1
--- /dev/null
+++ b/x11-fonts/monafonts/distinfo
@@ -0,0 +1 @@
+MD5 (mona-20010213.tar.gz) = 734c6486d8e25177905bd5de8fcd8e00
diff --git a/x11-fonts/monafonts/files/patch-aa b/x11-fonts/monafonts/files/patch-aa
new file mode 100644
index 000000000000..89956b52a821
--- /dev/null
+++ b/x11-fonts/monafonts/files/patch-aa
@@ -0,0 +1,16 @@
+--- Makefile.orig Wed Feb 14 23:47:52 2001
++++ Makefile Thu Feb 15 00:41:14 2001
+@@ -3,11 +3,11 @@
+
+ SED = sed
+ PERL = perl
+-X11BIN = /usr/X11R6/bin
++X11BIN = ${PREFIX}/bin
+ GZIP = gzip
+ #GAWK = gawk
+
+-FONTDIR = /usr/X11R6/lib/X11/fonts/misc
++FONTDIR = ${PREFIX}/lib/X11/fonts/local
+
+ BDFTOPCF= $(X11BIN)/bdftopcf
+ MKFONTDIR=$(X11BIN)/mkfontdir
diff --git a/x11-fonts/monafonts/files/patch-ab b/x11-fonts/monafonts/files/patch-ab
new file mode 100644
index 000000000000..aed38348270a
--- /dev/null
+++ b/x11-fonts/monafonts/files/patch-ab
@@ -0,0 +1,8 @@
+--- tools/mkitalic Sun Feb 11 09:09:45 2001
++++ tools/mkitalic Thu Feb 15 20:40:19 2001
+@@ -1,4 +1,4 @@
+-#!/usr/bin/gawk -f
++#!/usr/bin/awk -f
+ #
+ # -- makes BDF font italic
+ # version 0.00.1
diff --git a/x11-fonts/monafonts/pkg-comment b/x11-fonts/monafonts/pkg-comment
new file mode 100644
index 000000000000..6c8ab80a65f6
--- /dev/null
+++ b/x11-fonts/monafonts/pkg-comment
@@ -0,0 +1 @@
+X11 12,16-dot kanji propotional fonts
diff --git a/x11-fonts/monafonts/pkg-descr b/x11-fonts/monafonts/pkg-descr
new file mode 100644
index 000000000000..6c3a2b061a15
--- /dev/null
+++ b/x11-fonts/monafonts/pkg-descr
@@ -0,0 +1,12 @@
+X11 12,16-dot kanji propotional fonts that have same metric and encoding as
+Japanese Windows font. This is named after ascii art 'mona' used in
+'2 channel' ,notrious huge Web BBS.
+
+
+ Bitmap font is installed the following directory tree:
+ ${X11BASE}/lib/X11/fonts/local/
+
+WWW: http://members.tripod.co.jp/s42335/mona/
+
+--
+MANTANI Nobutaka <nobutaka@nobutaka.com>
diff --git a/x11-fonts/monafonts/pkg-plist b/x11-fonts/monafonts/pkg-plist
new file mode 100644
index 000000000000..1a82b04fc323
--- /dev/null
+++ b/x11-fonts/monafonts/pkg-plist
@@ -0,0 +1,19 @@
+%%FONTSDIR%%/mona12aB.pcf.gz
+%%FONTSDIR%%/mona12aI.pcf.gz
+%%FONTSDIR%%/mona12aR.pcf.gz
+%%FONTSDIR%%/mona12kB.pcf.gz
+%%FONTSDIR%%/mona12kI.pcf.gz
+%%FONTSDIR%%/mona12kR.pcf.gz
+%%FONTSDIR%%/mona12rB.pcf.gz
+%%FONTSDIR%%/mona12rI.pcf.gz
+%%FONTSDIR%%/mona12rR.pcf.gz
+%%FONTSDIR%%/mona16aB.pcf.gz
+%%FONTSDIR%%/mona16aI.pcf.gz
+%%FONTSDIR%%/mona16aR.pcf.gz
+%%FONTSDIR%%/mona16kB.pcf.gz
+%%FONTSDIR%%/mona16kI.pcf.gz
+%%FONTSDIR%%/mona16kR.pcf.gz
+%%FONTSDIR%%/mona16rB.pcf.gz
+%%FONTSDIR%%/mona16rI.pcf.gz
+%%FONTSDIR%%/mona16rR.pcf.gz
+@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi
diff --git a/x11-fonts/monafonts/pkg-req b/x11-fonts/monafonts/pkg-req
new file mode 100644
index 000000000000..e68d231d4589
--- /dev/null
+++ b/x11-fonts/monafonts/pkg-req
@@ -0,0 +1,62 @@
+#!/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}
+mona12aR -mona-gothic-medium-r-normal--12-120-75-75-p-60-iso8859-1
+mona16aB -mona-gothic-bold-r-normal--16-150-75-75-p-80-iso8859-1
+mona16kR -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+mona12kB -mona-gothic-bold-r-normal--12-120-75-75-p-120-jisx0208.1990-0
+mona16aI -mona-gothic-medium-i-normal--16-150-75-75-p-80-iso8859-1
+mona12kI -mona-gothic-medium-i-normal--12-120-75-75-p-120-jisx0208.1990-0
+mona16aR -mona-gothic-medium-r-normal--16-150-75-75-p-80-iso8859-1
+mona12aB -mona-gothic-bold-r-normal--12-120-75-75-p-60-iso8859-1
+mona12kR -mona-gothic-medium-r-normal--12-120-75-75-p-120-jisx0208.1990-0
+mona16kB -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+mona12aI -mona-gothic-medium-i-normal--12-120-75-75-p-60-iso8859-1
+mona16kI -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
+mona12rR -mona-gothic-medium-r-normal--12-120-75-75-p-60-jisx0201.1976-0
+mona16rB -mona-gothic-bold-r-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona16rI -mona-gothic-medium-i-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona16rR -mona-gothic-medium-r-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona12rB -mona-gothic-bold-r-normal--12-120-75-75-p-60-jisx0201.1976-0
+mona12rI -mona-gothic-medium-i-normal--12-120-75-75-p-60-jisx0201.1976-0
+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;