diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-18 17:20:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-18 17:20:12 +0100 |
commit | 1b295861f983d29f9bd5d5906c7ca3cee4cf1f9a (patch) | |
tree | 1e7c76ef2f11271cde321f54bcd340b6e30afdd0 /media-fonts/noto-emoji/noto-emoji-20210715.ebuild | |
parent | 5142c1d68ca78d43985ab47bc3ae7c19954a9945 (diff) |
gentoo auto-resync : 18:09:2022 - 17:20:12
Diffstat (limited to 'media-fonts/noto-emoji/noto-emoji-20210715.ebuild')
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-20210715.ebuild | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/media-fonts/noto-emoji/noto-emoji-20210715.ebuild b/media-fonts/noto-emoji/noto-emoji-20210715.ebuild deleted file mode 100644 index 46b120c9443d..000000000000 --- a/media-fonts/noto-emoji/noto-emoji-20210715.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) - -inherit font python-any-r1 - -DESCRIPTION="Google Noto Emoji fonts" -HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-emoji" - -COMMIT="c05b4b47c8250ccd232780cae46d66a8179e77ab" -SRC_URI="https://github.com/googlefonts/noto-emoji/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 OFL-1.1" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" -IUSE="buildfont" - -BDEPEND=" - buildfont? ( - ${PYTHON_DEPS} - app-arch/zopfli - $(python_gen_any_dep ' - >=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}] - >=dev-python/nototools-0.2.13[${PYTHON_USEDEP}] - ') - media-gfx/pngquant - x11-libs/cairo - || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] ) - ) -" - -RESTRICT="binchecks strip" - -S="${WORKDIR}/${PN}-${COMMIT}" - -python_check_deps() { - has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" && - has_version -b "dev-python/nototools[${PYTHON_USEDEP}]" -} - -pkg_setup() { - font_pkg_setup -} - -src_prepare() { - default - - # Drop font for Windows 10 - rm fonts/NotoColorEmoji_WindowsCompatible.ttf || die - - if use buildfont; then - # From Fedora - eapply "${FILESDIR}/${PN}-build-all-flags.patch" - - # https://github.com/googlei18n/noto-emoji/issues/240 - eapply "${FILESDIR}/${PN}-20180823-build-path.patch" - - # Be more verbose, bug #717654 - eapply "${FILESDIR}"/${PN}-pngquant-verbose.patch - sed -i -e 's:@$(ZOPFLIPNG) -y "$<" "$@" 1> /dev/null 2>&1:@$(ZOPFLIPNG) -y "$<" "$@":g' Makefile || die - - # Based on Fedora patch to allow graphicsmagick usage - if has_version -b media-gfx/graphicsmagick; then - eapply "${FILESDIR}/${PN}-20190328-use-gm.patch" - fi - fi -} - -src_compile() { - if ! use buildfont; then - einfo "Installing pre-built fonts provided by upstream." - einfo "They could be not fully updated or miss some items." - einfo "To build fonts based on latest images enable 'buildfont'" - einfo "USE (that will require more time and resources too)." - else - python_setup - einfo "Building fonts..." - - # From Debian: - # The build requires a VIRTUAL_ENV variable and sequence check isn't working - VIRTUAL_ENV=true \ - BYPASS_SEQUENCE_CHECK=true \ - default - fi -} - -src_install() { - if ! use buildfont; then - FONT_S="${S}/fonts" - else - mv -i fonts/NotoEmoji-Regular.ttf "${S}" || die - # Built font and Regular font - FONT_S="${S}" - - # Don't lose fancy emoji icons - for i in 32 72 128 512; do - insinto "/usr/share/icons/${PN}/${i}/emotes/" - doins png/"${i}"/*.png - done - - insinto /usr/share/icons/"${PN}"/scalable/emotes/ - doins svg/*.svg - fi - - FONT_SUFFIX="ttf" - font_src_install - - dodoc README.md -} |