2022-06-10 23:34:57 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-09-20 15:14:05 +02:00
|
|
|
EAPI=8
|
2022-06-10 23:34:57 +02:00
|
|
|
GNOME_ORG_MODULE="${PN}-fonts"
|
|
|
|
|
|
|
|
inherit font gnome.org meson
|
|
|
|
|
|
|
|
DESCRIPTION="Default fontset for GNOME Shell"
|
|
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/CantarellFonts"
|
|
|
|
SRC_URI+=" https://manuel.friedli.info/gentoo-overlay/cantarell-static-fonts-0.303.1.tar"
|
|
|
|
|
|
|
|
LICENSE="OFL-1.1"
|
|
|
|
SLOT="0"
|
2024-12-16 02:20:35 +01:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
2022-06-10 23:34:57 +02:00
|
|
|
IUSE="staticfont +variablefont"
|
|
|
|
REQUIRED_USE="|| ( staticfont variablefont )"
|
|
|
|
|
|
|
|
BDEPEND="
|
|
|
|
>=sys-devel/gettext-0.20
|
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
|
|
|
|
|
|
|
# This ebuild does not install any binaries
|
|
|
|
RESTRICT="binchecks strip"
|
|
|
|
|
|
|
|
# Font eclass settings
|
|
|
|
FONT_S="${S}/prebuilt"
|
|
|
|
FONT_SUFFIX="otf"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# Leave prebuilt font installation to font.eclass
|
|
|
|
sed -e "/subdir('prebuilt')/d" -i meson.build || die
|
|
|
|
use staticfont && mv "${WORKDIR}"/prebuilt/* "${S}"/prebuilt
|
|
|
|
use !variablefont && rm "${FONT_S}"/Cantarell-VF.otf
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
-Dfontsdir=${FONTDIR}
|
|
|
|
-Duseprebuilt=true
|
|
|
|
-Dbuildappstream=true
|
|
|
|
$(meson_use staticfont buildstatics)
|
|
|
|
$(meson_use variablefont buildvf)
|
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
font_src_install
|
|
|
|
local DOCS=( NEWS README.md )
|
|
|
|
meson_src_install
|
|
|
|
}
|