You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
949 B
42 lines
949 B
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
|
PYTHON_COMPAT=( python2_7 )
|
||
|
|
||
|
inherit font python-any-r1
|
||
|
|
||
|
DESCRIPTION="A Helvetica/Times/Courier replacement TrueType font set, courtesy of Red Hat"
|
||
7 years ago
|
HOMEPAGE="https://pagure.io/liberation-fonts"
|
||
7 years ago
|
SRC_URI="!fontforge? ( https://releases.pagure.org/${PN}/${PN}-ttf-${PV}.tar.gz )
|
||
|
fontforge? ( https://releases.pagure.org/${PN}/${P}.tar.gz )"
|
||
9 years ago
|
|
||
7 years ago
|
KEYWORDS="alpha amd64 arm arm64 ia64 ppc ppc64 x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-solaris"
|
||
9 years ago
|
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
|
||
|
dev-python/fonttools
|
||
|
)"
|
||
|
RDEPEND=""
|
||
|
|
||
|
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
|
||
|
}
|