1 |
commit: e5602c28fbad29197c4f485ff7cc0227cc12ad42 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 16:35:27 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 16:35:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5602c28 |
7 |
|
8 |
media-fonts/noto: introduce cjk USE flag |
9 |
|
10 |
The vanilla noto tarball is quite large - approximately 470MB. This can be |
11 |
problematic for users with slow internet connections or have limited storage. |
12 |
|
13 |
Disabling the cjk USE flag causes a much smaller repacked tarball to be used |
14 |
instead, at the cost of support for Chinese, Japanese, and Korean characters. |
15 |
|
16 |
Gentoo-bug: 581344 |
17 |
|
18 |
Package-Manager: portage-2.2.28 |
19 |
|
20 |
media-fonts/noto/Manifest | 1 + |
21 |
media-fonts/noto/noto-20160305-r1.ebuild | 32 ++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 33 insertions(+) |
23 |
|
24 |
diff --git a/media-fonts/noto/Manifest b/media-fonts/noto/Manifest |
25 |
index 58a0ed5..e4868bb 100644 |
26 |
--- a/media-fonts/noto/Manifest |
27 |
+++ b/media-fonts/noto/Manifest |
28 |
@@ -1,3 +1,4 @@ |
29 |
DIST noto-2014.11.zip 381169520 SHA256 6f49663b4a40ed291ff459808a9d1fa6d41f6b3309b79cf7aeaf5fa884040e2c SHA512 36695b99daf870f76d00535513ae0e16170b8d7eb471f75ae016fb970cae236ce6fcf41da790567369dde0bbd87b4c023cac6aa197dd17f8f809d20a4cca3c5b WHIRLPOOL 21977fb0369975ac6ae66c950826478b17f5d5860fd88b2e45f5c016b046e6f17618c1477fb84021348266babecf4c7efa3ca939495cb392bfb4b897466c2218 |
30 |
DIST noto-2015.04.zip 380076754 SHA256 20a467d6664f5bd5d4604e903dd562ba3970dd29b17b09c7b591cb3c293287f6 SHA512 4ed6cb02007d2a96d46a96fba66639cce35019ce0490843d1d1ee3684dca4638227c6b6cb89b49cabe745b523d0e3b48f338555fcbe7168f120107d24d4d2ca7 WHIRLPOOL cc92fceb7e4b260acc936c224cca1cee89d8be3f8dae5b9cbe7426c0787d8ed64aae587f53f46f9fdd327732b7755f04870f69617585f005cb7a3b67434c6452 |
31 |
DIST noto-20160305.zip 494039413 SHA256 a979d9837d4223bcbe55497e3b5c545e0e554a78584f60915f1e620d3fbe508e SHA512 bf20eaf075491d46c7c4d1ea3514f38d0515180879ea4ad0a3a77d72c54cdd4b043e06f4e6852f5f68b1ab2d5f512261ad25ceacdb3e19db2769f0c05c1a795c WHIRLPOOL 75c4bced2caa5990b8688e3c06214ed0dfc1dd85e00607b69c458a39c856835ea7ea9fd6d4f6710945c634991ed41cf3e3c69046e12194c22d73ecd8f46d4fc1 |
32 |
+DIST noto-nocjk-20160305.tar.xz 7818968 SHA256 087c0d920e5ae651ad3671d558de1a11d5832b775f5d4e3e5d287acf9f2866df SHA512 a7c5ef3f74ca8abfd1185cbfba2ddd29c8135162115ef418c41d85813e5823f12d7c78235569ae3288ea8012239052b7cf4cdbe811d014152acd4748bb55c715 WHIRLPOOL bc959cd7acf7f1afb572f6c988f174502291c4b676d5e5c4044c21b2cc61537d0128851d09b6aa6380c4764b37b7d0d9b1958a5a33f70c785d2dd75353261450 |
33 |
|
34 |
diff --git a/media-fonts/noto/noto-20160305-r1.ebuild b/media-fonts/noto/noto-20160305-r1.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..782ec2f |
37 |
--- /dev/null |
38 |
+++ b/media-fonts/noto/noto-20160305-r1.ebuild |
39 |
@@ -0,0 +1,32 @@ |
40 |
+# Copyright 1999-2016 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Id$ |
43 |
+ |
44 |
+EAPI=5 |
45 |
+inherit font |
46 |
+ |
47 |
+DESCRIPTION="Google's font family that aims to support all the world's languages" |
48 |
+HOMEPAGE="https://www.google.com/get/noto/" |
49 |
+SRC_URI=" |
50 |
+ cjk? ( https://dev.gentoo.org/~pacho/${PN}/${P}.zip ) |
51 |
+ !cjk? ( https://dev.gentoo.org/~kensington/distfiles/${PN}-nocjk-${PV}.tar.xz ) |
52 |
+" |
53 |
+# renamed from upstream's unversioned Noto-hinted.zip |
54 |
+# version number based on the timestamp of most recently updated font in the zip |
55 |
+ |
56 |
+LICENSE="OFL-1.1" # https://github.com/googlei18n/noto-fonts/blob/master/NEWS |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
59 |
+IUSE="cjk" |
60 |
+ |
61 |
+DEPEND="!cjk? ( app-arch/unzip )" |
62 |
+RESTRICT="binchecks strip" |
63 |
+ |
64 |
+S=${WORKDIR} |
65 |
+FONT_S="${S}" |
66 |
+FONT_SUFFIX="ttf" |
67 |
+ |
68 |
+src_install() { |
69 |
+ use cjk && FONT_SUFFIX+=" otf" |
70 |
+ font_src_install |
71 |
+} |