diff options
author | hrs <hrs@FreeBSD.org> | 2007-04-28 21:03:16 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2007-04-28 21:03:16 +0800 |
commit | ed1f4c541c95c56d099b48bb52ff53d5c34806bb (patch) | |
tree | 809af14cbb9cad7d1a9b177b46be43628c281326 /print/gsfonts | |
parent | 670b9382a20f633d6c0cb952c05cccabeb8a118f (diff) | |
download | freebsd-ports-gnome-ed1f4c541c95c56d099b48bb52ff53d5c34806bb.tar.gz freebsd-ports-gnome-ed1f4c541c95c56d099b48bb52ff53d5c34806bb.tar.zst freebsd-ports-gnome-ed1f4c541c95c56d099b48bb52ff53d5c34806bb.zip |
Cleanup ghostscript-gnu-commfont and related CJK font support meta ports.
Changes include:
- Set WITH_GHOSTSCRIPT_GNU forcibly.
- Use PostScript virtual fonts to handle CJK CID/TT-CID emulated fonts.
CIDFnmap still works but when a font is both in Resource/Font or
Resource/CIDFont and in CIDFnmap, the former entry will be used.
For the actual font mapping, see files in Resource/CIDFont/*.
So, note that you need to remove (or rename) the virtual font if you use
CIDFnmap for the moment. This is still a transitional measure and
more consistent font management thoughout the ports collection should
be added later.
This is just an internal structural change; default font mapping has
not been changed.
- Add Chinese font support to print/gsfonts (but no dependency added).
Diffstat (limited to 'print/gsfonts')
-rw-r--r-- | print/gsfonts/Makefile | 19 | ||||
-rw-r--r-- | print/gsfonts/pkg-plist | 3 |
2 files changed, 17 insertions, 5 deletions
diff --git a/print/gsfonts/Makefile b/print/gsfonts/Makefile index 68f14e4970c8..a06a5f865cfa 100644 --- a/print/gsfonts/Makefile +++ b/print/gsfonts/Makefile @@ -7,7 +7,7 @@ PORTNAME= gsfonts PORTVERSION= 8.11 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= print x11-fonts MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ \ ${MASTER_SITE_TEX_CTAN:S/$/:CTAN/} @@ -33,7 +33,11 @@ SUB_LIST= FONTSDIR="${FONTSDIR}" FONTSDIR?= ${PREFIX}/share/ghostscript/fonts GS_FONTS_STD= ghostscript-fonts-std-8.11.tar.gz GS_FONTS_OTHER= ghostscript-fonts-other-6.0.tar.gz - +CJKFONTS?= TrueType/ipam.ttf Ryumin-Light.ttf \ + TrueType/ipag.ttf GothicBBB-Medium.ttf \ + TrueType/bkai00mp.ttf STHeiti-Regular.ttf \ + TrueType/gbsn00lp.ttf STSong-Light.ttf \ + TrueType/bsmi00lp.ttf MSung-Light.ttf .SILENT: post-patch: @@ -60,9 +64,14 @@ install-fonts: ${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale ${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale.urw ${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/fonts/Fontmap ${FONTSDIR} - cd ${FONTSDIR} && \ - ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/ipam.ttf Ryumin-Light.ttf; \ - ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/ipag.ttf GothicBBB-Medium.ttf + set -- ${CJKFONTS}; while :; do \ + case $$# in \ + 0) break ;; \ + *) LHS=$$1; shift; RHS=$$1; shift; \ + cd ${FONTSDIR} \ + && ${LN} -s -f ${PREFIX}/share/fonts/$${LHS} $${RHS}; \ + esac; \ + done install-docs: .if !defined(NOPORTDOCS) diff --git a/print/gsfonts/pkg-plist b/print/gsfonts/pkg-plist index 2becf2df2335..37445171f8e5 100644 --- a/print/gsfonts/pkg-plist +++ b/print/gsfonts/pkg-plist @@ -154,6 +154,9 @@ %%FONTSDIR%%/z003034l.pfm %%FONTSDIR%%/Ryumin-Light.ttf %%FONTSDIR%%/GothicBBB-Medium.ttf +%%FONTSDIR%%/STHeiti-Regular.ttf +%%FONTSDIR%%/STSong-Light.ttf +%%FONTSDIR%%/MSung-Light.ttf %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README.tweaks |