From: | Ian Delaney <idella4@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: media-fonts/source-han-sans/ |
Date: | Fri, 19 Feb 2016 03:11:05 |
Message-Id: | 1455849809.69885d1fd77f8e3c35ff7a6c41b9a192837020af.idella4@gentoo |
1 | commit: 69885d1fd77f8e3c35ff7a6c41b9a192837020af |
2 | Author: bobbertson <qewbert <AT> gmail <DOT> com> |
3 | AuthorDate: Thu Feb 18 04:07:25 2016 +0000 |
4 | Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 | CommitDate: Fri Feb 19 02:43:29 2016 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69885d1f |
7 | |
8 | media-fonts/source-han-sans: Adding use cjk to be consistent with rdep. |
9 | |
10 | Package-Manager: portage-2.2.26 |
11 | |
12 | .../source-han-sans-1.001-r1.ebuild | 39 ++++++++++++++++++++++ |
13 | 1 file changed, 39 insertions(+) |
14 | |
15 | 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 |
16 | new file mode 100644 |
17 | index 0000000..b43edfd |
18 | --- /dev/null |
19 | +++ b/media-fonts/source-han-sans/source-han-sans-1.001-r1.ebuild |
20 | @@ -0,0 +1,39 @@ |
21 | +# Copyright 1999-2016 Gentoo Foundation |
22 | +# Distributed under the terms of the GNU General Public License v2 |
23 | +# $Id$ |
24 | + |
25 | +EAPI=5 |
26 | +inherit font |
27 | + |
28 | +# Note to maintainers: |
29 | +# The upstream tarball is huge (over 780 MB), so we repackage the |
30 | +# regional subset OTF fonts per region, for the user's convenience. |
31 | + |
32 | +DESCRIPTION="Pan-CJK OpenType/CFF font family" |
33 | +HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/" |
34 | +SRC_URI="cjk? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz |
35 | + https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz |
36 | + https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz |
37 | + https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz ) |
38 | + linguas_ja? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ja-${PV}.tar.xz ) |
39 | + linguas_ko? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-ko-${PV}.tar.xz ) |
40 | + linguas_zh_CN? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_CN-${PV}.tar.xz ) |
41 | + linguas_zh_TW? ( https://dev.gentoo.org/~yngwin/distfiles/${PN}-zh_TW-${PV}.tar.xz )" |
42 | + |
43 | +LICENSE="Apache-2.0" |
44 | +SLOT="0" |
45 | +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x64-macos" |
46 | +IUSE="cjk linguas_ja linguas_ko +linguas_zh_CN linguas_zh_TW" |
47 | +REQUIRED_USE="|| ( cjk linguas_ja linguas_ko linguas_zh_CN linguas_zh_TW )" |
48 | + |
49 | +S=${WORKDIR} |
50 | +FONT_SUFFIX="otf" |
51 | +RESTRICT="binchecks strip" |
52 | + |
53 | +src_install() { |
54 | + for l in ja ko zh_CN zh_TW; do |
55 | + ( use cjk || use linguas_${l} ) \ |
56 | + && FONT_S="${S}/source-han-sans-${l}-${PV}" font_src_install |
57 | + done |
58 | + dodoc source-han-sans-*-${PV}/*md source-han-sans-*-${PV}/*pdf |
59 | +} |