Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/source-han-sans/
Date: Fri, 24 Jun 2016 21:21:28
Message-Id: 1466803177.323c03adc46542c2391e6b291a77002e612c31ad.ulm@gentoo
1 commit: 323c03adc46542c2391e6b291a77002e612c31ad
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 20:02:35 2016 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 21:19:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323c03ad
7
8 media-fonts/source-han-sans: Migrate from LINGUAS to L10N.
9
10 Also remove version 1.001-r1 which contains a redundant cjk USE flag.
11 It is wrong to download and install all fonts (over 780 MB), if the
12 user has explicitly asked for exclusion of some languages by setting
13 USE="-l10n_*".
14
15 Package-Manager: portage-2.3.0
16
17 .../source-han-sans-1.001-r1.ebuild | 39 ----------------------
18 .../source-han-sans/source-han-sans-1.001.ebuild | 18 +++++-----
19 2 files changed, 9 insertions(+), 48 deletions(-)
20
21 diff --git a/media-fonts/source-han-sans/source-han-sans-1.001-r1.ebuild b/media-fonts/source-han-sans/source-han-sans-1.001-r1.ebuild
22 deleted file mode 100644
23 index b43edfd..0000000
24 --- a/media-fonts/source-han-sans/source-han-sans-1.001-r1.ebuild
25 +++ /dev/null
26 @@ -1,39 +0,0 @@
27 -# Copyright 1999-2016 Gentoo Foundation
28 -# Distributed under the terms of the GNU General Public License v2
29 -# $Id$
30 -
31 -EAPI=5
32 -inherit font
33 -
34 -# Note to maintainers:
35 -# The upstream tarball is huge (over 780 MB), so we repackage the
36 -# regional subset OTF fonts per region, for the user's convenience.
37 -
38 -DESCRIPTION="Pan-CJK OpenType/CFF font family"
39 -HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
40 -SRC_URI="cjk? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz
41 - https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz
42 - https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz
43 - https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz )
44 - linguas_ja? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz )
45 - linguas_ko? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz )
46 - linguas_zh_CN? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz )
47 - linguas_zh_TW? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz )"
48 -
49 -LICENSE="Apache-2.0"
50 -SLOT="0"
51 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x64-macos"
52 -IUSE="cjk linguas_ja linguas_ko +linguas_zh_CN linguas_zh_TW"
53 -REQUIRED_USE="|| ( cjk linguas_ja linguas_ko linguas_zh_CN linguas_zh_TW )"
54 -
55 -S=${WORKDIR}
56 -FONT_SUFFIX="otf"
57 -RESTRICT="binchecks strip"
58 -
59 -src_install() {
60 - for l in ja ko zh_CN zh_TW; do
61 - ( use cjk || use linguas_${l} ) \
62 - && FONT_S="${S}/source-han-sans-${l}-${PV}" font_src_install
63 - done
64 - dodoc source-han-sans-*-${PV}/*md source-han-sans-*-${PV}/*pdf
65 -}
66
67 diff --git a/media-fonts/source-han-sans/source-han-sans-1.001.ebuild b/media-fonts/source-han-sans/source-han-sans-1.001.ebuild
68 index c2b1cf8..34828dc 100644
69 --- a/media-fonts/source-han-sans/source-han-sans-1.001.ebuild
70 +++ b/media-fonts/source-han-sans/source-han-sans-1.001.ebuild
71 @@ -1,4 +1,4 @@
72 -# Copyright 1999-2015 Gentoo Foundation
73 +# Copyright 1999-2016 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Id$
76
77 @@ -11,24 +11,24 @@ inherit font
78
79 DESCRIPTION="Pan-CJK OpenType/CFF font family"
80 HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
81 -SRC_URI="linguas_ja? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz )
82 - linguas_ko? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz )
83 - linguas_zh_CN? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz )
84 - linguas_zh_TW? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz )"
85 +SRC_URI="l10n_ja? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz )
86 + l10n_ko? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz )
87 + l10n_zh-CN? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz )
88 + l10n_zh-TW? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz )"
89
90 LICENSE="Apache-2.0"
91 SLOT="0"
92 KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~x64-macos"
93 -IUSE="linguas_ja linguas_ko +linguas_zh_CN linguas_zh_TW"
94 -REQUIRED_USE="|| ( linguas_ja linguas_ko linguas_zh_CN linguas_zh_TW )"
95 +IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-TW"
96 +REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW )"
97
98 S=${WORKDIR}
99 FONT_SUFFIX="otf"
100 RESTRICT="binchecks strip"
101
102 src_install() {
103 - for l in ja ko zh_CN zh_TW; do
104 - use linguas_${l} && FONT_S="${S}/source-han-sans-${l}-${PV}" font_src_install
105 + for l in ja ko zh-CN zh-TW; do
106 + use l10n_${l} && FONT_S="${S}/source-han-sans-${l}-${PV}" font_src_install
107 done
108 dodoc source-han-sans-*-${PV}/*md source-han-sans-*-${PV}/*pdf
109 }