Skip to contentSkip to conversation

takao-fonts: It should be in ttf-fonts directory as the other ttf fonts.

PATCH Superseded leimaohui 2 participants 6 messages Aug 13, 2021 – Aug 16, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

leimaohui

author
#0 lore raw

PATCH 1/1 takao-fonts: It should be in ttf-fonts directory as the other ttf fonts.

- Moved it to ttf-fonts directory.
- Rename to ttf-takao.
- Use ttf.inc instead of rewrite do_install.

---
 .../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%)
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +12 -4
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
@@ -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"
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 ttf-ipa: Added a new font.

IPAfonts is a Japanese OpenType font set.

---
 .../ttf-fonts/ttf-ipa_003.03.01.bb            | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb
meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb new file +25 -0
new file mode 100644
index 000000000..b0af08097
@@ -0,0 +1,25 @@
+require ttf.inc
+
+SUMMARY = "Ipa fonts - TTF Version"
+HOMEPAGE = "https://moji.or.jp/ipafont"
+LICENSE = "IPA"
+LICENSE_URL = "https://moji.or.jp/ipafont/license/"
+LIC_FILES_CHKSUM = "file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644e8221276 \
+"
+PR = "r0"
+
+SRC_URI = "https://moji.or.jp/wp-content/ipafont/IPAfont/IPAfont00303.zip "
+
+SRC_URI[md5sum] = "39a828acf27790adbe4944dfb4d94bb1"
+SRC_URI[sha256sum] = "f755ed79a4b8e715bed2f05a189172138aedf93db0f465b4e20c344a02766fe5"
+
+S = "${WORKDIR}/IPAfont00303" 
+
+PACKAGES = "ttf-ipag ttf-ipagp ttf-ipam ttf-ipamp"
+FONT_PACKAGES = "ttf-ipag ttf-ipagp ttf-ipam ttf-ipamp"
+
+FILES:ttf-ipag = "${datadir}/fonts/truetype/ipag.ttf"
+FILES:ttf-ipagp = "${datadir}/fonts/truetype/ipagp.ttf"
+FILES:ttf-ipam = "${datadir}/fonts/truetype/ipam.ttf"
+FILES:ttf-ipamp = "${datadir}/fonts/truetype/ipamp.ttf"
+
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [meta-oe][PATCH] ttf-ipa: Added a new font.

Quoted 14 lines · leimaohui

IPAfonts is a Japanese OpenType font set.

---
  .../ttf-fonts/ttf-ipa_003.03.01.bb            | 25 +++++++++++++++++++
  1 file changed, 25 insertions(+)

create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb

meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb new file +0 -0
new file mode 100644
index 000000000..b0af08097

meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb line 9

Quoted 9 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb new file +9 -0
@@ -0,0 +1,25 @@
+require ttf.inc
+
+SUMMARY = "Ipa fonts - TTF Version"
+HOMEPAGE = "https://moji.or.jp/ipafont"
+LICENSE = "IPA"
+LICENSE_URL = "https://moji.or.jp/ipafont/license/"
+LIC_FILES_CHKSUM = "file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644e8221276 \
+"
+PR = "r0"

not needed.

meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb line 15

Quoted 6 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb new file +6 -0
+
+SRC_URI = "https://moji.or.jp/wp-content/ipafont/IPAfont/IPAfont00303.zip "
+
+SRC_URI[md5sum] = "39a828acf27790adbe4944dfb4d94bb1"
+SRC_URI[sha256sum] = "f755ed79a4b8e715bed2f05a189172138aedf93db0f465b4e20c344a02766fe5"
+

only sha256sum is needed.

meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb line 25

Quoted 11 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-ipa_003.03.01.bb new file +10 -0
+S = "${WORKDIR}/IPAfont00303"
+
+PACKAGES = "ttf-ipag ttf-ipagp ttf-ipam ttf-ipamp"
+FONT_PACKAGES = "ttf-ipag ttf-ipagp ttf-ipam ttf-ipamp"
+
+FILES:ttf-ipag = "${datadir}/fonts/truetype/ipag.ttf"
+FILES:ttf-ipagp = "${datadir}/fonts/truetype/ipagp.ttf"
+FILES:ttf-ipam = "${datadir}/fonts/truetype/ipam.ttf"
+FILES:ttf-ipamp = "${datadir}/fonts/truetype/ipamp.ttf"
+

Since its a new recipe, add it to test packagegroup as well.

