blob: f8b2526afc60fa0cea394b4cc96c70644fee1ac4 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit font python-any-r1
DESCRIPTION="A Helvetica/Times/Courier replacement TrueType font set, courtesy of Red Hat"
HOMEPAGE="https://pagure.io/liberation-fonts"
SRC_URI="!fontforge? ( https://releases.pagure.org/${PN}/${PN}-ttf-${PV}.tar.gz )
fontforge? ( https://releases.pagure.org/${PN}/${P}.tar.gz )"
KEYWORDS="alpha amd64 arm arm64 ia64 ppc ppc64 x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-solaris"
SLOT="0"
LICENSE="OFL-1.1"
IUSE="fontforge X"
FONT_SUFFIX="ttf"
FONT_CONF=( "${FILESDIR}/60-liberation.conf" )
DEPEND="
fontforge? (
${PYTHON_DEPS}
media-gfx/fontforge
$(python_gen_any_dep '<dev-python/fonttools-4.0[${PYTHON_USEDEP}]')
)"
RDEPEND=""
python_check_deps() {
has_version "dev-python/fonttools[${PYTHON_USEDEP}]"
}
src_prepare() {
default
if use fontforge ; then
sed -i "s/= python/= ${EPYTHON}/" Makefile || die
fi
}
pkg_setup() {
if use fontforge; then
FONT_S="${S}/${PN}-ttf-${PV}"
python-any-r1_pkg_setup
else
FONT_S="${WORKDIR}/${PN}-ttf-${PV}"
S="${FONT_S}"
fi
font_pkg_setup
}
|