blob: fe016c8736690bd6ab515792d09404a1055872b5 (
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
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit font
DESCRIPTION="The package of IBM's typeface"
HOMEPAGE="https://github.com/IBM/plex"
SRC_URI="https://github.com/IBM/plex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="otf +ttf"
REQUIRED_USE="^^ ( otf ttf )"
S="${WORKDIR}/${P/ibm-}"
DOCS=( README.md )
FONT_SUFFIX=""
src_install() {
if use otf; then
FONT_SUFFIX+="otf"
FONT_S="
"${S}"/IBM-Plex-Arabic/fonts/complete/otf
"${S}"/IBM-Plex-Devanagari/fonts/complete/otf
"${S}"/IBM-Plex-Mono/fonts/complete/otf
"${S}"/IBM-Plex-Sans-Condensed/fonts/complete/otf
"${S}"/IBM-Plex-Sans-Hebrew/fonts/complete/otf
"${S}"/IBM-Plex-Sans/fonts/complete/otf
"${S}"/IBM-Plex-Serif/fonts/complete/otf
"${S}"/IBM-Plex-Thai/fonts/complete/otf
"${S}"/IBM-Plex-Sans-Thai-Looped/fonts/complete/otf"
fi
if use ttf; then
FONT_SUFFIX+="ttf"
FONT_S="
"${S}"/IBM-Plex-Arabic/fonts/complete/ttf
"${S}"/IBM-Plex-Devanagari/fonts/complete/ttf
"${S}"/IBM-Plex-Mono/fonts/complete/ttf
"${S}"/IBM-Plex-Sans-Condensed/fonts/complete/ttf
"${S}"/IBM-Plex-Sans-Hebrew/fonts/complete/ttf
"${S}"/IBM-Plex-Sans/fonts/complete/ttf
"${S}"/IBM-Plex-Serif/fonts/complete/ttf
"${S}"/IBM-Plex-Thai/fonts/complete/ttf
"${S}"/IBM-Plex-Sans-Thai-Looped/fonts/complete/ttf"
fi
font_src_install
}
|