aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Charles Campbell <rossbridger.cc@gmail.com>2021-01-10 01:04:07 +0800
committerRoss Charles Campbell <rossbridger.cc@gmail.com>2021-01-10 01:09:19 +0800
commit658b312fb622835bada611838bb8364ba8ff56d6 (patch)
tree881f3b74a4b97f4db3ae6e6eccb15862bc6b9964 /media-fonts
parentsci-mathematics/frama-c: new package (diff)
downloadguru-658b312fb622835bada611838bb8364ba8ff56d6.tar.gz
guru-658b312fb622835bada611838bb8364ba8ff56d6.tar.bz2
guru-658b312fb622835bada611838bb8364ba8ff56d6.zip
media-fonts/source-han-serif: New package
Closes: https://bugs.gentoo.org/699612 Closes: https://bugs.gentoo.org/618740 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Ross Charles Campbell <rossbridger.cc@gmail.com>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/source-han-serif/Manifest4
-rw-r--r--media-fonts/source-han-serif/metadata.xml11
-rw-r--r--media-fonts/source-han-serif/source-han-serif-1.001.ebuild32
3 files changed, 47 insertions, 0 deletions
diff --git a/media-fonts/source-han-serif/Manifest b/media-fonts/source-han-serif/Manifest
new file mode 100644
index 000000000..ae7820f2a
--- /dev/null
+++ b/media-fonts/source-han-serif/Manifest
@@ -0,0 +1,4 @@
+DIST source-han-serif-ja-1.001.zip 36733628 BLAKE2B 0c171c414b350ecb65ade49d80bfed127c8f339a34fc43f9c0ee2fb853521165d81f6a3bd65be01c6d404c679d26930494fa077df0aec4b5c3783341c624cddc SHA512 5e6005e904619b671b1ffd089a0f44e0502e3a6af1dca749ddcf0fe0fe6d67cbb0d2e19099f5e0da173a31e67bcbeb6f884e41eb998141346be69122452a0ae4
+DIST source-han-serif-ko-1.001.zip 38346428 BLAKE2B 423d09b686d4c953e14689e92769bc1bd93168d64f930f121d30f8b04610fe9f47c3eca7dd1adbff30325d599c7336159dddf795612a0a40d238c5831f622297 SHA512 0562aaab11926a70672c0aba6dc0e212492067d02bea71c2508ff199c84a7b02e5e2dc87aaa8b2a966cdeb5ef30ecc8e8ebe0c2eea8e881b788adfaa00aa2e7c
+DIST source-han-serif-zh_CN-1.001.zip 66778823 BLAKE2B 8878b8dfbbf5b15067a31fe0a1055f8e3de7afe280072dd23226fe06bba403e3e69b50b5ecac28e7b53f916f3e5c821696aa399a9893089b59fa78c020e19063 SHA512 e8bd7776caff6a70945c23ec02ece2310fbe905768ae784698bf937ed6e376e2065f535f2498909d962b3942c524f8621c1fd4bc41e3c2d3d033806cab4a0ffc
+DIST source-han-serif-zh_TW-1.001.zip 34610053 BLAKE2B 9f7ff54a1ae1f3b87ce0c4854d77860e96d8973c9edec5d8442e50a8055fe440f7a8663b341555af9094c2c07ebac022f5b1e8ce097e117087fb1a4a6cb91918 SHA512 29f88f7f7b280187fc46e7e14a3bf869c1e543b1f6be0667e1fdae06a934471124207b7d45ae505bf3bf2f4c0541ed1ffb8612992342d81d85a6587e85545aa4
diff --git a/media-fonts/source-han-serif/metadata.xml b/media-fonts/source-han-serif/metadata.xml
new file mode 100644
index 000000000..bc2caf73c
--- /dev/null
+++ b/media-fonts/source-han-serif/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rossbridger.cc@gmail.com</email>
+ <name>Ross Charles Campbell</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">adobe-fonts/source-han-serif</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-fonts/source-han-serif/source-han-serif-1.001.ebuild b/media-fonts/source-han-serif/source-han-serif-1.001.ebuild
new file mode 100644
index 000000000..998d253e3
--- /dev/null
+++ b/media-fonts/source-han-serif/source-han-serif-1.001.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit font
+
+DESCRIPTION="Pan-CJK OpenType/CFF font family"
+HOMEPAGE="https://github.com/adobe-fonts/source-han-serif/"
+SRC_URI="
+ l10n_ja? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSerifJP.zip -> ${PN}-ja-${PV}.zip )
+ l10n_ko? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSerifKR.zip -> ${PN}-ko-${PV}.zip )
+ l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSerifCN.zip -> ${PN}-zh_CN-${PV}.zip )
+ l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSerifTW.zip -> ${PN}-zh_TW-${PV}.zip )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
+IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-TW"
+REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW )"
+
+S=${WORKDIR}
+FONT_SUFFIX="otf"
+RESTRICT="binchecks strip"
+
+BDEPEND="app-arch/unzip"
+
+src_install() {
+ use l10n_ja && FONT_S="${S}/SourceHanSerifJP" font_src_install
+ use l10n_ko && FONT_S="${S}/SourceHanSerifKR" font_src_install
+ use l10n_zh-CN && FONT_S="${S}/SourceHanSerifCN" font_src_install
+ use l10n_zh-TW && FONT_S="${S}/SourceHanSerifTW" font_src_install
+}