# Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_PN="InriaFonts"
MY_P=${MY_PN}-${PV}

inherit font

DESCRIPTION="Inria Serif and Inria Sans Typeface"
HOMEPAGE="https://black-foundry.com/work/inria/"
SRC_URI="https://github.com/BlackFoundryCom/InriaFonts/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S="${WORKDIR}/${MY_P}"
FONT_SUFFIX="ttf otf"
FONT_S="${S}"

src_prepare() {
	default
	mv "${S}"/fonts/*/TTF/*.ttf "${FONT_S}" || die
	mv "${S}"/fonts/*/OTF/*.otf "${FONT_S}" || die
}