head	1.4;
access;
symbols
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.1.1.1
	RELEASE_4_1_1:1.1.1.1
	RELEASE_4_1_0:1.1.1.1
	RELEASE_3_5_0:1.1.1.1
	RELEASE_4_0_0:1.1.1.1
	RELEASE_3_4_0:1.1.1.1
	RELEASE_3_3_0:1.1.1.1
	v1_1:1.1.1.1
	JTJANG:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2005.02.19.13.51.49;	author leeym;	state dead;
branches;
next	1.3;

1.3
date	2003.04.14.17.58.54;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.09.20.09.35;	author keith;	state Exp;
branches;
next	1.1;

1.1
date	99.07.18.00.57.34;	author foxfair;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.07.18.00.57.34;	author foxfair;	state Exp;
branches;
next	;


desc
@@


1.4
log
@- add chinese/Makefile.ttf to control install/deinstall process of all
  TrueType fonts in chinese/*ttf
- update related Makefile(s) and remove pkg-{install,pkg-deinstall,pkg-plist}
- relocate non-font files to DATADIR or DOCSDIR
- fix "unable to reomve fonts from gscjk" problem in ttfm.sh and gscjk.ttfm
- update chinese/zh-fireflyttf to 1.2.6 [1]

PR:		[1] 77438
Submitted by:	leeym
Approved by:	statue at freebsd.sinica.edu.tw
@
text
@#!/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="moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.ttf moe_kai_pc.ttf"

if [ -r $FONTDIR/$PKGNAME ]; then
    for i in `cat $FONTDIR/$PKGNAME`; do
        for f in $FONTS $DEFAULTMING $DEFAULTKAI; do
            $TTFM --remove $i $f
        done
    done
fi

rm -f $FONTDIR/$PKGNAME

exit 0
@


1.3
log
@o fix MASTER_SITES
o add new file: moe_kai_pc.ttf
  http://www.edu.tw/mandr/bbs/1-4-2/kai.htm

PR:		50091
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
Approved by:	maintainer timeout
@
text
@@


1.2
log
@Adds two new fonts, moe_sungext.ttf and moe_sungsym.ttf.  Although
the fonts are encoded in BIG5, the characters and symbols are from
several less commonly used layers in CNS.  See
http://www.edu.tw/mandr/bbs/1-4-2/1-4-2.html for more details.

Also displays messages about WANT_XX when installing.
@
text
@d12 1
a12 1
FONTS="moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.ttf"
@


1.1
log
@Initial revision
@
text
@d2 1
a5 2
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
cd ${FONTDIR}
d7 18
a24 10
# Restore fonts.dir
sed -e '/-moe-/d' -e '/-twmoe-/d' fonts.dir > fonts.dir.tmp
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
echo ${numfonts} > fonts.dir
sed -e 1d fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp

# Restore fonts.alias
sed -e '/^-moe-/d' -e '/^-twmoe-/d' fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias
@


1.1.1.1
log
@This port installs Chinese BIG5 TrueType fonts, includes Kai/LiShu/Sung
fonts. It then can be used along with X Window System or typesetting
software like CJK. Restricted usage: end user and non-commericial only.
@
text
@@
