-
Notifications
You must be signed in to change notification settings - Fork 187
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/Shanggu: new package, add 1.021 #5649
base: master
Are you sure you want to change the base?
Conversation
✔️
|
|
||
src_install() { | ||
if use serif; then | ||
FONT_S=( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否可以用数组append的方式更新FONT_S,这样整个src_install都可以省略。
https://stackoverflow.com/questions/1951506/add-a-new-element-to-an-array-without-specifying-the-index-in-bash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我看看能不能把显式的 src_install
去掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FONT_S=( | |
FONT_S=() | |
use serif && FONT_S+=( | |
"${WORKDIR}/${PN}Serif" | |
"${WORKDIR}/${PN}SerifFANTI" | |
"${WORKDIR}/${PN}SerifJP" | |
"${WORKDIR}/${PN}SerifSC" | |
"${WORKDIR}/${PN}SerifTC" | |
) | |
use sans && FONT_S+=( | |
"${WORKDIR}/${PN}Sans" | |
"${WORKDIR}/${PN}SansFANTI" | |
"${WORKDIR}/${PN}SansJP" | |
"${WORKDIR}/${PN}SansSC" | |
"${WORKDIR}/${PN}SansTC" | |
) | |
use mono && FONT_S+=( | |
"${WORKDIR}/${PN}Mono" | |
"${WORKDIR}/${PN}MonoJP" | |
"${WORKDIR}/${PN}MonoSC" | |
"${WORKDIR}/${PN}MonoTC" | |
) | |
use round && FONT_S+=( | |
"${WORKDIR}/${PN}Round" | |
"${WORKDIR}/${PN}RoundFANTI" | |
"${WORKDIR}/${PN}RoundJP" | |
"${WORKDIR}/${PN}RoundSC" | |
"${WORKDIR}/${PN}RoundTC" | |
) |
这样呢? 但好像没见过 use flagxxx
在 phase function 外面用的……
fix #5648
@curlingchimpanzeeowl if you'd like to maintain this font, feel free to modify the
overlay.toml
file:so that you will be notified when there is a newer version of this font released by the upstream.
You may also want to change the maintainer in the
metadata.xml
file to be consistent.I have tested other font families by issuing the following
The full installation takes up 4.5GB however, just for your reference: