summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-12-29 05:50:13 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-12-29 05:50:13 +0000
commit8c0f938203beb11d82af54347620d211cbb478a7 (patch)
tree1810a5c4ac12fdffc085d89905562230a1c78f7f /chinese
parentUpdate to blah: added support for MAILDIR format, fixed timings (diff)
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>
Notes
Notes: svn path=/head/; revision=96836
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/mingunittf/Makefile44
-rw-r--r--chinese/mingunittf/distinfo1
-rw-r--r--chinese/mingunittf/pkg-descr3
-rw-r--r--chinese/mingunittf/pkg-plist7
5 files changed, 56 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index da839aa9a291..60158f2e6354 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 000000000000..d8eae9d5dd7f
--- /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 000000000000..f6100cf65147
--- /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 000000000000..d6a025073d73
--- /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 000000000000..d8abce05d9e4
--- /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