summaryrefslogtreecommitdiff
blob: 217d9c6f4704ac6bcd9a04b36d17f341a0753aa4 (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
# Copyright 2009-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit font

DESCRIPTION="Droid derived Sans-Serif style CJK font"
HOMEPAGE="http://wenq.org/wqy2/index.cgi https://sourceforge.net/projects/wqy/"
SRC_URI="mirror://sourceforge/wqy/${P/_/-}.tar.gz
	https://dev.gentoo.org/~dlan/distfiles/${PN}.ttc.xd3"
S="${WORKDIR}/${PN}"

LICENSE="Apache-2.0 GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc ppc64 ~riscv x86"
IUSE=""

# Only installs fonts
RESTRICT="strip binchecks"

DOCS=( AUTHORS.txt ChangeLog.txt README.txt )

FONT_SUFFIX="ttc"

BDEPEND="dev-util/xdelta:3"

src_prepare() {
	xdelta3 -f -d -s wqy-microhei.ttc "${DISTDIR}"/wqy-microhei.ttc.xd3 \
		wqy-microhei.ttc || die
	default
}