summaryrefslogtreecommitdiff
blob: 25a0a498bac48984c8ef94ce5357367757a8a84e (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit font toolchain-funcs

MY_P="${P#zh-}"

DESCRIPTION="Kuo Chauo Chinese Fonts collection in BIG5 encoding"
# no real homepage exists, but this was written by Taiwanese FreeBSD devs
HOMEPAGE="http://freebsd.sinica.edu.tw/"
SRC_URI="
	ftp://freebsd.sinica.edu.tw/pub/distfiles/${MY_P}.tar.gz
	ftp://wm28.csie.ncu.edu.tw/pub/distfiles/${MY_P}.tar.gz
	https://dev.gentoo.org/~soap/distfiles/${P}-freebsd-aa_ad.patch.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm ia64 ppc s390 sh sparc x86"
IUSE=""
# Only installs fonts
RESTRICT="strip binchecks"

BDEPEND="x11-apps/bdftopcf"

S="${WORKDIR}"
FONT_S="${S}"

PATCHES=(
	"${WORKDIR}"/${P}-freebsd-aa_ad.patch
	"${FILESDIR}"/${MY_P}-code-fixups.patch
	"${FILESDIR}"/${MY_P}-parallel-make.patch
)

FONT_SUFFIX="pcf.gz"
DOCS="00README Xdefaults.*"

src_compile() {
	emake CC="$(tc-getCC)"
}