Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-fonts/source-han-sans: Version bump to 2.000 and 2.001 #12578

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions media-fonts/source-han-sans/Manifest
@@ -1,8 +1,16 @@
DIST source-han-sans-ja-1.001.tar.xz 22688484 BLAKE2B f7f0ff84010c33a225f99b42ffa85552019bdc2fc535688a1d99814f5887213d0948fec6fa0fdc0a4600856528108080025a800d7ef246a3fee96b2ed1b57336 SHA512 fe9b36b1f7f5cbf546e63a8e5bd410cf95c2194a19f037b856f1888bd08dcf42e54dac1160b2654ed73ea54a41d9bced2c186b5153e77b0be8fc93163ab9784c
DIST source-han-sans-ja-1.004.zip 26865889 BLAKE2B 26a735dc6d2e5de21cfb52a29d61ca1e85c3fcdb75ed50792a27ffce59acdf9d4a74261bc74981729d584c13a14e1beae1460d3f2a27aaaf0ffd128f37cd745e SHA512 ae310b2e8eb46935b26f53f8177188e26e4a55909a4ad96ff54682d250e661ca5042f76814b97c800f23bd2e55127f8957ccd42c8c55f2bb1333be7903a9d11a
DIST source-han-sans-ja-2.000.zip 28049588 BLAKE2B 3930d5882ab76a9814e2231e6e6e30c933035811cd981d56eb625057ac7885b79a5d4bcf8db99cb281f85940ef96bf493f470757701f6965da29e64ac2df3144 SHA512 946457f6697e9761ca4c8d6450c53e1ec6251f8525a9aa8df0d26312a40af76977a8605fcc1aac78bea47c96bd7e6455a8af22103836b8e9f2ba769e1ac1cbc0
DIST source-han-sans-ja-2.001.zip 28052346 BLAKE2B 39a6816bbc214f7f663a5e052985fa7b9f2abe6268a1901b30e96ddd4149afeb660469086cbc0601be8c58dea4e20ab5fdcf771f7679f6e72b15c31656bef1f0 SHA512 4a32a09d36cb95e72beb948c2dfe142c3a9b9d1f260cc1051bc80f9deecc2e279df2f40e6c9d9b3833242288d4ecc18724632980869a4566837dd5690091a81f
DIST source-han-sans-ko-1.001.tar.xz 20867288 BLAKE2B 3dae12f461b7f82d65dd96fc43c903974e6118a757f101cf3fcd9658609f1ae3c4a975437efe57da9ce260c48891cc009b5aa5c1e5c12c662d1b9c8babbf5afa SHA512 3a2e305051190babf00271572e7fec23451f19836144a356d76ce9a97f010807b5a5fb0ae7ecf8d2a8de2e1c0f38fc3fc55be8dca9dfc859c23cbf577b6314f9
DIST source-han-sans-ko-1.004.zip 25290327 BLAKE2B de915dc85c84e584e1a6325b35e176c21f7d009653e2b5d8fe24c68df02dac594e64a1d0684a2a65b291a797b4400e4b0e3823deb0f92a473620703c4f8513a7 SHA512 c2a3cfe06254ea05e15c4858d7e6d5759088b41d5ba0f801769681d05eb57c2c981b2a4525a124d4a6c4945360d9bb0e687515d8b8d4c5831565972642298aa1
DIST source-han-sans-ko-2.000.zip 26987944 BLAKE2B c6e3bf226d7c1996aacf57de6748b63521171b38a53b2e1fbacf2addf2ae96b2d085a57004abe67241896fb63c3c88b36c25cfc18afb1985c393a17c27c927f2 SHA512 e17ac142e2b0d2364f7bf803a0c0361c62e722c1d16a6ec69e0eff457e83ba2cbdced65292597db7bd753022e6aa144bfe78b6ddfdd4ee48a0cc9c850052cefd
DIST source-han-sans-ko-2.001.zip 26994172 BLAKE2B 1b7038bdd423688172c252ee71742e31835e2ef1b625f3e1ee373133e6969ea1355085c6aed69caadf7d090b3fa915e53dc2d1c7ffcd33224e2460fa4c3638b5 SHA512 0eb7f4b18e3f60d23ec958d08498d9f5237582f882fe82566756d9734f59743d4016230a53da4f5c1e3b458588afedc59c17a188edf82354123c7b2ec7b11eb3
DIST source-han-sans-zh_CN-1.001.tar.xz 41018072 BLAKE2B 65bed1b889545ff7474b670e1880f07753f45b873b43a63f5d24e616f7c342c7143ce4eb81d005af130859a1eabd33921bed609df9b87daea5c55a2f8f092afc SHA512 bdcccc7b16b0b83adfeb6dcf9040792b3ec835e18e63328c3e30b501f2771a0d3232fc4f0c10899107c40f990d3153951e6103979fa222fc68a93a608fcac3a9
DIST source-han-sans-zh_CN-1.004.zip 50414779 BLAKE2B 61501ac790b4ab88ae48bbcfd3b60a235f9bfe171f143b2b1dc3658abdc4731a5478f2edb8d0931b4df13d60f7fc77601078386ab5c4ec2d9e97a4217e11c385 SHA512 9a38ea7907fdc118e4fa420c976e255120a2f9176c33ea8ce06dbc09f46f95224675178e45c854b674f4a46642123e41a3f3f8f6e9f043e8dcc0322e05a70282
DIST source-han-sans-zh_CN-2.000.zip 52316211 BLAKE2B 0d3a363f8cb111e2f6e41b6a9b21b2b0756763db71864468848e5f8513b52c3849562417d97d480fcdf972cd01060359227da6d4a1172ff89f115edfa65e68a7 SHA512 229ff47a9d4cbdffed7eac0bfc4667750648994756e7e2e8d9f20bffe0d95de1471fbe67b6d8215ed550aa3fcc2ca8bd2f9195245c3c9b2cc4570188a6cdd46f
DIST source-han-sans-zh_CN-2.001.zip 52351259 BLAKE2B 5c7659143a7c6517d2d1f86cee2d2dcd2668b9e17d3cd39d0c7108a43c70a40c76c1e6879ce98640baac0d5579cb8ddf35d76fed5bb6faf61d381eb6c1d0db7d SHA512 91722c54acaf19d0f12e07b46501135cbea669b57f672c653a902f877c96569bcac78fb2c3cd05cf905c83a17eb6eee32d2a2c30dd28f671832f516fe55be7d4
DIST source-han-sans-zh_TW-1.001.tar.xz 28238164 BLAKE2B 626bf22de0bf3aeaeb3ee552b13af62a0ad08b654662abd1e12231fbc55d9f3e1bcf473751a13438f8f8bc54a3e75d9f50cd92706548b8c9f50a0e2b68c5a993 SHA512 909b9a8ce3f28a878b806bf89b7016f31842c333b388db618cbe4acc005e2e0f53af6cfad4fe6957575b8743363ded4568a49b62a65f044d409b0464fe096e39
DIST source-han-sans-zh_TW-1.004.zip 34014710 BLAKE2B 1cb3b344f8d9813b27ea79c6e08ec2c462567cb09325267d1d0dd2e463bef5935d4fd42af8ef8d16dd9b2441e2b2fd0cd323f5065abeddbd911a187a05f6205a SHA512 8e1a7ec36a368499cf132ef63dc531c61a19374eedcbc99c6937ef5d2c1e557662e79b796fa8df5e211ffce6fdf290186a235a357b0a2af75a103f3223b5f914
DIST source-han-sans-zh_TW-2.000.zip 35538489 BLAKE2B cf07f0efebda0c49f0668805e273393f5d8c06042a39680d8c14495396b67ceea641eeedda71623e0049d27aef8056c65b1d4a05785a1b8657d71a9b8e24b211 SHA512 8882423cf15a64fb8840a6daa0771489782a8b3dd16b013676515ced05acfa931b604ab54d86b9b8e3c5783112fbb156b23f4a5aa6ba63288cdad51da247ec25
DIST source-han-sans-zh_TW-2.001.zip 35563862 BLAKE2B a5f422e22fd65650ecf1f81b8d254a294dca65fc342aac4cb53a7626fd9d819a45a21ebe73e4a659fb4841fb4eefb4dd8ac18aaa2954a3145e7ab7f3e92b3404 SHA512 05d0c4b89ed8c7fc6cb7d972c01a862e2f487909b23a422512d4ea8c78cc9a65496570e1f22e8b67ad8fd2b4189312b7efa494f539c4602b8aa8c04cc814a768
34 changes: 34 additions & 0 deletions media-fonts/source-han-sans/source-han-sans-2.000.ebuild
@@ -0,0 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding 2.000 is unnecessary if 2.001 is added too.

# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit font

# Note to maintainers:
# The upstream tarball is huge (over 780 MB), so we use the
# regional subset OTF fonts per region, for the user's convenience.

DESCRIPTION="Pan-CJK OpenType/CFF font family"
HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
SRC_URI="
l10n_ja? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansJP.zip -> ${PN}-ja-${PV}.zip )
l10n_ko? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansKR.zip -> ${PN}-ko-${PV}.zip )
l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansCN.zip -> ${PN}-zh_CN-${PV}.zip )
l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansTW.zip -> ${PN}-zh_TW-${PV}.zip )"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~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"

src_install() {
use l10n_ja && FONT_S="${S}/SourceHanSansJP" font_src_install
use l10n_ko && FONT_S="${S}/SourceHanSansKR" font_src_install
use l10n_zh-CN && FONT_S="${S}/SourceHanSansCN" font_src_install
use l10n_zh-TW && FONT_S="${S}/SourceHanSansTW" font_src_install
}
34 changes: 34 additions & 0 deletions media-fonts/source-han-sans/source-han-sans-2.001.ebuild
@@ -0,0 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update to EAPI=7.

inherit font
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline between EAPI and inherit lines, please.


# Note to maintainers:
# The upstream tarball is huge (over 780 MB), so we use the
# regional subset OTF fonts per region, for the user's convenience.

DESCRIPTION="Pan-CJK OpenType/CFF font family"
HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
SRC_URI="
l10n_ja? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansJP.zip -> ${PN}-ja-${PV}.zip )
l10n_ko? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansKR.zip -> ${PN}-ko-${PV}.zip )
l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansCN.zip -> ${PN}-zh_CN-${PV}.zip )
l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansTW.zip -> ${PN}-zh_TW-${PV}.zip )"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~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}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should quote "${WORKDIR}"

FONT_SUFFIX="otf"
RESTRICT="binchecks strip"

src_install() {
use l10n_ja && FONT_S="${S}/SourceHanSansJP" font_src_install
use l10n_ko && FONT_S="${S}/SourceHanSansKR" font_src_install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add the Hong Kong thing as mentioned in the bug? https://bugs.gentoo.org/699610

use l10n_zh-CN && FONT_S="${S}/SourceHanSansCN" font_src_install
use l10n_zh-TW && FONT_S="${S}/SourceHanSansTW" font_src_install
}