diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index 2a56de115d7..49a82a6c7aa 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -817,12 +817,12 @@ use_latest_release = true prefix = "v" github_account = "Linerre" -["media-fonts/Shanggu"] +["media-fonts/shanggu"] source = "github" github = "GuiWonder/Shanggu" use_latest_release = true prefix = "v" -github_account = "Linerre" +github_account = "curlingchimpanzeeowl" # TODO: version not found: https://sites.google.com/view/jtfoundry/zh-tw/downloads #["media-fonts/taipei-sans-tc"] diff --git a/media-fonts/Shanggu/Shanggu-1.021.ebuild b/media-fonts/Shanggu/Shanggu-1.021.ebuild deleted file mode 100644 index 5576ec9686c..00000000000 --- a/media-fonts/Shanggu/Shanggu-1.021.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit font unpacker - -DESCRIPTION="A Noto-based font for traditional Chinese characters" -HOMEPAGE="https://github.com/GuiWonder/Shanggu" - -SRC_URI=" - mono? ( https://github.com/GuiWonder/${PN}/releases/download/${PV}/${PN}MonoTTFs.7z -> ${PN}Mono-${PV}.7z ) - round? ( https://github.com/GuiWonder/${PN}/releases/download/${PV}/${PN}RoundTTFs.7z -> ${PN}Round-${PV}.7z ) - sans? ( https://github.com/GuiWonder/${PN}/releases/download/${PV}/${PN}SansTTFs.7z -> ${PN}Sans-${PV}.7z ) - serif? ( https://github.com/GuiWonder/${PN}/releases/download/${PV}/${PN}SerifTTFs.7z -> ${PN}Serif-${PV}.7z ) -" - -S="${WORKDIR}" -LICENSE="OFL-1.1" -SLOT="0" -KEYWORDS="~amd64" -IUSE="round sans +serif mono" -REQUIRED_USE="|| ( round sans serif mono )" -BDEPEND=" - app-arch/p7zip -" - -FONT_SUFFIX="ttf" - -src_unpack() { - use mono && unpack_7z "${PN}Mono-${PV}.7z" - use round && unpack_7z "${PN}Round-${PV}.7z" - use sans && unpack_7z "${PN}Sans-${PV}.7z" - use serif && unpack_7z "${PN}Serif-${PV}.7z" -} - -src_install() { - if use serif; then - FONT_S=( - "${S}/${PN}Serif" - "${S}/${PN}SerifFANTI" - "${S}/${PN}SerifJP" - "${S}/${PN}SerifSC" - "${S}/${PN}SerifTC" - ) - font_src_install - fi - - if use sans; then - FONT_S=( - "${S}/${PN}Sans" - "${S}/${PN}SansFANTI" - "${S}/${PN}SansJP" - "${S}/${PN}SansSC" - "${S}/${PN}SansTC" - ) - font_src_install - fi - - if use mono; then - FONT_S=( - "${S}/${PN}Mono" - "${S}/${PN}MonoJP" - "${S}/${PN}MonoSC" - "${S}/${PN}MonoTC" - ) - font_src_install - fi - - if use round; then - FONT_S=( - "${S}/${PN}Round" - "${S}/${PN}RoundFANTI" - "${S}/${PN}RoundJP" - "${S}/${PN}RoundSC" - "${S}/${PN}RoundTC" - ) - font_src_install - fi -} diff --git a/media-fonts/Shanggu/Manifest b/media-fonts/shanggu/Manifest similarity index 100% rename from media-fonts/Shanggu/Manifest rename to media-fonts/shanggu/Manifest diff --git a/media-fonts/Shanggu/metadata.xml b/media-fonts/shanggu/metadata.xml similarity index 100% rename from media-fonts/Shanggu/metadata.xml rename to media-fonts/shanggu/metadata.xml diff --git a/media-fonts/shanggu/shanggu-1.021.ebuild b/media-fonts/shanggu/shanggu-1.021.ebuild new file mode 100644 index 00000000000..0543733a593 --- /dev/null +++ b/media-fonts/shanggu/shanggu-1.021.ebuild @@ -0,0 +1,80 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit font unpacker + +DESCRIPTION="A Noto-based font for traditional Chinese characters" +HOMEPAGE="https://github.com/GuiWonder/Shanggu" + +MY_PN="Shanggu" + +SRC_URI=" + mono? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}MonoTTFs.7z -> ${MY_PN}Mono-${PV}.7z ) + round? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}RoundTTFs.7z -> ${MY_PN}Round-${PV}.7z ) + sans? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}SansTTFs.7z -> ${MY_PN}Sans-${PV}.7z ) + serif? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}SerifTTFs.7z -> ${MY_PN}Serif-${PV}.7z ) +" + +S="${WORKDIR}" +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="round sans +serif mono" +REQUIRED_USE="|| ( round sans serif mono )" +BDEPEND=" + app-arch/p7zip +" + +FONT_SUFFIX="ttf" + +src_unpack() { + use mono && unpack_7z "${MY_PN}Mono-${PV}.7z" + use round && unpack_7z "${MY_PN}Round-${PV}.7z" + use sans && unpack_7z "${MY_PN}Sans-${PV}.7z" + use serif && unpack_7z "${MY_PN}Serif-${PV}.7z" +} + +src_install() { + if use serif; then + FONT_S=( + "${S}/${MY_PN}Serif" + "${S}/${MY_PN}SerifFANTI" + "${S}/${MY_PN}SerifJP" + "${S}/${MY_PN}SerifSC" + "${S}/${MY_PN}SerifTC" + ) + fi + + if use sans; then + FONT_S+=( + "${S}/${MY_PN}Sans" + "${S}/${MY_PN}SansFANTI" + "${S}/${MY_PN}SansJP" + "${S}/${MY_PN}SansSC" + "${S}/${MY_PN}SansTC" + ) + fi + + if use mono; then + FONT_S+=( + "${S}/${MY_PN}Mono" + "${S}/${MY_PN}MonoJP" + "${S}/${MY_PN}MonoSC" + "${S}/${MY_PN}MonoTC" + ) + fi + + if use round; then + FONT_S+=( + "${S}/${MY_PN}Round" + "${S}/${MY_PN}RoundFANTI" + "${S}/${MY_PN}RoundJP" + "${S}/${MY_PN}RoundSC" + "${S}/${MY_PN}RoundTC" + ) + fi + + font_src_install +} diff --git a/profiles/updates/4Q-2024 b/profiles/updates/4Q-2024 new file mode 100644 index 00000000000..ddd3a3e3ea5 --- /dev/null +++ b/profiles/updates/4Q-2024 @@ -0,0 +1 @@ +move media-fonts/Shanggu media-fonts/shanggu \ No newline at end of file