summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/source-code-pro/source-code-pro-2.038.ebuild9
-rw-r--r--media-fonts/source-han-sans/source-han-sans-2.004.ebuild9
-rw-r--r--media-fonts/source-sans/source-sans-3.046.ebuild9
-rw-r--r--media-fonts/source-serif/source-serif-4.004.ebuild9
4 files changed, 32 insertions, 4 deletions
diff --git a/media-fonts/source-code-pro/source-code-pro-2.038.ebuild b/media-fonts/source-code-pro/source-code-pro-2.038.ebuild
index 572e940715eb..c2b34b172b48 100644
--- a/media-fonts/source-code-pro/source-code-pro-2.038.ebuild
+++ b/media-fonts/source-code-pro/source-code-pro-2.038.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit font
+inherit font optfeature
REALV="2.038R-ro/1.058R-it/1.018R-VAR"
@@ -30,3 +30,10 @@ src_prepare() {
default
mv OTF/*.otf . || die
}
+
+pkg_postinst() {
+ optfeature_header "Other variants of this font are:"
+ optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
+ optfeature "the sans-serif variant" media-fonts/source-sans
+ optfeature "the serif variant" media-fonts/source-serif
+}
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
+}
diff --git a/media-fonts/source-sans/source-sans-3.046.ebuild b/media-fonts/source-sans/source-sans-3.046.ebuild
index 2668b3cb9565..2c96dc8edca8 100644
--- a/media-fonts/source-sans/source-sans-3.046.ebuild
+++ b/media-fonts/source-sans/source-sans-3.046.ebuild
@@ -6,7 +6,7 @@ EAPI=8
MAJORV="${PV%%.*}"
FONT_PN=${PN}-${MAJORV}
-inherit font
+inherit font optfeature
DESCRIPTION="Sans serif font family for user interface environments"
HOMEPAGE="https://adobe-fonts.github.io/source-sans/"
@@ -28,3 +28,10 @@ src_prepare() {
default
mv OTF/*.otf . || die
}
+
+pkg_postinst() {
+ optfeature_header "Other variants of this font are:"
+ optfeature "the monospace variant" media-fonts/source-code-pro
+ optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
+ optfeature "the serif variant" media-fonts/source-serif
+}
diff --git a/media-fonts/source-serif/source-serif-4.004.ebuild b/media-fonts/source-serif/source-serif-4.004.ebuild
index 9a85e0c4bcc5..ede5673f0717 100644
--- a/media-fonts/source-serif/source-serif-4.004.ebuild
+++ b/media-fonts/source-serif/source-serif-4.004.ebuild
@@ -6,7 +6,7 @@ EAPI=8
MAJORV="${PV%%.*}"
FONT_PN=${PN}-${MAJORV}
-inherit font
+inherit font optfeature
DESCRIPTION="Serif font family for user interface environments"
HOMEPAGE="https://adobe-fonts.github.io/source-serif/"
@@ -28,3 +28,10 @@ src_prepare() {
default
mv OTF/*.otf . || die
}
+
+pkg_postinst() {
+ optfeature_header "Other variants of this font are:"
+ optfeature "the monospace variant" media-fonts/source-code-pro
+ optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
+ optfeature "the sans-serif variant" media-fonts/source-sans
+}