Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/source-han-sans/, media-fonts/source-serif/, ...
Date: Thu, 15 Sep 2022 07:05:51
Message-Id: 1663225541.578d52d0a14d08a71a25d0781f3db0f132e2cf46.juippis@gentoo
1 commit: 578d52d0a14d08a71a25d0781f3db0f132e2cf46
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun Aug 14 18:20:33 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 15 07:05:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=578d52d0
7
8 media-fonts/*: add optfeature to source-*
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 media-fonts/source-code-pro/source-code-pro-2.038.ebuild | 9 ++++++++-
14 media-fonts/source-han-sans/source-han-sans-2.004.ebuild | 9 ++++++++-
15 media-fonts/source-sans/source-sans-3.046.ebuild | 9 ++++++++-
16 media-fonts/source-serif/source-serif-4.004.ebuild | 9 ++++++++-
17 4 files changed, 32 insertions(+), 4 deletions(-)
18
19 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
20 index 572e940715eb..c2b34b172b48 100644
21 --- a/media-fonts/source-code-pro/source-code-pro-2.038.ebuild
22 +++ b/media-fonts/source-code-pro/source-code-pro-2.038.ebuild
23 @@ -3,7 +3,7 @@
24
25 EAPI=8
26
27 -inherit font
28 +inherit font optfeature
29
30 REALV="2.038R-ro/1.058R-it/1.018R-VAR"
31
32 @@ -30,3 +30,10 @@ src_prepare() {
33 default
34 mv OTF/*.otf . || die
35 }
36 +
37 +pkg_postinst() {
38 + optfeature_header "Other variants of this font are:"
39 + optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
40 + optfeature "the sans-serif variant" media-fonts/source-sans
41 + optfeature "the serif variant" media-fonts/source-serif
42 +}
43
44 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
45 index 050545840425..0df9e6b0a72a 100644
46 --- a/media-fonts/source-han-sans/source-han-sans-2.004.ebuild
47 +++ b/media-fonts/source-han-sans/source-han-sans-2.004.ebuild
48 @@ -3,7 +3,7 @@
49
50 EAPI=8
51
52 -inherit font
53 +inherit font optfeature
54
55 # Note to maintainers:
56 # The upstream tarball is huge (over 780 MB), so we use the
57 @@ -37,3 +37,10 @@ src_install() {
58 use l10n_zh-HK && FONT_S="${S}/SubsetOTF/HK" font_src_install
59 use l10n_zh-TW && FONT_S="${S}/SubsetOTF/TW" font_src_install
60 }
61 +
62 +pkg_postinst() {
63 + optfeature_header "Other variants of this font are:"
64 + optfeature "the monospace variant" media-fonts/source-code-pro
65 + optfeature "the sans-serif variant" media-fonts/source-sans
66 + optfeature "the serif variant" media-fonts/source-serif
67 +}
68
69 diff --git a/media-fonts/source-sans/source-sans-3.046.ebuild b/media-fonts/source-sans/source-sans-3.046.ebuild
70 index 2668b3cb9565..2c96dc8edca8 100644
71 --- a/media-fonts/source-sans/source-sans-3.046.ebuild
72 +++ b/media-fonts/source-sans/source-sans-3.046.ebuild
73 @@ -6,7 +6,7 @@ EAPI=8
74 MAJORV="${PV%%.*}"
75 FONT_PN=${PN}-${MAJORV}
76
77 -inherit font
78 +inherit font optfeature
79
80 DESCRIPTION="Sans serif font family for user interface environments"
81 HOMEPAGE="https://adobe-fonts.github.io/source-sans/"
82 @@ -28,3 +28,10 @@ src_prepare() {
83 default
84 mv OTF/*.otf . || die
85 }
86 +
87 +pkg_postinst() {
88 + optfeature_header "Other variants of this font are:"
89 + optfeature "the monospace variant" media-fonts/source-code-pro
90 + optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
91 + optfeature "the serif variant" media-fonts/source-serif
92 +}
93
94 diff --git a/media-fonts/source-serif/source-serif-4.004.ebuild b/media-fonts/source-serif/source-serif-4.004.ebuild
95 index 9a85e0c4bcc5..ede5673f0717 100644
96 --- a/media-fonts/source-serif/source-serif-4.004.ebuild
97 +++ b/media-fonts/source-serif/source-serif-4.004.ebuild
98 @@ -6,7 +6,7 @@ EAPI=8
99 MAJORV="${PV%%.*}"
100 FONT_PN=${PN}-${MAJORV}
101
102 -inherit font
103 +inherit font optfeature
104
105 DESCRIPTION="Serif font family for user interface environments"
106 HOMEPAGE="https://adobe-fonts.github.io/source-serif/"
107 @@ -28,3 +28,10 @@ src_prepare() {
108 default
109 mv OTF/*.otf . || die
110 }
111 +
112 +pkg_postinst() {
113 + optfeature_header "Other variants of this font are:"
114 + optfeature "the monospace variant" media-fonts/source-code-pro
115 + optfeature "Chinese, Japanese and Korean support" media-fonts/source-han-sans
116 + optfeature "the sans-serif variant" media-fonts/source-sans
117 +}