From cb5230807a986763d16ac02036b4f0382d67e07d Mon Sep 17 00:00:00 2001 From: nephele <105942296+nephele-gh@users.noreply.github.com> Date: Mon, 7 Aug 2023 19:41:33 +0200 Subject: [PATCH] Put Noto Emoji and Noto Color Emoji into different packages. (#7947) They used to be developped and shipped together by Google, but they are now two independant projects. We can ship them as two different packages, which allows to ship only the monochrome version in Haiku, since color emojis are not supported by app_server yet anyways. --- .../noto_emoji/noto_emoji-20230311.recipe | 28 +++++++++++++++++++ .../noto_emoji_color-2.038.recipe | 25 +++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 media-fonts/noto_emoji/noto_emoji-20230311.recipe create mode 100644 media-fonts/noto_emoji_color/noto_emoji_color-2.038.recipe diff --git a/media-fonts/noto_emoji/noto_emoji-20230311.recipe b/media-fonts/noto_emoji/noto_emoji-20230311.recipe new file mode 100644 index 000000000..127ada010 --- /dev/null +++ b/media-fonts/noto_emoji/noto_emoji-20230311.recipe @@ -0,0 +1,28 @@ +SUMMARY="The Noto emoji font" +DESCRIPTION="Fonts containing Unicode emoji characters" +HOMEPAGE="https://fonts.google.com/download?family=Noto%20Emoji" +COPYRIGHT="2015-2023 Google Inc." +LICENSE="SIL Open Font License v1.1" +REVISION="1" +SOURCE_URI="https://fonts.google.com/download?family=Noto%20Emoji" +SOURCE_FILENAME="noto-emoji.zip" +CHECKSUM_SHA256="d1c824c449a22fcc14360fe1d23cd0840e83a6621c85a2cf32380663d36e721e" +SOURCE_DIR="" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + noto_emoji = $portVersion + " + + +INSTALL() +{ + FONTDIR=$fontsDir/ttfonts + mkdir -p ${FONTDIR} + + cp NotoEmoji-VariableFont_wght.ttf static/NotoEmoji-Bold.ttf static/NotoEmoji-Light.ttf \ + static/NotoEmoji-Medium.ttf static/NotoEmoji-Regular.ttf static/NotoEmoji-SemiBold.ttf \ + ${FONTDIR} +} diff --git a/media-fonts/noto_emoji_color/noto_emoji_color-2.038.recipe b/media-fonts/noto_emoji_color/noto_emoji_color-2.038.recipe new file mode 100644 index 000000000..be0b9e361 --- /dev/null +++ b/media-fonts/noto_emoji_color/noto_emoji_color-2.038.recipe @@ -0,0 +1,25 @@ +SUMMARY="The Noto emoji colorfont" +DESCRIPTION="Fonts containing Colorfull Unicode emoji characters" +HOMEPAGE="https://www.google.com/get/noto/" +COPYRIGHT="2015-2022 Google Inc." +LICENSE="SIL Open Font License v1.1" +REVISION="1" +SOURCE_URI="https://github.com/googlei18n/noto-emoji/archive/v$portVersion.tar.gz" +SOURCE_FILENAME="noto-emoji-v$portVersion.tar.gz" +CHECKSUM_SHA256="47d8b39733a1e82efced7dee96e30cb31d205b150dc3ca44d59abbb22d027195" +SOURCE_DIR="noto-emoji-$portVersion" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + noto_emoji_color = $portVersion + " + +INSTALL() +{ + FONTDIR=$fontsDir/ttfonts + mkdir -p ${FONTDIR} + + cp fonts/NotoColorEmoji.ttf fonts/Noto-COLRv1.ttf ${FONTDIR} +}