1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit font python-any-r1
10 DESCRIPTION="A Helvetica/Times/Courier replacement TrueType font set, courtesy of Red Hat"
11 HOMEPAGE="https://github.com/liberationfonts/liberation-fonts"
12 SRC_URI="!fontforge? ( https://github.com/liberationfonts/liberation-fonts/files/2926169/${PN}-ttf-${PV}.tar.gz )
13 fontforge? ( https://github.com/liberationfonts/liberation-fonts/files/2926167/${P}.tar.gz )"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-solaris"
22 FONT_CONF=( "${FILESDIR}/60-liberation.conf" )
28 $(python_gen_any_dep 'dev-python/fonttools[${PYTHON_USEDEP}]')
32 has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]"
37 if use fontforge ; then
38 sed -i "s/= python3/= ${EPYTHON}/" Makefile || die
43 if use fontforge; then
44 FONT_S="${S}/${PN}-ttf-${PV}"
45 python-any-r1_pkg_setup
47 FONT_S="${WORKDIR}/${PN}-ttf-${PV}"