diff options
author | edwin <edwin@FreeBSD.org> | 2003-12-29 05:50:13 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-12-29 05:50:13 +0000 |
commit | 92e8aacb833416cc5fc018378195f447d77e7163 (patch) | |
tree | d53825ff0351f4602acb84ea55e459403d12fa08 | |
parent | d369bd46dfb908d07660f31413b22a307e6469c8 (diff) | |
download | FreeBSD-ports-92e8aacb833416cc5fc018378195f447d77e7163.zip FreeBSD-ports-92e8aacb833416cc5fc018378195f447d77e7163.tar.gz |
New port: chinese/mingunittf
This port installs Chinese Big5HKSCS TrueType Mingti fonts.
WWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html
PR: ports/59793
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/mingunittf/Makefile | 44 | ||||
-rw-r--r-- | chinese/mingunittf/distinfo | 1 | ||||
-rw-r--r-- | chinese/mingunittf/pkg-descr | 3 | ||||
-rw-r--r-- | chinese/mingunittf/pkg-plist | 7 |
5 files changed, 56 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index da839aa..60158f2 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -65,6 +65,7 @@ SUBDIR += linux-mozillafirebird-zh_TW SUBDIR += lunar SUBDIR += metalist + SUBDIR += mingunittf SUBDIR += miniChinput SUBDIR += mkisofs SUBDIR += moefonts-cid diff --git a/chinese/mingunittf/Makefile b/chinese/mingunittf/Makefile new file mode 100644 index 0000000..d8eae9d5 --- /dev/null +++ b/chinese/mingunittf/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: HKSCS Chinese TrueType fonts +# Date created: 29 Nov 2003 +# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= mingunittf +PORTVERSION= 1.08 +CATEGORIES= chinese x11-fonts +MASTER_SITES= http://www.info.gov.hk/digital21/chi/hkscs/download/ +DISTNAME= ming_uni.ttf +EXTRACT_SUFX= .gz + +MAINTAINER= ports@freebsd.org +COMMENT= Chinese Big5HKSCS TrueType fonts + +BUILD_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \ + fc-cache:${PORTSDIR}/x11-fonts/fontconfig +RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \ + fc-cache:${PORTSDIR}/x11-fonts/fontconfig + +EXTRACT_CMD= ${GZIP_CMD} +EXTRACT_BEFORE_ARGS= -dc +EXTRACT_AFTER_ARGS= > ${WRKSRC}/minguni.ttf +NO_BUILD= yes +SHAREMODE= 644 +WRKSRC= ${WRKDIR} +USE_XLIB= yes +FONTDIR= ${PREFIX}/share/fonts/TrueType +XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType +INSTALL_ENV= PKG_PREFIX=${PREFIX} + +.include <bsd.port.pre.mk> + +do-install: + @${MKDIR} ${FONTDIR} + @${INSTALL_DATA} ${WRKSRC}/minguni.ttf ${FONTDIR} + @${ECHO_MSG} "===> Running ttfm.sh" + -@${PREFIX}/bin/ttfm.sh --add xttfm minguni.ttf + @${ECHO_MSG} "===> Running fc-cache" + -@${X11BASE}/bin/fc-cache -f -v ${XFONTDIR} + +.include <bsd.port.post.mk> diff --git a/chinese/mingunittf/distinfo b/chinese/mingunittf/distinfo new file mode 100644 index 0000000..f6100cf --- /dev/null +++ b/chinese/mingunittf/distinfo @@ -0,0 +1 @@ +MD5 (ming_uni.ttf.gz) = 336c9bc8944b34ba0e3eeb1f2999eb1f diff --git a/chinese/mingunittf/pkg-descr b/chinese/mingunittf/pkg-descr new file mode 100644 index 0000000..d6a0250 --- /dev/null +++ b/chinese/mingunittf/pkg-descr @@ -0,0 +1,3 @@ +This port installs Chinese Big5HKSCS TrueType Mingti fonts. + +WWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html diff --git a/chinese/mingunittf/pkg-plist b/chinese/mingunittf/pkg-plist new file mode 100644 index 0000000..d8abce0 --- /dev/null +++ b/chinese/mingunittf/pkg-plist @@ -0,0 +1,7 @@ +@unexec %D/bin/ttfm.sh --remove xttfm %D/share/fonts/TrueType/minguni.ttf || true +share/fonts/TrueType/minguni.ttf +@exec %D/bin/ttfm.sh --add xttfm %D/share/fonts/TrueType/minguni.ttf || true +@unexec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true +@exec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true +@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true +@unexec rmdir %D/share/fonts 2>/dev/null || true |