I have addressed all these issues this time.

Quoted 4 lines
#3 lore raw
In reply to leimaohui
Quoted 24 lines · leimaohui

- Moved it to ttf-fonts directory.
- Rename to ttf-takao.
- Use ttf.inc instead of rewrite do_install.

---
  .../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%)

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +2 -0
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
@@ -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."
 

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 11

Quoted 4 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +1 -0
@@ -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

Quoted 25 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +9 -4
+
  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"
#4 lore raw

There are additional recipes which depend on this package and they should be adjusted accordingly as well see

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb: takao-fonts \
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb:HOMEPAGE =
"https://launchpad.net/takao-fonts"
meta-oe/recipes-support/uim/uim_1.8.8.bb:DEPENDS:append:class-target
= " intltool-native gtk+ gtk+3 uim-native takao-fonts"
meta-oe/recipes-support/uim/uim_1.8.8.bb:RDEPENDS:uim-anthy =
"takao-fonts anthy libanthy0"

please send a v2 with these fixed to reflect the recipe rename change as well.

Quoted 61 lines · Khem Raj
Quoted 24 lines · leimaohui

- Moved it to ttf-fonts directory.
- Rename to ttf-takao.
- Use ttf.inc instead of rewrite do_install.

---
  .../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%)

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +2 -0
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
@@ -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."
 

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 11

Quoted 4 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +1 -0
@@ -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

Quoted 25 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +9 -4
+
  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"
author
#5 lore raw

To Khem

Thank your for comment, I have fixed these issues, and sent patch v2.

Best regards
Lei

Quoted 99 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Monday, August 16, 2021 1:41 AM
To: Lei, Maohui <[email protected]>; openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] takao-fonts: It should be in ttf-fonts directory as the other ttf fonts.

There are additional recipes which depend on this package and they should be adjusted accordingly as well see

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:
takao-fonts \
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb:HOMEPAGE =
"https://launchpad.net/takao-fonts"
meta-oe/recipes-support/uim/uim_1.8.8.bb:DEPENDS:append:class-target
= " intltool-native gtk+ gtk+3 uim-native takao-fonts"
meta-oe/recipes-support/uim/uim_1.8.8.bb:RDEPENDS:uim-anthy =
"takao-fonts anthy libanthy0"

please send a v2 with these fixed to reflect the recipe rename change as well.

Quoted 11 lines · Khem Raj
Quoted 7 lines · leimaohui

- Moved it to ttf-fonts directory.
- Rename to ttf-takao.
- Use ttf.inc instead of rewrite do_install.

---
  .../ttf-takao_003.03.01.bb}                      | 16

++++++++++++----

Quoted 5 lines
Quoted 5 lines
  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%)

Quoted 14 lines
Quoted 11 lines

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

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb line 3

Quoted 3 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +2 -0
@@ -1,3 +1,5 @@
+require ttf.inc
+
  SUMMARY = "Takao Fonts are a community developed derivatives of IPA

Fonts."

Quoted 1 line

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb line 4

Quoted 1 line
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +0 -0
  DESCRIPTION = "Takao Fonts are a community developed derivatives of

IPA Fonts."

Quoted 5 lines

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 10

Quoted 5 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +0 -0
@@ -6,14 +8,20 @@ SECTION = "User Interface/X"
 
  LICENSE = "IPA"
  LIC_FILES_CHKSUM =

"file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644 e8221276"

Quoted 7 lines

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 11

Quoted 1 line
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +1 -0
+PR = "r0"

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

Quoted 2 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +1 -0
+
  SRC_URI =

"https://launchpad.net/${BPN}/trunk/15.03/+download/TakaoFonts_00303.01.t ar.xz"

Quoted 2 lines

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 15

Quoted 2 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +0 -0
  SRC_URI[md5sum] = "8cd3fe724faa5034a9369e98cf108d2d"
  SRC_URI[sha256sum] =

"e9871f72ac69acb3e277aebbee7ca01fbebf54800733e29fafdc46133fc3552f"

Quoted 8 lines

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X"

Quoted 8 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +2 -4
  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"

Quoted 1 line

meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb SECTION = "User Interface/X" · line 19

Quoted 1 line
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +1 -0
+FONT_PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho

ttf-takao-mincho"

Quoted 12 lines
Quoted 12 lines
meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb renamed from meta-oe/recipes-graphics/takao-fonts/takao-fonts_003.03.01.bb +5 -0
+
+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"