# Copyright 2020-2024 Robert Günzler # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit font DESCRIPTION="A bitmap programming font optimized for coziness" HOMEPAGE="https://github.com/slavfox/Cozette" SRC_URI=" bitmap? ( https://github.com/slavfox/${PN}/releases/download/v.${PV}/${PN}.otb -> ${P}.otb hidpi? ( https://github.com/slavfox/${PN}/releases/download/v.${PV}/${PN}_hidpi.otb -> ${P}_hidpi.otb ) ) vector? ( https://github.com/slavfox/${PN}/releases/download/v.${PV}/${PN}Vector.otf -> ${PN}Vector-${PV}.otf https://github.com/slavfox/${PN}/releases/download/v.${PV}/${PN}VectorBold.otf -> ${PN}VectorBold-${PV}.otf ) " LICENSE="OFL-1.1" SLOT="0" IUSE="+bitmap vector hidpi" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" S="${DISTDIR}" FONT_S="${S}" FONT_SUFFIX="" src_prepare() { default if use bitmap; then FONT_SUFFIX+=" otb" fi if use vector; then FONT_SUFFIX+=" otf" fi }