diff options
author | leeym <leeym@FreeBSD.org> | 2003-02-18 11:25:26 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-02-18 11:25:26 +0800 |
commit | e46e254282a82b4a17c21a88e36e9ef9d18dcc0d (patch) | |
tree | 311c2c20da5b37e56432ee12085db6a6e6033978 /chinese | |
parent | 317f56047af60177d17c7e7bd442b5b955475378 (diff) | |
download | freebsd-ports-gnome-e46e254282a82b4a17c21a88e36e9ef9d18dcc0d.tar.gz freebsd-ports-gnome-e46e254282a82b4a17c21a88e36e9ef9d18dcc0d.tar.zst freebsd-ports-gnome-e46e254282a82b4a17c21a88e36e9ef9d18dcc0d.zip |
install five Chinese Big5 TrueType fonts
PR: 46397
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/cwtexttf/Makefile | 60 | ||||
-rw-r--r-- | chinese/cwtexttf/distinfo | 1 | ||||
-rw-r--r-- | chinese/cwtexttf/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/cwtexttf/pkg-deinstall | 24 | ||||
-rw-r--r-- | chinese/cwtexttf/pkg-descr | 9 | ||||
-rw-r--r-- | chinese/cwtexttf/pkg-install | 35 | ||||
-rw-r--r-- | chinese/cwtexttf/pkg-plist | 7 |
8 files changed, 138 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 71c92420af44..2c02adece470 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -31,6 +31,7 @@ SUBDIR += cless SUBDIR += cmexfonts SUBDIR += cwtex + SUBDIR += cwtexttf SUBDIR += cxterm SUBDIR += dia SUBDIR += dictd diff --git a/chinese/cwtexttf/Makefile b/chinese/cwtexttf/Makefile new file mode 100644 index 000000000000..6c09defb9fe0 --- /dev/null +++ b/chinese/cwtexttf/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: cwTeX Chinese TrueType fonts +# Date created: 18 Dec 2002 +# Whom: Shen Chuan-Hsing <satue@freebsd.sinica.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= cwtexttf +PORTVERSION= 1.0 +CATEGORIES= chinese x11-fonts +MASTER_SITES= ftp://ftp1.sinica.edu.tw/pub2/tex/cwTeX/cwTeX-TTF/ \ + ftp://cle.linux.org.tw/pub/fonts/ttf/unicode/cwTeX-TTF/ \ + ftp://freebsd.sinica.edu.tw/pub/statue/cwTeX-TTF/ +DISTNAME= cwtex-ttf + +MAINTAINER= statue@freebsd.sinica.edu.tw + +RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm + +USE_ZIP= YES +NO_BUILD= yes +SHAREMODE= 644 +WRKSRC= ${WRKDIR}/texmf/fonts/truetype/cwTeX +USE_XLIB= yes +FONTDIR= ${PREFIX}/share/fonts/TrueType +XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType +INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \ + WANT_GS=${WANT_GS} WITHOUT_X=${WITHOUT_X} + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 3 && !defined(WITHOUT_X) +RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common +.endif + +pre-fetch: +.if defined(WANT_GS) + @${ECHO} "Ghostscript support will be added." +.endif +.if defined(WITHOUT_X) + @${ECHO} "X Window support will NOT be added." +.endif +.if !defined(WANT_GS) && !defined(WITHOUT_X) + @${ECHO} -- + @${ECHO} "Type \"make WANT_GS=yes\" if you want Ghostscript support." + @${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support." + @${ECHO} "You can use them in combinations." + @${ECHO} -- +.endif + +do-install: +.if !exists(${FONTDIR}) + @${MKDIR} ${FONTDIR} +.endif +.for i in bbttf.ttf fttf.ttf kttf.ttf mttf.ttf rttf.ttf + @${INSTALL_DATA} ${WRKSRC}/${i} ${FONTDIR} +.endfor + @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.post.mk> diff --git a/chinese/cwtexttf/distinfo b/chinese/cwtexttf/distinfo new file mode 100644 index 000000000000..fada8b05f9c4 --- /dev/null +++ b/chinese/cwtexttf/distinfo @@ -0,0 +1 @@ +MD5 (cwtex-ttf.zip) = 9c214635fb0ea9ca7c3cc59b62ae36b8 diff --git a/chinese/cwtexttf/pkg-comment b/chinese/cwtexttf/pkg-comment new file mode 100644 index 000000000000..2a2b1a6bed5c --- /dev/null +++ b/chinese/cwtexttf/pkg-comment @@ -0,0 +1 @@ +Five Chinese Big5 TrueType fonts made by cwTeX diff --git a/chinese/cwtexttf/pkg-deinstall b/chinese/cwtexttf/pkg-deinstall new file mode 100644 index 000000000000..eeeb1b42bbfa --- /dev/null +++ b/chinese/cwtexttf/pkg-deinstall @@ -0,0 +1,24 @@ +#!/bin/sh + +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi + +PKGNAME=$1 +PREFIX=${PKG_PREFIX} +TTFM=${PKG_PREFIX}/bin/ttfm.sh + +FONTDIR=${PREFIX}/share/fonts/TrueType +FONTS="bbttf.ttf fttf.ttf kttf.ttf mttf.ttf rttf.ttf" + +if [ -r $FONTDIR/$PKGNAME ]; then + for i in `cat $FONTDIR/$PKGNAME`; do + for f in $FONTS; do + $TTFM --remove $i $f + done + done +fi + +rm -f $FONTDIR/$PKGNAME + +exit 0 diff --git a/chinese/cwtexttf/pkg-descr b/chinese/cwtexttf/pkg-descr new file mode 100644 index 000000000000..ab08a012b54c --- /dev/null +++ b/chinese/cwtexttf/pkg-descr @@ -0,0 +1,9 @@ +This port installs five Chinese Big5 TrueType fonts, includes + +HeiTi bbttf.ttf +FSongTi fttf.ttf +KaiTi kttf.ttf +MingTi mttf.ttf +YuanTi rttf.ttf + +WWW: http://ceiba.cc.ntu.edu.tw/tmwu/ diff --git a/chinese/cwtexttf/pkg-install b/chinese/cwtexttf/pkg-install new file mode 100644 index 000000000000..74462935ee80 --- /dev/null +++ b/chinese/cwtexttf/pkg-install @@ -0,0 +1,35 @@ +#!/bin/sh + +if [ "$2" = "PRE-INSTALL" ]; then + exit 0 +fi + +PKGNAME=$1 +PREFIX=${PKG_PREFIX} +TTFM=${PREFIX}/bin/ttfm.sh + +FONTDIR=${PREFIX}/share/fonts/TrueType +FONTS="bbttf.ttf fttf.ttf kttf.ttf mttf.ttf rttf.ttf" + +if [ ! -x $TTFM ]; then + echo "$TTFM not found!" + exit 1 +fi + +rm -f $FONTDIR/$PKGNAME + +if [ "X$WANT_GS" != "X" ]; then + for f in $FONTS; do + $TTFM --add gscjk $FONTDIR/$f + done + echo "gscjk" >> $FONTDIR/$PKGNAME +fi + +if [ "X$WITHOUT_X" = "X" ]; then + for f in $FONTS; do + $TTFM --add xttfm $FONTDIR/$f + done + echo "xttfm" >> $FONTDIR/$PKGNAME +fi + +exit 0 diff --git a/chinese/cwtexttf/pkg-plist b/chinese/cwtexttf/pkg-plist new file mode 100644 index 000000000000..366b2bfdca4f --- /dev/null +++ b/chinese/cwtexttf/pkg-plist @@ -0,0 +1,7 @@ +share/fonts/TrueType/bbttf.ttf +share/fonts/TrueType/fttf.ttf +share/fonts/TrueType/kttf.ttf +share/fonts/TrueType/mttf.ttf +share/fonts/TrueType/rttf.ttf +@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true +@unexec rmdir %D/share/fonts 2>/dev/null || true |