summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-08-14 20:20:33 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-09-15 10:05:41 +0300
commit578d52d0a14d08a71a25d0781f3db0f132e2cf46 (patch)
tree1c118c908db2a08c2d2f6703dfb210d161d950a4 /media-fonts/source-han-sans
parentmedia-fonts/source-sans: add 2.020 (diff)
downloadgentoo-578d52d0a14d08a71a25d0781f3db0f132e2cf46.tar.gz
gentoo-578d52d0a14d08a71a25d0781f3db0f132e2cf46.tar.bz2
gentoo-578d52d0a14d08a71a25d0781f3db0f132e2cf46.zip
media-fonts/*: add optfeature to source-*
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-fonts/source-han-sans')
-rw-r--r--media-fonts/source-han-sans/source-han-sans-2.004.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/media-fonts/source-han-sans/source-han-sans-2.004.ebuild b/media-fonts/source-han-sans/source-han-sans-2.004.ebuild
index 050545840425..0df9e6b0a72a 100644
--- a/media-fonts/source-han-sans/source-han-sans-2.004.ebuild
+++ b/media-fonts/source-han-sans/source-han-sans-2.004.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit font
+inherit font optfeature
# Note to maintainers:
# The upstream tarball is huge (over 780 MB), so we use the
@@ -37,3 +37,10 @@ src_install() {
use l10n_zh-HK && FONT_S="${S}/SubsetOTF/HK" font_src_install
use l10n_zh-TW && FONT_S="${S}/SubsetOTF/TW" font_src_install
}
+
+pkg_postinst() {
+ optfeature_header "Other variants of this font are:"
+ optfeature "the monospace variant" media-fonts/source-code-pro
+ optfeature "the sans-serif variant" media-fonts/source-sans
+ optfeature "the serif variant" media-fonts/source-serif
+}