blob: b071a08350f2da942f3d38329049d32bbbba870d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/baekmuk-fonts/baekmuk-fonts-2.1-r1.ebuild,v 1.7 2004/04/25 17:36:05 usata Exp $
IUSE="X truetype"
DESCRIPTION="Korean Baekmuk Font"
SRC_URI="http://gentoo.or.kr/distfiles/baekmuk-fonts/${P}.tar.gz"
HOMEPAGE="http://kldp.net/projects/baekmuk/"
SLOT="0"
LICENSE="BAEKMUK"
KEYWORDS="ia64 x86 alpha ~ppc sparc hppa amd64 ~mips"
DEPEND="virtual/x11
truetype? ( virtual/xft )"
RDEPEND="X? ( virtual/x11
truetype? ( virtual/xft ) )"
FONTDIR="/usr/share/fonts/baekmuk"
TTFONTDIR="/usr/share/fonts/ttf/korean/baekmuk"
src_compile() {
mkdir pcf
for i in bdf/*.bdf ; do
echo "Converting ${i##*/} into pcf format ..."
bdftopcf $i | gzip -c -9 > ${i//bdf/pcf}.gz || die
done
}
src_install () {
insinto ${FONTDIR}
doins pcf/* || die
if [ -n "`use X`" ] ; then
mkfontdir ${D}${FONTDIR}
if [ -n "`use truetype`" ] ; then
insinto ${TTFONTDIR}
doins ttf/* || die
mkfontscale ${D}${TTFONTDIR}
fc-cache ${D}${TTFONTDIR}
fi
fi
# these files seem to be 0 byte??
#dodoc README COPYRIGHT COPYRIGHT.ks hconfig.ps
}
pkg_postinst() {
if [ -n "`use X`" ] ; then
einfo
einfo "You MUST add the path of Baekmuk fonts in /etc/X11/XF86Config"
einfo ""
einfo "Section \"Files\""
einfo "\tFontPath \"${FONTDIR}\""
use truetype >/dev/null 2>&1 && \
einfo "\tFontPath \"${TTFONTDIR}\""
einfo ""
einfo "And you must restart your X server."
einfo ""
fi
}
|