From 803696de927643a62a3c771937c74e1d588c7ffd Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Sun, 18 Mar 2007 06:11:49 +0000 Subject: - Update to 1.4.2 - Rename to opendesktop-fonts - Add CONFLICTS since opendesktop-fonts have duplicate font face with fireflyttf PR: ports/110069 Submitted by: chinsan (maintainer) --- chinese/opendesktop-fonts/Makefile | 50 +++++----- chinese/opendesktop-fonts/distinfo | 9 +- chinese/opendesktop-fonts/files/local.conf-odo | 119 ++++++++++++++++++++++++ chinese/opendesktop-fonts/files/local.conf-sung | 47 ---------- chinese/opendesktop-fonts/pkg-descr | 15 ++- chinese/opendesktop-fonts/pkg-plist | 6 +- 6 files changed, 158 insertions(+), 88 deletions(-) create mode 100644 chinese/opendesktop-fonts/files/local.conf-odo delete mode 100644 chinese/opendesktop-fonts/files/local.conf-sung (limited to 'chinese') diff --git a/chinese/opendesktop-fonts/Makefile b/chinese/opendesktop-fonts/Makefile index 0a697dd6f226..0fb10eef6397 100644 --- a/chinese/opendesktop-fonts/Makefile +++ b/chinese/opendesktop-fonts/Makefile @@ -1,36 +1,27 @@ -# New ports collection makefile for: firefly TrueType Font +# New ports collection makefile for: OpenDesktop.Org.tw Font # Date created: 2 Sep 2004 # Whom: Shen Chuan-Hsing # # $FreeBSD$ # -PORTNAME= fireflyttf -PORTVERSION= 1.3.0 -PORTREVISION= 1 +PORTNAME= opendesktop-fonts +PORTVERSION= 1.4.2 CATEGORIES= chinese x11-fonts -MASTER_SITES?= http://firefly.idv.tw/apt/firefly-font/ \ - http://www.study-area.org/apt/firefly-font/ -DISTNAME?= fireflysung-${PORTVERSION} +MASTER_SITES?= ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/ \ + LOCAL/chinsan/fonts MAINTAINER= chinsan@FreeBSD.org -COMMENT= Firefly TrueType Font is combine of two arphic sung fonts +COMMENT= Ming and Kai face of OpenDesktop fonts +CONFLICTS= zh-fireflyttf-* +DIST_SUBDIR= OpenFonts NO_BUILD= yes -WRKSRC= ${WRKDIR}/${DISTNAME} -OPTIONS= LGJ_FONT "Patch for Taiwan horn" on -TTF= fireflysung.ttf +TTF= odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc .include -.if defined(WITHOUT_LGJ_FONT) -.else -PKGNAMESUFFIX+= -LGJ -MASTER_SITES= http://edt1023.sayya.org/fonts/ -DISTNAME= fireflysung-1.3.0p1 -.endif - .if !defined(WITHOUT_X11) PLIST_SUB+= X11="" .else @@ -38,21 +29,22 @@ PLIST_SUB+= X11="@comment " .endif post-extract: -.if defined(WITHOUT_LGJ_FONT) - @${DO_NADA} -.else - @${TAR} -C ${WRKSRC} -zxf ${DISTDIR}/fireflysung-1.3.0p1.tar.gz \ - fireflysung-1.3.0p1/fireflysung.ttf - @${MV} ${WRKSRC}/fireflysung-1.3.0p1/fireflysung.ttf ${WRKSRC} - @${RM} -rf ${WRKSRC}/fireflysung-1.3.0p1 -.endif + @${CHMOD} 0755 ${WRKSRC}/license + +post-patch: + @${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},; s,opendesktop,,g' \ + ${WRKSRC}/FAPIcidfmap.zh_CN ${WRKSRC}/FAPIcidfmap.zh_TW \ + ${WRKSRC}/cidfmap.zh_CN ${WRKSRC}/cidfmap.zh_TW + @${FIND} ${WRKSRC} -name "*.bak" -delete do-install: ${MKDIR} ${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/${TTF} ${FONTSDIR} - ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${FONTSDIR} +.for i in ${TTF} + ${INSTALL_DATA} ${WRKSRC}/${i} ${FONTSDIR} +.endfor + ${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${FONTSDIR} .if !defined(WITHOUT_X11) - ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${X11BASE}/etc/fonts/local.conf + ${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${X11BASE}/etc/fonts/local.conf .endif .include "${PORTSDIR}/chinese/ttfm/Makefile.ttf" diff --git a/chinese/opendesktop-fonts/distinfo b/chinese/opendesktop-fonts/distinfo index 30807c527e23..a8658e545ca5 100644 --- a/chinese/opendesktop-fonts/distinfo +++ b/chinese/opendesktop-fonts/distinfo @@ -1,6 +1,3 @@ -MD5 (fireflysung-1.3.0.tar.gz) = 99721b834ed2e84400325815deead878 -SHA256 (fireflysung-1.3.0.tar.gz) = 46e1cb4a5a7710463b2451bffb83521d94886071e817074f7b56aeaf62a660da -SIZE (fireflysung-1.3.0.tar.gz) = 7116218 -MD5 (fireflysung-1.3.0p1.tar.gz) = 231870e411d5df7e3badda0005c489e8 -SHA256 (fireflysung-1.3.0p1.tar.gz) = 93404a373d535e990385119cf2e207215525153907b52e2c1d4ca8e9b92be96c -SIZE (fireflysung-1.3.0p1.tar.gz) = 7072268 +MD5 (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = c33e83d27ac3401bc51a2b8a88705c78 +SHA256 (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = 0a629afe54a3a365ea0270ae0c0db0a76840cdd97f1d6837063f06602ca3a316 +SIZE (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = 22242516 diff --git a/chinese/opendesktop-fonts/files/local.conf-odo b/chinese/opendesktop-fonts/files/local.conf-odo new file mode 100644 index 000000000000..3a43a345d772 --- /dev/null +++ b/chinese/opendesktop-fonts/files/local.conf-odo @@ -0,0 +1,119 @@ + + + + + + MingLiU + AR PL New Sung Mono + + + PMingLiU + AR PL New Sung Mono + + + SimSun + AR PL New Sung Mono + + + + + + Song + Sun + Kai + Ming + + + + 100 + + + 180 + + + true + + + + + + Song + Sung + Ming + + false + 0 + true + false + + 16 + false + + + + + AR PL New Sung + false + + + + + + + serif + + Bitstream Vera Serif + AR PL New Sung + AR PL New Kai + + + + + sans-serif + + Bitstream Vera Sans + AR PL New Sung + AR PL New Kai + + + + + monospace + + Bitstream Vera Sans Mono + AR PL New Sung Mono + + + diff --git a/chinese/opendesktop-fonts/files/local.conf-sung b/chinese/opendesktop-fonts/files/local.conf-sung deleted file mode 100644 index 38597782af3f..000000000000 --- a/chinese/opendesktop-fonts/files/local.conf-sung +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - AR PL New Sung - true - true - false - - - - AR PL New Sung - 16 - false - true - - - - AR PL New Sung - false - - - - - - serif - - Bitstream Vera Serif - AR PL New Sung - - - - sans-serif - - Bitstream Vera Sans - AR PL New Sung - - - - monospace - - Bitstream Vera Sans Mono - AR PL New Sung - - - diff --git a/chinese/opendesktop-fonts/pkg-descr b/chinese/opendesktop-fonts/pkg-descr index f0724d3fd20b..6ffd8c26aa5c 100644 --- a/chinese/opendesktop-fonts/pkg-descr +++ b/chinese/opendesktop-fonts/pkg-descr @@ -1,4 +1,13 @@ -Firefly Truetype Font is combine of two arphic sung font and is embed -9pt, 10pt, 11pt bitmaps. +OpenDesktop Font is combine of two arphic Ming and Kai font with +12-pixel(9-point), 13-pixel(10-point), 14-pixel(10.5-point), +15-pixel(11-point), 16-pixel(12-point) embedded bitmap fonts -WWW: http://www.study-area.org/apt/firefly-font/ +NOTICE: This Truetype font contains embedded bitmap fonts made + by firefly and is released as a whole + under the ARPHIC PUBLIC LICENSE. + There are also seperate bitmap fonts made by Firefly and + released under the GENERAL PUBLIC LICENSE (GPL): + ftp://ftp.opendesktop.org.tw/odp/ODOFonts/Bitmaps/ + + +WWW: http://opendesktop.org.tw diff --git a/chinese/opendesktop-fonts/pkg-plist b/chinese/opendesktop-fonts/pkg-plist index 51ad1ebac38c..a965e9459c9a 100644 --- a/chinese/opendesktop-fonts/pkg-plist +++ b/chinese/opendesktop-fonts/pkg-plist @@ -1,3 +1,3 @@ -%%X11%%@unexec if cmp -s %%X11BASE%%/etc/fonts/local.conf %D/%%FONTSDIR%%/local.conf-sung; then rm -f %%X11BASE%%/etc/fonts/local.conf; fi -%%FONTSDIR%%/local.conf-sung -%%X11%%@exec cp %D/%%FONTSDIR%%/local.conf-sung %%X11BASE%%/etc/fonts/local.conf +%%X11%%@unexec if cmp -s %%X11BASE%%/etc/fonts/local.conf %D/%%FONTSDIR%%/local.conf-odo; then rm -f %%X11BASE%%/etc/fonts/local.conf; fi +%%FONTSDIR%%/local.conf-odo +%%X11%%@exec cp %D/%%FONTSDIR%%/local.conf-odo %%X11BASE%%/etc/fonts/local.conf -- cgit v1.2.3