[meta-oe] takao-fonts: It should be in ttf-fonts directory as the other ttf fonts.

Submitted by leimaohui on Aug. 13, 2021, 4:14 p.m. | Patch ID: 180065

Details

Message ID 1628871245-5054-1-git-send-email-leimaohui@fujitsu.com
State New
Headers show

Commit Message

leimaohui Aug. 13, 2021, 4:14 p.m.
- Moved it to ttf-fonts directory.
- Rename to ttf-takao.
- Use ttf.inc instead of rewrite do_install.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 .../ttf-takao_003.03.01.bb}                      | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-graphics/{takao-fonts/takao-fonts_003.03.01.bb => ttf-fonts/ttf-takao_003.03.01.bb} (57%)

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
similarity index 57%
rename from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb
rename to meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
index 9ddfc6ae7..2c373f946 100644
--- a/meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
@@ -1,3 +1,5 @@ 
+require ttf.inc
+
 SUMMARY = "Takao Fonts are a community developed derivatives of IPA Fonts."
 DESCRIPTION = "Takao Fonts are a community developed derivatives of IPA Fonts."
 
@@ -6,14 +8,20 @@  SECTION = "User Interface/X"
 
 LICENSE = "IPA"
 LIC_FILES_CHKSUM = "file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644e8221276"
+PR = "r0"
+
 SRC_URI = "https://launchpad.net/${BPN}/trunk/15.03/+download/TakaoFonts_00303.01.tar.xz"
 SRC_URI[md5sum] = "8cd3fe724faa5034a9369e98cf108d2d"
 SRC_URI[sha256sum] = "e9871f72ac69acb3e277aebbee7ca01fbebf54800733e29fafdc46133fc3552f"
 
 S = "${WORKDIR}/TakaoFonts_00303.01"
-do_install() {
-    install -m 0755 -d ${D}/${datadir}/fonts
-    install -m 0644 -p ${S}/*.ttf ${D}/${datadir}/fonts/
-}
+
+PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"
+FONT_PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"
+
+FILES:ttf-takao-pgothic = "${datadir}/fonts/truetype/TakaoPGothic.ttf"
+FILES:ttf-takao-gothic = "${datadir}/fonts/truetype/TakaoGothic.ttf"
+FILES:ttf-takao-pmincho = "${datadir}/fonts/truetype/TakaoPMincho.ttf"
+FILES:ttf-takao-mincho = "${datadir}/fonts/truetype/TakaoMincho.ttf"
 
 FILES:${PN} += "${datadir}/fonts/*.ttf"

Comments

Khem Raj Aug. 13, 2021, 4:33 p.m.
On 8/13/21 9:14 AM, leimaohui wrote:
> - Moved it to ttf-fonts directory.
> - Rename to ttf-takao.
> - Use ttf.inc instead of rewrite do_install.
> 
> Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
> ---
>   .../ttf-takao_003.03.01.bb}                      | 16 ++++++++++++----
>   1 file changed, 12 insertions(+), 4 deletions(-)
>   rename meta-oe/recipes-graphics/{takao-fonts/takao-fonts_003.03.01.bb => ttf-fonts/ttf-takao_003.03.01.bb} (57%)
> 
> diff --git a/meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
> similarity index 57%
> rename from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb
> rename to meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
> index 9ddfc6ae7..2c373f946 100644
> --- a/meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb
> +++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
> @@ -1,3 +1,5 @@
> +require ttf.inc
> +
>   SUMMARY = "Takao Fonts are a community developed derivatives of IPA Fonts."
>   DESCRIPTION = "Takao Fonts are a community developed derivatives of IPA Fonts."
>   
> @@ -6,14 +8,20 @@ SECTION = "User Interface/X"
>   
>   LICENSE = "IPA"
>   LIC_FILES_CHKSUM = "file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644e8221276"
> +PR = "r0"

explicit PR setting is not needed here. I have removed it before staging 
but keep this in mind for future

> +
>   SRC_URI = "https://launchpad.net/${BPN}/trunk/15.03/+download/TakaoFonts_00303.01.tar.xz"
>   SRC_URI[md5sum] = "8cd3fe724faa5034a9369e98cf108d2d"
>   SRC_URI[sha256sum] = "e9871f72ac69acb3e277aebbee7ca01fbebf54800733e29fafdc46133fc3552f"
>   
>   S = "${WORKDIR}/TakaoFonts_00303.01"
> -do_install() {
> -    install -m 0755 -d ${D}/${datadir}/fonts
> -    install -m 0644 -p ${S}/*.ttf ${D}/${datadir}/fonts/
> -}
> +
> +PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"
> +FONT_PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"
> +
> +FILES:ttf-takao-pgothic = "${datadir}/fonts/truetype/TakaoPGothic.ttf"
> +FILES:ttf-takao-gothic = "${datadir}/fonts/truetype/TakaoGothic.ttf"
> +FILES:ttf-takao-pmincho = "${datadir}/fonts/truetype/TakaoPMincho.ttf"
> +FILES:ttf-takao-mincho = "${datadir}/fonts/truetype/TakaoMincho.ttf"
>   
>   FILES:${PN} += "${datadir}/fonts/*.ttf"
> 
> 
> 
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#92599): https://lists.openembedded.org/g/openembedded-devel/message/92599
Mute This Topic: https://lists.openembedded.org/mt/84858560/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-