aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-12-29 13:50:13 +0800
committeredwin <edwin@FreeBSD.org>2003-12-29 13:50:13 +0800
commit92e8aacb833416cc5fc018378195f447d77e7163 (patch)
treed53825ff0351f4602acb84ea55e459403d12fa08
parentd369bd46dfb908d07660f31413b22a307e6469c8 (diff)
downloadfreebsd-ports-gnome-92e8aacb833416cc5fc018378195f447d77e7163.tar.gz
freebsd-ports-gnome-92e8aacb833416cc5fc018378195f447d77e7163.tar.zst
freebsd-ports-gnome-92e8aacb833416cc5fc018378195f447d77e7163.zip
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/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