blob: 211203df978e199a34503b182f5d9c87a863a408 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit font font-ebdftopcf
DESCRIPTION="Japanese fixed fonts that cover JIS0213 charset"
#HOMEPAGE="http://www12.ocn.ne.jp/~imamura/jisx0213.html"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="mirror://gentoo/jiskan16-2004-1.bdf.gz
mirror://gentoo/jiskan16-2000-1.bdf.gz
mirror://gentoo/jiskan16-2000-2.bdf.gz
mirror://gentoo/K14-2004-1.bdf.gz
mirror://gentoo/K14-2000-1.bdf.gz
mirror://gentoo/K14-2000-2.bdf.gz
mirror://gentoo/K12-1.bdf.gz
mirror://gentoo/K12-2.bdf.gz
mirror://gentoo/A14.bdf.gz
mirror://gentoo/A12.bdf.gz
mirror://gentoo/jiskan24-2000-1.bdf.gz
mirror://gentoo/jiskan24-2000-2.bdf.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~loong ppc ~riscv ~s390 sparc x86"
IUSE=""
RESTRICT="binchecks strip"
BDEPEND="media-gfx/mkbold-mkitalic"
S="${WORKDIR}"
FONT_PN="${PN/-fonts/}"
FONTDIR="/usr/share/fonts/${FONT_PN}"
src_compile() {
einfo "Making bold and italic faces..."
for bdf in *.bdf; do
mkbold -r -L ${bdf} >${bdf%.bdf}b.bdf || die
mkitalic ${bdf} >${bdf%.bdf}i.bdf || die
mkbolditalic -r -L ${bdf} >${bdf%.bdf}bi.bdf || die
done
font-ebdftopcf_src_compile
}
pkg_postinst() {
font_pkg_postinst
if use X; then
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 ""
fi
}
|