summaryrefslogtreecommitdiff
path: root/media-fonts/wqy-unibit/wqy-unibit-1.1.0_p1-r1.ebuild
blob: a79beaee0b3557cdfc5a7cb62c865a1087ead3fe (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit font

DESCRIPTION="WenQuanYi Unibit CJK font"
HOMEPAGE="http://wenq.org/wqy2/index.cgi https://sourceforge.net/projects/wqy/"
SRC_URI="https://downloads.sourceforge.net/wqy/${PN}-bdf-${PV/_p/-}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~loong ~riscv x86"
IUSE=""

# Only installs fonts
RESTRICT="strip binchecks"

BDEPEND="media-gfx/ebdftopcf"

DOCS=( AUTHORS ChangeLog README )

FONT_SUFFIX="pcf.gz"

src_prepare() {
	default
	sed -i -e "s|$range=shift(ARGV);|$range=shift(@ARGV);|g" bdfmerge.pl || die
}

src_compile() {
	emake
	gzip -9 wqy-unibit.pcf || die
}