Date: Fri, 3 Sep 2004 16:27:13 +0800 (CST) From: statue <statue@freebsd.netlab.cse.yzu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/71332: New port: chinese/fireflyttf Message-ID: <200409030827.i838RDvf032465@freebsd.netlab.cse.yzu.edu.tw> Resent-Message-ID: <200409030830.i838UKv3090754@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 71332 >Category: ports >Synopsis: New port: chinese/fireflyttf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Sep 03 08:30:20 GMT 2004 >Closed-Date: >Last-Modified: >Originator: statue >Release: FreeBSD 4.10-STABLE i386 >Organization: >Environment: System: FreeBSD freebsd.netlab.cse.yzu.edu.tw 4.10-STABLE FreeBSD 4.10-STABLE #1: Tue Jun 1 18:37:58 CST 2004 statue@freebsd.netlab.cse.yzu.edu.tw:/usr/obj/usr/src/sys/statue i386 >Description: Firefly Truetype Font is combine of two arphic sung font and is embed 9pt, 10pt, 11pt bitmaps. WWW: http://www.study-area.org/apt/firefly-font/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # fireflyttf/ # fireflyttf/Makefile # fireflyttf/distinfo # fireflyttf/files # fireflyttf/pkg-descr # fireflyttf/pkg-plist # fireflyttf/files/local.conf-sung # echo c - fireflyttf/ mkdir -p fireflyttf/ > /dev/null 2>&1 echo x - fireflyttf/Makefile sed 's/^X//' >fireflyttf/Makefile << 'END-of-fireflyttf/Makefile' X# New ports collection makefile for: firefly TrueType Font X# Date created: 2 Sep 2004 X# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> X# X# $FreeBSD$ X# X XPORTNAME= fireflyttf XPORTVERSION= 1.1.0 XCATEGORIES= chinese x11-fonts XMASTER_SITES= http://www.study-area.org/apt/firefly-font/ XDISTNAME= fireflysung.ttf XEXTRACT_SUFX= .gz X XMAINTAINER= statue@freebsd.sinica.edu.tw XCOMMENT= Firefly TrueType Font is combine of two arphic sung fonts X XBUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig \ X ttfm.sh:${PORTSDIR}/chinese/ttfm XRUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig \ X ttfm.sh:${PORTSDIR}/chinese/ttfm X XNO_BUILD= yes XWRKSRC= ${WRKDIR} XUSE_XLIB= yes XFONTDIR= ${PREFIX}/share/fonts/TrueType XXFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType XEXTRACT_AFTER_ARGS= > ${DISTNAME} X X.include <bsd.port.pre.mk> X Xdo-install: X @${MKDIR} ${FONTDIR} X @${INSTALL_DATA} ${WRKSRC}/${DISTNAME} ${FONTDIR} X @${ECHO_MSG} "===> Running ttfm.sh" X -@${PREFIX}/bin/ttfm.sh --add xttfm ${DISTNAME} X @${ECHO_MSG} "===> Running fc-cache" X -@${X11BASE}/bin/fc-cache -f -v ${XFONTDIR} X ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${FONTDIR} X ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${X11BASE}/etc/fonts/local.conf X X.include <bsd.port.post.mk> END-of-fireflyttf/Makefile echo x - fireflyttf/distinfo sed 's/^X//' >fireflyttf/distinfo << 'END-of-fireflyttf/distinfo' XMD5 (fireflysung.ttf.gz) = 7b443608f2024567d631ab831b26f6a5 XSIZE (fireflysung.ttf.gz) = 7529763 END-of-fireflyttf/distinfo echo c - fireflyttf/files mkdir -p fireflyttf/files > /dev/null 2>&1 echo x - fireflyttf/pkg-descr sed 's/^X//' >fireflyttf/pkg-descr << 'END-of-fireflyttf/pkg-descr' XFirefly Truetype Font is combine of two arphic sung font and is embed X9pt, 10pt, 11pt bitmaps. X XWWW: http://www.study-area.org/apt/firefly-font/ END-of-fireflyttf/pkg-descr echo x - fireflyttf/pkg-plist sed 's/^X//' >fireflyttf/pkg-plist << 'END-of-fireflyttf/pkg-plist' X@unexec if cmp -s %%X11BASE%%/etc/fonts/local.conf %D/share/fonts/TrueType/local.conf-sung; then rm -f %%X11BASE%%/etc/fonts/local.conf; fi Xshare/fonts/TrueType/local.conf-sung X@exec cp %D/share/fonts/TrueType/local.conf-sung %%X11BASE%%/etc/fonts/local.conf X@unexec %D/bin/ttfm.sh --remove xttfm %D/share/fonts/TrueType/fireflysung.ttf || true Xshare/fonts/TrueType/fireflysung.ttf X@exec %D/bin/ttfm.sh --add xttfm %D/share/fonts/TrueType/fireflysung.ttf || true X@unexec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true X@exec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true X@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true X@unexec rmdir %D/share/fonts 2>/dev/null || true END-of-fireflyttf/pkg-plist echo x - fireflyttf/files/local.conf-sung sed 's/^X//' >fireflyttf/files/local.conf-sung << 'END-of-fireflyttf/files/local.conf-sung' X<?xml version="1.0"?> X<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> X<fontconfig> X <!-- Firefly Truetype Font --> X <match target="font"> X <test name="family"><string>AR PL New Sung</string></test> X <edit name="antialias"><bool>true</bool></edit> X <edit name="hinting"><bool>true</bool></edit> X <edit name="autohint"><bool>false</bool></edit> X </match> X X <match target="font"> X <test name="family"><string>AR PL New Sung</string></test> X <test name="size" compare="less_eq"><int>16</int></test> X <edit name="antialias" mode="assign"><bool>false</bool></edit> X <edit name="hinting" mode="assign"><bool>true</bool></edit> X </match> X X <match target="font"> X <test name="family"><string>AR PL New Sung</string></test> X <edit name="globaladvance"><bool>false</bool></edit> X </match> X <!-- end Firefly Truetype Font --> X X <!-- x11-fonts/bitstream-vera --> X <alias> X <family>serif</family> X <prefer> X <family>Bitstream Vera Serif</family> X <family>AR PL New Sung</family> X </prefer> X </alias> X <alias> X <family>sans-serif</family> X <prefer> X <family>Bitstream Vera Sans</family> X <family>AR PL New Sung</family> X </prefer> X </alias> X <alias> X <family>monospace</family> X <prefer> X <family>Bitstream Vera Sans Mono</family> X <family>AR PL New Sung</family> X </prefer> X </alias> X</fontconfig> END-of-fireflyttf/files/local.conf-sung exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409030827.i838RDvf032465>