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.2
	RELEASE_5_1_0:1.2
	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
	v1_0:1.1.1.1
	JTJANG:1.1.1;
locks; strict;
comment	@# @;


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

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

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

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

1.1.1.1
date	99.10.19.08.07.46;	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="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"

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

rm -f $FONTDIR/$PKGNAME

exit 0
@


1.3
log
@remove unused code.
assign maintainership.

PR:		57181
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@@


1.2
log
@Remove the old brute-force script that generates thousands of XLFD.
Many of them are unnecessary, and most of the task are handled by
ttfm now.

It's also aware of chinese/{CJK, ghostscript6}.  It supports XFree86
3.x or 4.x by default.  Users only need to define GS6=yes or CJK=yes
when installing, then it'll do most of the work.  CJK and ghostscript6
ports should specify their respective variables via DEPENDS_ARGS.

chinese/{moettf,moefonts-cid,wangttf} will have similar changes.
@
text
@a12 2
DEFAULTMING="default_ming-big5-0.ttf default_ming-gb2312.1980-0.ttf"
DEFAULTKAI="default_kai-big5-0.ttf default_kai-gb2312.1980-0.ttf"
d16 1
a16 1
        for f in $FONTS $DEFAULTMING $DEFAULTKAI; do
@


1.1
log
@Initial revision
@
text
@d2 1
a5 2
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
cd ${FONTDIR}
d7 20
a26 10
# Restore fonts.dir
sed -e '/ -ar-/d' -e '/ -arphic-/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 '/^-ar-/d' -e '/^-arphic-/d' fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias
@


1.1.1.1
log
@PR:			14393
Submitted by:		Keith Jang <jtjang@@gcn.net.tw>
Import new port: Free-distributable Chinese Big5/GB TTFs.

This port installs four Chinese Big5/GB TrueType fonts, includes
Kaiti/Mingti(Big5) and Kaiti/Sungti(GB). It then can be used along
with X Window System or typesetting software like CJK. Thanks to
Arphic Technology, you may freely distribute these high-quality
fonts under a GPL-based license. See ARPHIC_*.TXT for details.
@
text
@@
