# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit font DESCRIPTION="Google's CJK font family" HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlei18n/noto-cjk" COMMIT="cf29231ab8029678af4bbc1a9480e2b296a5b2d3" SRC_URI="https://github.com/googlei18n/noto-cjk/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" LICENSE="OFL-1.1" SLOT="0" KEYWORDS="alpha amd64 arm arm64 ~mips ppc ppc64 sparc x86" IUSE="extra" RESTRICT="binchecks strip" S="${WORKDIR}/${PN}-${COMMIT}" FONT_S="${S}" FONT_SUFFIX="ttc" FONT_CONF=( # From ArchLinux "${FILESDIR}/70-noto-cjk.conf" ) src_install() { if ! use extra; then rm "${S}"/NotoSansCJK-Black.ttc rm "${S}"/NotoSansCJK-DemiLight.ttc rm "${S}"/NotoSansCJK-Light.ttc rm "${S}"/NotoSansCJK-Medium.ttc rm "${S}"/NotoSansCJK-Thin.ttc rm "${S}"/NotoSerifCJK-Black.ttc rm "${S}"/NotoSerifCJK-ExtraLight.ttc rm "${S}"/NotoSerifCJK-Light.ttc rm "${S}"/NotoSerifCJK-Medium.ttc rm "${S}"/NotoSerifCJK-SemiBold.ttc fi font_src_install }