Bug 59793 - New port: chinese/mingunittf
Summary: New port: chinese/mingunittf
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-29 16:10 UTC by statue
Modified: 2003-12-29 05:50 UTC (History)
0 users

See Also:


Attachments
file.shar (3.36 KB, text/plain)
2003-11-29 16:10 UTC, statue
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description statue 2003-11-29 16:10:01 UTC
This port installs Chinese Big5HKSCS TrueType Mingti fonts. 

WWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html
Comment 1 statue 2003-11-29 16:36:40 UTC
# 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:
#
#	mingunittf/
#	mingunittf/Makefile
#	mingunittf/distinfo
#	mingunittf/pkg-descr
#	mingunittf/pkg-plist
#
echo c - mingunittf/
mkdir -p mingunittf/ > /dev/null 2>&1
echo x - mingunittf/Makefile
sed 's/^X//' >mingunittf/Makefile << 'END-of-mingunittf/Makefile'
X# New ports collection makefile for:	HKSCS Chinese TrueType fonts
X# Date created:		29 Nov 2003
X# Whom:			Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mingunittf
XPORTVERSION=	1.08
XCATEGORIES=	chinese x11-fonts
XMASTER_SITES=	http://www.info.gov.hk/digital21/chi/hkscs/download/
XDISTNAME=	ming_uni.ttf
XEXTRACT_SUFX=	.gz
X
XMAINTAINER=	ports@freebsd.org
XCOMMENT=	Chinese Big5HKSCS TrueType fonts
X
XBUILD_DEPENDS=	ttfm.sh:${PORTSDIR}/chinese/ttfm \
X		fc-cache:${PORTSDIR}/x11-fonts/fontconfig
XRUN_DEPENDS=	ttfm.sh:${PORTSDIR}/chinese/ttfm \
X		fc-cache:${PORTSDIR}/x11-fonts/fontconfig
X
XEXTRACT_CMD=	${GZIP_CMD}
XEXTRACT_BEFORE_ARGS=	-dc
XEXTRACT_AFTER_ARGS=	> ${WRKSRC}/minguni.ttf
XNO_BUILD=	yes
XSHAREMODE=	644
XWRKSRC=		${WRKDIR}
XUSE_XLIB=	yes
XFONTDIR=	${PREFIX}/share/fonts/TrueType
XXFONTDIR=	${X11BASE}/lib/X11/fonts/TrueType
XINSTALL_ENV=	PKG_PREFIX=${PREFIX}
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	@${MKDIR} ${FONTDIR}
X	@${INSTALL_DATA} ${WRKSRC}/minguni.ttf ${FONTDIR}
X	@${ECHO_MSG} "===> Running ttfm.sh"
X	-@${PREFIX}/bin/ttfm.sh --add xttfm minguni.ttf
X	@${ECHO_MSG} "===> Running fc-cache"
X	-@${X11BASE}/bin/fc-cache -f -v ${XFONTDIR}
X
X.include <bsd.port.post.mk>
END-of-mingunittf/Makefile
echo x - mingunittf/distinfo
sed 's/^X//' >mingunittf/distinfo << 'END-of-mingunittf/distinfo'
XMD5 (ming_uni.ttf.gz) = 336c9bc8944b34ba0e3eeb1f2999eb1f
END-of-mingunittf/distinfo
echo x - mingunittf/pkg-descr
sed 's/^X//' >mingunittf/pkg-descr << 'END-of-mingunittf/pkg-descr'
XThis port installs Chinese Big5HKSCS TrueType Mingti fonts. 
X
XWWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html
END-of-mingunittf/pkg-descr
echo x - mingunittf/pkg-plist
sed 's/^X//' >mingunittf/pkg-plist << 'END-of-mingunittf/pkg-plist'
X@unexec %D/bin/ttfm.sh --remove xttfm %D/share/fonts/TrueType/minguni.ttf || true
Xshare/fonts/TrueType/minguni.ttf
X@exec %D/bin/ttfm.sh --add xttfm %D/share/fonts/TrueType/minguni.ttf || true
X@unexec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
X@exec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
X@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true
X@unexec rmdir %D/share/fonts 2>/dev/null || true
END-of-mingunittf/pkg-plist
exit
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2003-12-03 14:40:41 UTC
Class Changed
From-To: update->change-request

accurate class
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2003-12-29 05:50:19 UTC
State Changed
From-To: open->closed

Commited, thanks!