blob: 8153a0781d8130993aed5289b644d628edc1522c (
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
64
65
66
67
68
69
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/jisx0213-fonts/jisx0213-fonts-20040425.ebuild,v 1.4 2007/01/05 17:06:11 flameeyes Exp $
IUSE=""
DESCRIPTION="Japanese fixed fonts that cover JIS0213 charset"
HOMEPAGE="http://www12.ocn.ne.jp/~imamura/jisx0213.html"
SRC_BASE1=http://www12.ocn.ne.jp/~imamura
SRC_BASE2=http://gitatsu.hp.infoseek.co.jp/bdf
SRC_URI="${SRC_BASE1}/jiskan16-2004-1.bdf.gz
${SRC_BASE1}/jiskan16-2000-1.bdf.gz
${SRC_BASE1}/jiskan16-2000-2.bdf.gz
${SRC_BASE1}/K14-2004-1.bdf.gz
${SRC_BASE1}/K14-2000-1.bdf.gz
${SRC_BASE1}/K14-2000-2.bdf.gz
${SRC_BASE1}/K12-1.bdf.gz
${SRC_BASE1}/K12-2.bdf.gz
${SRC_BASE1}/A14.bdf.gz
${SRC_BASE1}/A12.bdf.gz
${SRC_BASE2}/jiskan24-2000-1.bdf.gz
${SRC_BASE2}/jiskan24-2000-2.bdf.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="alpha amd64 ppc ~sparc x86"
DEPEND="|| ( ( x11-apps/bdftopcf
x11-apps/mkfontdir
)
virtual/x11
)"
S=${WORKDIR}
FONTDIR="/usr/share/fonts/jisx0213"
src_compile() {
for i in *.bdf; do
echo "Converting $i into pcf format..."
bdftopcf -o ${i/bdf/pcf} $i
gzip -9 ${i/bdf/pcf}
done
}
src_install() {
insinto ${FONTDIR}
doins *.pcf.gz
use X && mkfontdir ${D}/${FONTDIR}
}
pkg_postinst(){
elog "You need you add following line into 'Section \"Files\"' in"
elog "XF86Config and reboot X Window System, to use these fonts."
elog ""
elog "\t FontPath \"${FONTDIR}\""
elog ""
}
pkg_postrm(){
elog "You need you remove following line in 'Section \"Files\"' in"
elog "XF86Config, to unmerge this package completely."
elog ""
elog "\t FontPath \"${FONTDIR}\""
elog ""
}
|