summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2001-07-30 05:52:39 +0000
committerClive Lin <clive@FreeBSD.org>2001-07-30 05:52:39 +0000
commitd739331a671b51d4d49941f10507c06dfca695af (patch)
treef62173d5afb40ca1d9a64229281a47e20039bcca /chinese
parentDistfile changed without version bump. Author added FKiSS 3.0 support (diff)
This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System (PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the Internet that is DFSG-compliant. The font was designed by DynaLab and released by CMEX as part of the proposed Big5+ standard documentation. It was then converted to HBF and BDF format and further modified by Wei-Lun Chao in September 1998. Submitted by: statue@freebsd.sinica.edu.tw Handed to me via: keichii
Notes
Notes: svn path=/head/; revision=45605
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/cmexfonts/Makefile31
-rw-r--r--chinese/cmexfonts/distinfo1
-rw-r--r--chinese/cmexfonts/files/patch-aa7
-rw-r--r--chinese/cmexfonts/files/patch-ab14
-rw-r--r--chinese/cmexfonts/files/patch-ac56
-rw-r--r--chinese/cmexfonts/pkg-comment1
-rw-r--r--chinese/cmexfonts/pkg-deinstall22
-rw-r--r--chinese/cmexfonts/pkg-descr11
-rw-r--r--chinese/cmexfonts/pkg-install28
-rw-r--r--chinese/cmexfonts/pkg-plist9
11 files changed, 181 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index ba1bd03d20ce..c5aa48ad07f9 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -19,6 +19,7 @@
SUBDIR += chinput2
SUBDIR += cle_base
SUBDIR += cless
+ SUBDIR += cmexfonts
SUBDIR += cxterm
SUBDIR += dia
SUBDIR += emacs20
diff --git a/chinese/cmexfonts/Makefile b/chinese/cmexfonts/Makefile
new file mode 100644
index 000000000000..dffdbd1c2d27
--- /dev/null
+++ b/chinese/cmexfonts/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: cmexfonts
+# Date created: 10 Mar 2001
+# Whom: Shen Chuan-Hsing
+#
+# $FreeBSD$
+#
+
+PORTNAME= cmexfonts
+PORTVERSION= 0.1
+CATEGORIES= chinese x11-fonts
+MASTER_SITES= http://freebsd.sinica.edu.tw/~statue/ \
+ ftp://sunsite.unc.edu/pub/Linux/X11/fonts/
+
+MAINTAINER= statue@freebsd.sinica.edu.tw
+
+USE_X_PREFIX= yes
+NO_BUILD= yes
+
+.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
+
+WRKSRC= ${WRKDIR}/cmexfonts
+
+post-install:
+ @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/chinese/cmexfonts/distinfo b/chinese/cmexfonts/distinfo
new file mode 100644
index 000000000000..85c6ed4f6e57
--- /dev/null
+++ b/chinese/cmexfonts/distinfo
@@ -0,0 +1 @@
+MD5 (cmexfonts-0.1.tar.gz) = f374de39da70d7883da872a9857a36b2
diff --git a/chinese/cmexfonts/files/patch-aa b/chinese/cmexfonts/files/patch-aa
new file mode 100644
index 000000000000..5705692c45bd
--- /dev/null
+++ b/chinese/cmexfonts/files/patch-aa
@@ -0,0 +1,7 @@
+--- cmex_fonts.alias.orig Wed Jul 25 01:58:21 2001
++++ cmex_fonts.alias Wed Jul 25 01:58:21 2001
+@@ -0,0 +1,4 @@
++-dynalab-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5p-0 -dynalab-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5-0
++-dynalab-ming-medium-r-normal-fantizi-16-160-75-75-c-160-big5p-0 -dynalab-ming-medium-r-normal-fantizi-16-160-75-75-c-160-big5-0
++cmex24m -dynalab-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5-0
++cmex16m -dynalab-ming-medium-r-normal-fantizi-16-160-75-75-c-160-big5-0
diff --git a/chinese/cmexfonts/files/patch-ab b/chinese/cmexfonts/files/patch-ab
new file mode 100644
index 000000000000..395f2d4727fa
--- /dev/null
+++ b/chinese/cmexfonts/files/patch-ab
@@ -0,0 +1,14 @@
+--- Makefile.orig Wed Jul 25 02:41:34 2001
++++ Makefile Wed Jul 25 02:41:12 2001
+@@ -0,0 +1,11 @@
++
++CFONTDIR=${PREFIX}/lib/X11/fonts/local
++
++install:
++ if [ ! -d $(CFONTDIR) ]; then mkdir $(CFONTDIR); fi
++ bdftopcf cmex16m.bdf | gzip - > cmex16m.pcf.gz
++ bdftopcf cmex24m.bdf | gzip - > cmex24m.pcf.gz
++ cp cmex*m.pcf.gz $(CFONTDIR)
++ cp cmex_fonts.alias $(CFONTDIR)
++ mkfontdir $(CFONTDIR)
++ cd ${PREFIX}/lib/X11/fonts/local ; cat cmex_fonts.alias >> fonts.alias ; cp fonts.alias ..fonts.alias.. ; sort ..fonts.alias.. | uniq > fonts.alias ; rm ..fonts.alias..
diff --git a/chinese/cmexfonts/files/patch-ac b/chinese/cmexfonts/files/patch-ac
new file mode 100644
index 000000000000..122d5c41b2ff
--- /dev/null
+++ b/chinese/cmexfonts/files/patch-ac
@@ -0,0 +1,56 @@
+--- copyright.orig Wed Jul 25 01:53:09 2001
++++ copyright Wed Jul 25 01:53:09 2001
+@@ -0,0 +1,53 @@
++This package was debianized by Anthony Fok <foka@debian.org> on
++Sat, 14 Mar 1998 20:20:06 -0700.
++
++It may be downloaded from:
++
++ http://metalab.unc.edu/pub/Linux/X11/fonts/cmexfonts-0.1.tar.gz
++
++Big5+ Standard by: CMEX, http://www.cmex.org.tw/
++ Font Designed by: DynaLab, http://www.dynalab.com.tw/
++ BDF converted by: Wei-Lun Chao <chaoweilun@sinanet.com>
++
++Copyright:
++
++ (Rough translation from the original Chinese copyright notice)
++
++ The standard documents, font files and programs are Copyright (C)
++ by ¦æ¬F°|¬ã¨sµo®i¦Ò®Ö©e­û·| (Executive Council Research and Development
++ Committee???) and ¤¤¤å¼Æ¦ì¤Æ§Þ³N±À¼s°òª÷·| (¤¤±À·|, CMEX).
++ The general public are welcome to use and redistribute these files freely,
++ but please retain the copyright notice and give credits to the
++ copyright holders, and to the designers or producers or the fonts
++ or programs.
++
++ Fonts designed by DynaLab, Inc.
++ Converted to HBF and BDF format and further modified by
++ »¯±©­Û (Wei-Lun Chao) <chaoweilun@sinanet.com>, 1998.1, 1998.9.
++ Chao claims no extra copyright for the BDF font.
++
++
++Original Chinese copyright notice (Big5 charset) follows:
++
++[µÛ§@ÅvÁn©ú]
++
++ ¥»¤u¨ãºÏ¤ù©Ò§t¤§³W®æ¡B¦r§Î¤Îµ{¦¡ªºµÛ§@Åv¬°¦æ¬F°|¬ã¨sµo®i¦Ò®Ö©e­û·|
++ ¤Î¤¤¤å¹q¸£±À¼s°òª÷·|©Ò¦@¦³¡AÅwªï¦U¬É¼s¬°¬y¶Ç¨Ãµø¶·­n½Æ»s¨Ï¥Î¡A¦ý½Ð
++ µù©úµÛ§@Åv¾Ö¦³ªÌ¡B¦r§Î¤Îµ{¦¡ªº³]­p©Î»s§@³æ¦ì¡C
++ ³o¨ÇÂà½Xµ{¦¡¡A¶È¨Ñ¦U¬É°Ñ¦Ò¨Ï¥Î©Î­×§ï¡A´£¨Ñ³æ¦ì®¤¤£­t³dªA°È¡C
++
++ µÛ§@Åv¬°¦æ¬F°|¬ã¨sµo®i¦Ò®Ö©e­û·|¤Î¤¤¤å¹q¸£±À¼s°òª÷·|©Ò¦@¦³
++ùÝùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùß
++ùø¡·´£¨Ñ³æ¦ì¡G¦æ¬F°|¬ã¦Ò·|¡B¤¤¤å¹q¸£±À¼s°òª÷·| ùø
++ùø¡·¦r§Î³]­p¡GµØ±d¬ì§Þ ùø
++ùãùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùùå
++
++Big5 code follows:
++
++COMMENT µÛ§@Åv¬°¤¤µØ¥Á°ê¦æ¬F°|¬ã¦Ò·|¡B¤¤¤å¹q¸£±À¼s°òª÷·|©Ò¦@¦³
++COMMENT ¦r§Î³]­p¬°µØ±d¬ì§Þ Dynalab Inc.
++COMMENT http://www.cmex.org.tw/
++COMMENT Modified by »¯±©­Û wchao@hrz.uni-bielefeld.de, 1998.1. µL·s¼WÅv§Q«Å§i
++COMMENT -dynalab-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5p-0
++COMMENT ¥¿½T¦r¶°¦WºÙ¬° big5p¡A¦]¬Û®e©Ê§ï¬° big5
++FONT -dynalab-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5-0
diff --git a/chinese/cmexfonts/pkg-comment b/chinese/cmexfonts/pkg-comment
new file mode 100644
index 000000000000..9512fe1f4088
--- /dev/null
+++ b/chinese/cmexfonts/pkg-comment
@@ -0,0 +1 @@
+Big5+ Chinese Mingti bitmap font (by CMEX & DynaLab) for X11
diff --git a/chinese/cmexfonts/pkg-deinstall b/chinese/cmexfonts/pkg-deinstall
new file mode 100644
index 000000000000..651bff4ea271
--- /dev/null
+++ b/chinese/cmexfonts/pkg-deinstall
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -e
+
+fontdir="/usr/X11R6/lib/X11/fonts/local"
+
+# $fontdir no longer exists;
+# remove the FontPath from /etc/X11/XF86Config
+
+if [ -f /etc/X11/XF86Config ]
+then
+ echo "Removing FontPath \"$fontdir\" from /etc/X11/XF86Config ..."
+ tmpfile="/tmp/tempfile"
+ sed -e '/Section *"Files"/,/EndSection/{' \
+ -e "\\%^ *FontPath *[\"']$fontdir%d" \
+ -e '}' /etc/X11/XF86Config >> $tmpfile
+ mv -f $tmpfile /etc/X11/XF86Config
+else
+ echo "/etc/X11/XF86Config not found!"
+ echo "You need to remove the line"
+ echo " FontPath \"$fontdir/:unscaled\""
+ echo "from /etc/X11/XF86Config yourself, otherwise X may fail to work."
+fi
diff --git a/chinese/cmexfonts/pkg-descr b/chinese/cmexfonts/pkg-descr
new file mode 100644
index 000000000000..381af4d17522
--- /dev/null
+++ b/chinese/cmexfonts/pkg-descr
@@ -0,0 +1,11 @@
+This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
+a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System
+(PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the
+Internet that is DFSG-compliant.
+
+The font was designed by DynaLab and released by CMEX as part of the
+proposed Big5+ standard documentation. It was then converted to HBF and BDF
+format and further modified by Wei-Lun Chao in September 1998.
+
+
+WWW: http://www.cmex.org.tw/
diff --git a/chinese/cmexfonts/pkg-install b/chinese/cmexfonts/pkg-install
new file mode 100644
index 000000000000..ef6f5aeba68c
--- /dev/null
+++ b/chinese/cmexfonts/pkg-install
@@ -0,0 +1,28 @@
+#!/bin/sh
+set -e
+
+fontdir="/usr/X11R6/lib/X11/fonts/local"
+
+# Add FontPath to /etc/X11/XF86Config
+
+if [ -f /etc/X11/XF86Config ]
+then
+ if ! grep -q "^ *FontPath *[\"']$fontdir/" /etc/X11/XF86Config
+ then
+ echo "Adding FontPath \"$fontdir\" to /etc/X11/XF86Config ..."
+ tmpfile="/tmp/tempfile"
+ sed -e '/Section "Files"/,/EndSection/{
+/EndSection/i\
+ FontPath \"'$fontdir'/:unscaled\"\
+ FontPath \"'$fontdir'/\"
+}' /etc/X11/XF86Config >> $tmpfile
+ mv -f $tmpfile /etc/X11/XF86Config
+ else
+ echo "Having FontPath \"$fontdir\" to /etc/X11/XF86Config ..."
+ fi
+else
+ echo "/etc/X11/XF86Config not found!"
+ echo "You need to add"
+ echo " FontPath \"$fontdir/:unscaled\""
+ echo "to /etc/X11/XF86Config yourself in order to use the font."
+fi
diff --git a/chinese/cmexfonts/pkg-plist b/chinese/cmexfonts/pkg-plist
new file mode 100644
index 000000000000..732b11731b73
--- /dev/null
+++ b/chinese/cmexfonts/pkg-plist
@@ -0,0 +1,9 @@
+lib/X11/fonts/local/cmex16m.pcf.gz
+lib/X11/fonts/local/cmex24m.pcf.gz
+lib/X11/fonts/local/cmex_fonts.alias
+@exec cd %D/lib/X11/fonts/local ; %D/bin/mkfontdir
+@exec cd %D/lib/X11/fonts/local ; cat cmex_fonts.alias >> fonts.alias ; cp fonts.alias ..fonts.alias.. ; sort ..fonts.alias.. | uniq > fonts.alias ; rm ..fonts.alias..
+@unexec cd %D/lib/X11/fonts/local ; %D/bin/mkfontdir
+@unexec if [ -s %D/lib/X11/fonts/local/fonts.alias ]; then perl -e 'while (<>) { if (!/dynalab-ming/) { print <>} }' < %D/lib/X11/fonts/local/fonts.alias > /tmp/fonts.alias.$$; mv /tmp/fonts.alias.$$ %D/lib/X11/fonts/local/fonts.alias; fi
+@unexec if [ `\head -1 %D/lib/X11/fonts/local/fonts.dir` = 0 ]; then rm -f %D/lib/X11/fonts/local/fonts.dir; fi
+@unexec if [ ! -s %D/lib/X11/fonts/local/fonts.alias ]; then rm -f %D/lib/X11/fonts/local/fonts.alias; fi