diff options
author | John Marino <marino@FreeBSD.org> | 2014-07-19 16:47:58 +0800 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-07-19 16:47:58 +0800 |
commit | f053d91c1ada07a44573c970059f132e97abab9a (patch) | |
tree | c59db4b01d874cd6649dd34bd160c5670031ec50 /chinese | |
parent | a2a33d5199a6399a98827bcb9a4145ec91e8934e (diff) | |
download | freebsd-ports-gnome-f053d91c1ada07a44573c970059f132e97abab9a.tar.gz freebsd-ports-gnome-f053d91c1ada07a44573c970059f132e97abab9a.tar.zst freebsd-ports-gnome-f053d91c1ada07a44573c970059f132e97abab9a.zip |
chinese/moettf: Unbreak, stage, restore public distfiles
This port was in bad shape!
1) It had a MASTER_SITES definition pointing to a FreeBSD mirror. This
was a circular dependency that broke when the "real" master site
domain disappeared. Fix this by hosting at LOCAL/MARINO
2) The kai-pc ttf font was never installed (always broken)
3) It broke (more) with recent chinese font work
4) It included makefile.tty by absolute ${PORTDIR} instead of
correct ${.CURDIR}, which also unnecessarily required <pre>, <post>
5) It wasn't staged
So fix all that. Also improve efficiency of staging by copying directly
from distfiles to stage directory instead of first copying to WRKSRC then
STAGEDIR. The post-install target is no longer needed, nor is the
pkg-plist file.
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/moettf/Makefile | 53 | ||||
-rw-r--r-- | chinese/moettf/pkg-plist | 2 |
2 files changed, 22 insertions, 33 deletions
diff --git a/chinese/moettf/Makefile b/chinese/moettf/Makefile index 34cefc899490..3aa7161b75b8 100644 --- a/chinese/moettf/Makefile +++ b/chinese/moettf/Makefile @@ -3,56 +3,47 @@ PORTNAME= moettf PORTVERSION= 2.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= chinese x11-fonts -MASTER_SITES= http://ftp.riken.go.jp/pub/FreeBSD/distfiles/zh-moettf/ \ - http://ftp.math.uni-bielefeld.de/pub/unix/FreeBSD/distfiles/zh-moettf/ -DISTFILES= moe_kai.ttf moe_sung.ttf edustds1.exe edustds2.exe \ - edustd-15.exe kai-pc.ttf +MASTER_SITES= LOCAL/MARINO +DISTFILES= edustds1.exe edustds2.exe edustd-15.exe \ + kai-pc.ttf moe_kai.ttf moe_sung.ttf +DIST_SUBDIR= zh-moettf MAINTAINER= ports@FreeBSD.org COMMENT= Three Chinese BIG5 TrueType fonts: Kai LiShu Sung SungExt -EXTRACT_DEPENDS=unrar:${PORTSDIR}/archivers/unrar - -DIST_SUBDIR= zh-moettf +EXTRACT_DEPENDS= unrar:${PORTSDIR}/archivers/unrar -NO_CDROM= Contact Taiwan's Ministry of Education for commercial use +NO_CDROM= Contact Ministry of Education of Taiwan for commercial use NO_BUILD= yes NO_WRKSUBDIR= yes TTF_DEFAULT= moe_sung.ttf TTF_DEFAULTKAI= moe_kai.ttf -TTF= moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.ttf +EXE_TTF= moe_lishu.ttf moe_sungext.ttf moe_sungsym.ttf +REG_TTF= kai-pc.ttf moe_kai.ttf moe_sung.ttf +TTF= ${EXE_TTF} ${REG_TTF} -NO_STAGE= yes do-extract: @${MKDIR} ${WRKSRC} @unrar x ${DISTDIR}/${DIST_SUBDIR}/edustd-15.exe ${WRKSRC} - @${MV} ${WRKSRC}/Edustd-15.TTF ${WRKSRC}/moe_lishu.ttf @unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds1.exe ${WRKSRC} - @${MV} ${WRKSRC}/edustds1.ttf ${WRKSRC}/moe_sungext.ttf @unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds2.exe ${WRKSRC} - @${MV} ${WRKSRC}/edustds2.ttf ${WRKSRC}/moe_sungsym.ttf - @${CP} ${DISTDIR}/${DIST_SUBDIR}/moe_kai.ttf ${WRKSRC} - @${CP} ${DISTDIR}/${DIST_SUBDIR}/moe_sung.ttf ${WRKSRC} + @(cd ${WRKSRC}; \ + ${MV} Edustd-15.TTF moe_lishu.ttf ; \ + ${MV} edustds1.ttf moe_sungext.ttf ; \ + ${MV} edustds2.ttf moe_sungsym.ttf ) do-install: - @${MKDIR} ${FONTSDIR} -.for ttf in ${TTF} - ${INSTALL_DATA} ${WRKSRC}/${ttf} ${FONTSDIR} + @${MKDIR} ${STAGEDIR}${FONTSDIR} +.for ttf in ${EXE_TTF} + ${INSTALL_DATA} ${WRKSRC}/${ttf} ${STAGEDIR}${FONTSDIR}/${ttf} .endfor - -post-install: -.if !defined(WITHOUT_X11) -.for f in fonts.dir fonts.alias - ${SED} -e "s/ t w m o e _ k a i/twmoe_kai/g" \ - -e "s/ ° ê ¦ r ¼ Ð · Ç § º Å é/twmoe_sung/g" \ - ${XFONTSDIR}/${f} > ${XFONTSDIR}/${f}.$$ && \ - ${MV} ${XFONTSDIR}/${f}.$$ ${XFONTSDIR}/${f} +.for ttf in ${REG_TTF} + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${ttf} \ + ${STAGEDIR}${FONTSDIR}/${ttf} .endfor -.endif -.include <bsd.port.pre.mk> -.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf" -.include <bsd.port.post.mk> +.include "${.CURDIR}/../ttfm/Makefile.ttf" +.include <bsd.port.mk> diff --git a/chinese/moettf/pkg-plist b/chinese/moettf/pkg-plist deleted file mode 100644 index afbfc8025642..000000000000 --- a/chinese/moettf/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -@exec sed -e "s/ ° ê ¦ r ¼ Ð · Ç § º Å é/twmoe_sung/g" -e "s/ t w m o e _ k a i/twmoe_kai/g" %%LOCALBASE%%/%%XFONTSDIR%%/fonts.dir > %%LOCALBASE%%/%%XFONTSDIR%%/fonts.dir.tmp && mv %%LOCALBASE%%/%%XFONTSDIR%%/fonts.dir.tmp %%LOCALBASE%%/%%XFONTSDIR%%/fonts.dir -@exec sed -e "s/ ° ê ¦ r ¼ Ð · Ç § º Å é/twmoe_sung/g" -e "s/ t w m o e _ k a i/twmoe_kai/g" %%LOCALBASE%%/%%XFONTSDIR%%/fonts.alias > %%LOCALBASE%%/%%XFONTSDIR%%/fonts.alias.tmp && mv %%LOCALBASE%%/%%XFONTSDIR%%/fonts.alias.tmp %%LOCALBASE%%/%%XFONTSDIR%%/fonts.alias |