diff options
Diffstat (limited to 'media-fonts/noto-emoji')
7 files changed, 1 insertions, 183 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest index 4ec760d67b72..5513a36918a3 100644 --- a/media-fonts/noto-emoji/Manifest +++ b/media-fonts/noto-emoji/Manifest @@ -1,8 +1,3 @@ -AUX noto-emoji-20180823-build-path.patch 313 BLAKE2B c7a6a67639444329f033da14b58759d9ac265a3dfd7854fc6ba0466ace3c5ce9794c9c6493d08a89d29d4e9a5fa99d1553be13c49fc9f09fb82a82b6b61531f6 SHA512 544acdfd0f2dc0dcfc75b4081f7e1518ab914d02801bf7b38f31af9a0d55ed516a2f53e963606232a8742819b3005f8e9660c8a61257d0583bfee8f095d4e341 -AUX noto-emoji-20190328-use-gm.patch 1169 BLAKE2B 6659f1f80ec3f44942a7b96b23f5ae90ad9167cd30812e6fc71abe3df3179184b2be389ee8f277a4ce696269ffba2e25e8c024677b73c925b7ad06cdebc5846b SHA512 e3c1d68bd887c8e9dd7e752f946cff8265c996cbfafe27652ca90e67bb555433787edd45a5805bbca5b73b15377c5102593f594bbe2777d2c07452143b164c5e -AUX noto-emoji-build-all-flags.patch 336 BLAKE2B b6c10010f9fe3b1e62ce436bbd0fae6ac85bd8feb2776d2d731a9b155818b828b7ecc1ec58861976b890eb1faf4db59bead3e86e7c39e44113b11152347cba29 SHA512 0d67afa05081da93cf05827dde54cbb6ce593e79874e823680d1c521c0953c49d4dcf12135da43b74bc72b4a79e8b7b0123ae2b2cd631f040c6797e04d3f008a -AUX noto-emoji-pngquant-verbose.patch 407 BLAKE2B b737b10535b8a04ca2d17d6803fc7c6a36e733acf88a6089b56004f9d2a265851278cbb85b6a5d2c2ab18e46f12fcf84d7185e768cae2e3eafefeb3bc06869e5 SHA512 5bcb05c6b7a1e0970e1ff67707a1a5d49b22ada4ef4677d3bb9f9874e045d79f1d35419abc80b39bec81512f547360eb705dffeb421c48296a9646c618f75f61 DIST noto-emoji-20220912.tar.gz 178768907 BLAKE2B b998a74903e0a559e6c2d87f6d05649054728d5359659882c89b99fc41ec80f9dbafba6f418500059acef7bb85b9d60b189abea286c9c4cb5491f501095ca425 SHA512 4e9b01be1ac7853d840379f84350f2709212401ccebb221308eb83982a8673af9a8ef166952aba4d6f8d9939efc4989f38a7db69e022eb055f265ccba78884a6 EBUILD noto-emoji-20220912-r1.ebuild 1080 BLAKE2B a4c6e0f837608f51523dff6e414028d4a431440b168ff09fe2a58aeb591f616b10c1d9286dd6c90264230a19cd7839779a4525a5b7a298c306479d169e248914 SHA512 972f135f49d4434f016d5f1de1d0f2e0f8aa40d5c579dd556883629e7f4e3cc3d693fc57299a5bf7fb465e4b63f5f0db82c529b4699af9d426f6af2007cc81f3 -EBUILD noto-emoji-20220912.ebuild 2864 BLAKE2B b85b2c4503e49bcfb66141efa6171ba4aba9cfaf1bb973215af16578374695e34471051938f96ee6607831511de78823075a0f7a7757243bf5706c95d061b71c SHA512 347aceb8a8c7618fd3068dd68017dc6d56ba62b7f14c913395fd44371cdf3856eb9f9ce720390a971022ff57188a0e93c85b13d0c63f19043b2f8981a72b9ae5 -MISC metadata.xml 479 BLAKE2B 8a281cfbeb2b5d2dbe2c573ff8063df9e5d508585c6b6b0131ba9ed00fa491b83bd98c9f1ba6de0c845750e7b8c34aa6217f7bde8e8eafaa2899a832dd2a215d SHA512 9821208a23c3303935421609cafe7961b38a0a37b507aae01fb4a2e96b09854614d2e77b89a78f1a467ebbfdfc63d1f9a5524dcefa206ca47f8d38b4fe75a10e +MISC metadata.xml 404 BLAKE2B 22cf87041f4f6f5c051fd1d65b9f3355ed1bef0b30f85f9fe16e6857a00e0a4b6fe5e87558a4f5c170f5fd4247d045116d65a3a2d4d14d9767785946a14dbd21 SHA512 2bf090e6377ca15a0ee429d8541e3731d3deb0ea06120bb5ee77cb26f346eb5a0d9d9a05a6af31e940cd8470099bc5d3507f72b98fbf0a9dc0273073acfa6eed diff --git a/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch b/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch deleted file mode 100644 index 151f88251524..000000000000 --- a/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/add_glyphs.py.old 2018-11-18 11:11:56.387323302 +0100 -+++ b/add_glyphs.py 2018-11-18 11:12:18.203529159 +0100 -@@ -22,7 +22,7 @@ - import add_emoji_gsub - import add_aliases - --sys.path.append( -+sys.path.insert(0, - path.join(os.path.dirname(__file__), 'third_party', 'color_emoji')) - from png import PNG - diff --git a/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch b/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch deleted file mode 100644 index 6b51d0f52168..000000000000 --- a/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/Makefile~ 2019-03-28 17:45:53.000000000 +0100 -+++ b/Makefile 2019-06-02 10:36:55.587055453 +0200 -@@ -21,7 +21,7 @@ - PNGQUANT = pngquant - PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force - BODY_DIMENSIONS = 136x128 --IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center -+IMOPS = -size 136x128 -background none -gravity center -extent 136x128 -compose copy - - # zopflipng is better (about 5-10%) but much slower. it will be used if - # present. pass ZOPFLIPNG= as an arg to make to use optipng instead. -@@ -165,13 +165,13 @@ - # imagemagick packaged with ubuntu trusty (6.7.7-10) by using -composite. - - $(EMOJI_DIR)/%.png: $(EMOJI_SRC_DIR)/%.png | $(EMOJI_DIR) -- @convert $(IMOPS) "$<" -composite "PNG32:$@" -+ @gm convert $(IMOPS) "$<" "PNG32:$@" - - $(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag | $(FLAGS_DIR) - @./waveflag $(FLAGS_DIR)/ "$<" - - $(RESIZED_FLAGS_DIR)/%.png: $(FLAGS_DIR)/%.png | $(RESIZED_FLAGS_DIR) -- @convert $(IMOPS) "$<" -composite "PNG32:$@" -+ @gm convert $(IMOPS) "$<" "PNG32:$@" - - flag-symlinks: $(RESIZED_FLAG_FILES) | $(RENAMED_FLAGS_DIR) - @$(subst ^, , \ diff --git a/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch b/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch deleted file mode 100644 index 564b08a59078..000000000000 --- a/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- old/Makefile 2018-05-03 20:32:14.000000000 +0200 -+++ new/Makefile 2018-05-08 11:48:20.811073447 +0200 -@@ -78,7 +78,7 @@ - - ALL_FLAGS = $(basename $(notdir $(wildcard $(FLAGS_SRC_DIR)/*.png))) - --FLAGS = $(SELECTED_FLAGS) -+FLAGS = $(ALL_FLAGS) - - FLAG_NAMES = $(FLAGS:%=%.png) - FLAG_FILES = $(addprefix $(FLAGS_DIR)/, $(FLAG_NAMES)) diff --git a/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch b/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch deleted file mode 100644 index 8a152bea23d9..000000000000 --- a/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Makefile~ 2020-04-22 23:04:44.000000000 +0200 -+++ b/Makefile 2020-04-22 23:06:42.069275340 +0200 -@@ -20,7 +20,7 @@ - - PNGQUANT = pngquant - PYTHON = python3 --PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force -+PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force -v - BODY_DIMENSIONS = 136x128 - IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center - diff --git a/media-fonts/noto-emoji/metadata.xml b/media-fonts/noto-emoji/metadata.xml index a1229f4979e4..3b1890ccc39f 100644 --- a/media-fonts/noto-emoji/metadata.xml +++ b/media-fonts/noto-emoji/metadata.xml @@ -6,7 +6,6 @@ <name>Pacho Ramos</name> </maintainer> <use> - <flag name="buildfont">Build Noto Emoji font with supplied images</flag> <flag name="icons">Install Noto Emoji icon theme</flag> </use> <upstream> diff --git a/media-fonts/noto-emoji/noto-emoji-20220912.ebuild b/media-fonts/noto-emoji/noto-emoji-20220912.ebuild deleted file mode 100644 index 2d31c4c23a4f..000000000000 --- a/media-fonts/noto-emoji/noto-emoji-20220912.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) - -inherit font python-any-r1 - -DESCRIPTION="Google Noto Emoji fonts" -HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-emoji" - -COMMIT="e8073ab740292f8d5f19b5de144087ac58044d06" -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 ~loong ~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() { - python_has_version ">=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}]" \ - ">=dev-python/nototools-0.2.13[${PYTHON_USEDEP}]" -} - -pkg_setup() { - font_pkg_setup - use buildfont && python-any-r1_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[png]; 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" - # Drop non used fonts - rm -f fonts/*COLR*.ttf || die - else - # Drop Windows compatible fonts and temporal files - rm -f *tmpl.ttf *Windows*.ttf *COLR*.ttf || die - - # Built fonts - 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 -} |