Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 21:21:43 +0800 (CST)
From:      Statue <statue@freebsd.sinica.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50818: New port: chinese/kaisu
Message-ID:  <20030411132143.A828D75B@freebsd.sinica.edu.tw>
Resent-Message-ID: <200304111330.h3BDU6nc008754@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50818
>Category:       ports
>Synopsis:       New port: chinese/kaisu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 11 06:30:06 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Statue
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD freebsd.sinica.edu.tw 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Mon Sep 9 10:45:46 CST 2002 ycheng@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386


	
>Description:

	KaiSu.pkg.tar is a Chinese PostScript font package. It's the 
courtesy of Jackson  Technology, Ltd., Taiwan to release this font
under the terms of the General Public  License of the Free Software
Fundation. Taiwan NeXT User Group has taken over the distribution
since the sales manager Tsui of Jackson announced this news in the
user meeting of TwNUG in December 29, 1993. For the past period, 
we have been modifing and packaging the font. However, due to the 
lack of time, we have not been able to fully test either the PS font 
or the install script. If you have any problem  installing the package,
please send e-mail to the following address: 

    KaiSu@nextstep.dorm6.nctu.edu.tw

	The KaiSu package contains only a typeface of Big-5 encode 
Chinese PostScript font. In the future, we will put in a Chinese input 
program called CInput with the package and other related utilities. 
For those who are interested in seeing Chinese NeXTSTEP, there is a 
sample file in the same directory you download the font called 
Chinese_sample.rtf. 
	
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	kaisu/
#	kaisu/Makefile
#	kaisu/distinfo
#	kaisu/files
#	kaisu/pkg-deinstall
#	kaisu/pkg-descr
#	kaisu/pkg-install
#	kaisu/pkg-plist
#	kaisu/files/KaiSu-Regular-ETen-B5-H.gsf
#	kaisu/files/KaiSu-Regular-ETen-B5-V.gsf
#
echo c - kaisu/
mkdir -p kaisu/ > /dev/null 2>&1
echo x - kaisu/Makefile
sed 's/^X//' >kaisu/Makefile << 'END-of-kaisu/Makefile'
X# New ports collection makefile for:	KaiSu Chinese PostScript font
X# Date created:		30 Mar 2003
X# Whom:			Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	kaisu
XPORTVERSION=	1.0
XCATEGORIES=	chinese print
XMASTER_SITES=	ftp://freebsd.sinica.edu.tw/pub/statue/kaisu/ \
X		http://download.tw.kde.org/pub/CLE/fonts/jackson/
XDISTNAME=	KaiSu.pkg_0_7
X
XMAINTAINER=	statue@freebsd.sinica.edu.tw
XCOMMENT=	KaiSu is a Chinese PostScript font package
X
XRUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu \
X		${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
X
XNO_BUILD=	YES
X
Xpost-extract:
X	cd ${WRKSRC}/KaiSu-Regular.pkg/ && tar zxvf KaiSu-Regular.tar.Z
X
Xdo-install:
X	@${INSTALL_DATA} ${WRKSRC}/KaiSu-Regular.pkg/KaiSu-Regular.font/KaiSu-Regular \
X		${FILESDIR}/KaiSu-Regular-ETen-B5-H.gsf \
X		${FILESDIR}/KaiSu-Regular-ETen-B5-V.gsf \
X		${PREFIX}/share/ghostscript/fonts
X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.mk>
END-of-kaisu/Makefile
echo x - kaisu/distinfo
sed 's/^X//' >kaisu/distinfo << 'END-of-kaisu/distinfo'
XMD5 (KaiSu.pkg_0_7.tar.gz) = 21965419de4db996f7778ac2731d7c22
XMD5 (KaiSu_patch_0_7.tar.gz) = 38c0a140a2c0a3cdf63674277b46a535
END-of-kaisu/distinfo
echo c - kaisu/files
mkdir -p kaisu/files > /dev/null 2>&1
echo x - kaisu/pkg-deinstall
sed 's/^X//' >kaisu/pkg-deinstall << 'END-of-kaisu/pkg-deinstall'
X#!/bin/sh
X
XGSVER=7.05
XGSDIR=${PKG_PREFIX}/share/ghostscript
XFONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
XFONTMAPTMP=${FONTMAP}.tmp
X
X# Run just once.
Xif [ "x$2" != "xDEINSTALL" ]; then
X  exit 0
Xfi
X
Xsed -e "/^\/KaiSu.*/d" ${FONTMAP} > ${FONTMAPTMP}
Xmv -f ${FONTMAPTMP} ${FONTMAP}
END-of-kaisu/pkg-deinstall
echo x - kaisu/pkg-descr
sed 's/^X//' >kaisu/pkg-descr << 'END-of-kaisu/pkg-descr'
X	KaiSu.pkg.tar is a Chinese PostScript font package. It's the 
Xcourtesy of Jackson  Technology, Ltd., Taiwan to release this font
Xunder the terms of the General Public  License of the Free Software
XFundation. Taiwan NeXT User Group has taken over the distribution
Xsince the sales manager Tsui of Jackson announced this news in the
Xuser meeting of TwNUG in December 29, 1993. For the past period, 
Xwe have been modifing and packaging the font. However, due to the 
Xlack of time, we have not been able to fully test either the PS font 
Xor the install script. If you have any problem  installing the package,
Xplease send e-mail to the following address: 
X
X    KaiSu@nextstep.dorm6.nctu.edu.tw
X
X	The KaiSu package contains only a typeface of Big-5 encode 
XChinese PostScript font. In the future, we will put in a Chinese input 
Xprogram called CInput with the package and other related utilities. 
XFor those who are interested in seeing Chinese NeXTSTEP, there is a 
Xsample file in the same directory you download the font called 
XChinese_sample.rtf. 
END-of-kaisu/pkg-descr
echo x - kaisu/pkg-install
sed 's/^X//' >kaisu/pkg-install << 'END-of-kaisu/pkg-install'
X#!/bin/sh
X
XGSVER=7.05
XGSDIR=${PKG_PREFIX}/share/ghostscript
XFONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
X
X# Run just once.
Xif [ "x$2" != "xPOST-INSTALL" ]; then
X  exit 0
Xfi
X
Xecho "/KaiSu-Regular-ETen-B5-H (KaiSu-Regular-ETen-B5-H.gsf) ;" >> ${FONTMAP}
Xecho "/KaiSu-Regular-ETen-B5-V (KaiSu-Regular-ETen-B5-V.gsf) ;" >> ${FONTMAP}
END-of-kaisu/pkg-install
echo x - kaisu/pkg-plist
sed 's/^X//' >kaisu/pkg-plist << 'END-of-kaisu/pkg-plist'
Xshare/ghostscript/fonts/KaiSu-Regular
Xshare/ghostscript/fonts/KaiSu-Regular-ETen-B5-H.gsf
Xshare/ghostscript/fonts/KaiSu-Regular-ETen-B5-V.gsf
X@dirrm share/ghostscript/fonts/CMap
END-of-kaisu/pkg-plist
echo x - kaisu/files/KaiSu-Regular-ETen-B5-H.gsf
sed 's/^X//' >kaisu/files/KaiSu-Regular-ETen-B5-H.gsf << 'END-of-kaisu/files/KaiSu-Regular-ETen-B5-H.gsf'
X/KaiSu-Regular-ETen-B5-H
X/KaiSu-Regular (KaiSu-Regular)
X/ETen-B5-H (CMap/ETen-B5-H)
X
X1 index /CMap resourcestatus
X{pop pop pop}
X{runlibfile} ifelse
X/CMap findresource
X
X3 1 roll
X1 index /CIDFont resourcestatus
X{pop pop pop}
X{runlibfile} ifelse
X/CIDFont findresource
X
X[ exch ] composefont pop
END-of-kaisu/files/KaiSu-Regular-ETen-B5-H.gsf
echo x - kaisu/files/KaiSu-Regular-ETen-B5-V.gsf
sed 's/^X//' >kaisu/files/KaiSu-Regular-ETen-B5-V.gsf << 'END-of-kaisu/files/KaiSu-Regular-ETen-B5-V.gsf'
X/KaiSu-Regular-ETen-B5-V
X/KaiSu-Regular (KaiSu-Regular)
X/ETen-B5-V (CMap/ETen-B5-V)
X
X1 index /CMap resourcestatus
X{pop pop pop}
X{runlibfile} ifelse
X/CMap findresource
X
X3 1 roll
X1 index /CIDFont resourcestatus
X{pop pop pop}
X{runlibfile} ifelse
X/CIDFont findresource
X
X[ exch ] composefont pop
END-of-kaisu/files/KaiSu-Regular-ETen-B5-V.gsf
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030411132143.A828D75B>