media-fonts/yozai-font: new package, add 0.868
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
1 parent
e2d0e44ea2
commit
2ebdbcf8f5
4 files changed
+69
No files matched your search
@@ -943,6 +943,13 @@ github_account = "Linerre"
|
||||
#url = "https://code.google.com/archive/p/wangfonts/downloads"
|
||||
#regex = "wangfonts-([\\d.]+).zip"
|
||||
|
||||
["media-fonts/yozai-font"]
|
||||
source = "github"
|
||||
github = "lxgw/yozai-font"
|
||||
use_latest_release = true
|
||||
prefix = "v"
|
||||
github_account = "vowstar"
|
||||
|
||||
["media-fonts/zhudou"]
|
||||
source = "github"
|
||||
github = "Buernia/Zhudou-Sans"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
DIST yozai-font-0.868.ttf 15605374 BLAKE2B 0a978db879d40c6df8b180d0c5533e3468ecad307f5d139280db067ac5a36123d559835222b20d0ed091fefaa4fed4fd89be09992cb0ef7e9422e6191267604b SHA512 f9cc10f7800573f077a58d28d9b1bc61d7acb35b4c82e28a3adaf142c22bfdd06fcccc42eed43eb12742657ed530fbc76123417a78096302f77c0d1f9e23420f
|
||||
DIST yozai-font-light-0.868.ttf 15229134 BLAKE2B c6603ef39ad15d923266a34eaa6ff5c56c5504a2d378811297fb111d1b6efeb138dab6f020b7b945a3c24e604e03758715fd18f1577da14bcb47cbe5e66d417a SHA512 508b17e54f93782f2fdc60dceb9374298f2c2341b4140562626cdd911e15694b7eff9e364beb9121cc0bfd1f98145836d93baf54873a94b09936065422b73936
|
||||
DIST yozai-font-medium-0.868.ttf 15238394 BLAKE2B b0fadd72c736b103add2e7d87c9ca73589ab758761442011a8540cdf4995d9c9a560cba17fd4a2aa21fbf668c0db9c4d9546dc7d0503f84623dfb88ed4c8e4ef SHA512 4be998a47b6fe9f73165ebe9920a9db624e7fecb78c5199def5290d599aa4713c8c7bfc629aa43ca71734096916d75fc19805772fec8bb5d3ad4ba44ee583e99
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="github">lxgw/yozai-font</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Yozai Font (悠哉字体) is an open-source Chinese font derived from
|
||||
Y.OzFont. This is a casual, friendly Chinese font suitable for
|
||||
informal contexts and creative designs. The font includes three
|
||||
weights: Light, Regular, and Medium, providing flexibility for
|
||||
various design needs.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
悠哉字体是一款衍生于 Y.OzFont 的开源中文字体。这是一款休闲、
|
||||
友好的中文字体,适合非正式场合和创意设计。字体包含三个字重:
|
||||
Light(细体)、Regular(常规体)和 Medium(中等体),为各种
|
||||
设计需求提供灵活性。
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="light">Light weight variant</flag>
|
||||
<flag name="regular">Regular weight variant</flag>
|
||||
<flag name="medium">Medium weight variant</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit font
|
||||
|
||||
DESCRIPTION="Yozai Font (悠哉字体) - A Chinese font derived from Y.OzFont"
|
||||
HOMEPAGE="https://github.com/lxgw/yozai-font"
|
||||
SRC_URI="
|
||||
light? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Light.ttf -> ${PN}-light-${PV}.ttf )
|
||||
regular? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Regular.ttf -> ${P}.ttf )
|
||||
medium? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Medium.ttf -> ${PN}-medium-${PV}.ttf )
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
LICENSE="OFL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~loong ~riscv ~x86"
|
||||
|
||||
IUSE="light +regular medium"
|
||||
|
||||
FONT_SUFFIX="ttf"
|
||||
|
||||
src_unpack() {
|
||||
use light && cp -v "${DISTDIR}/${PN}-light-${PV}.ttf" "Yozai-Light.ttf"
|
||||
use regular && cp -v "${DISTDIR}/${P}.ttf" "Yozai-Regular.ttf"
|
||||
use medium && cp -v "${DISTDIR}/${PN}-medium-${PV}.ttf" "Yozai-Medium.ttf"
|
||||
}
|
||||
Reference in new issue
Block a user