Skip to contentSkip to conversation

package/font-awesome: make it compatible with fontconfig

PATCH Superseded Fabrice Fontaine 2 participants 2 messages Feb 25, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/font-awesome: make it compatible with fontconfig

This commit installs font-awesome in the standard fonts directory making it available systemwide.

Thanks to baruch for his technical critique.

---
Changes v1 -> v2 (after review of Arnout Vandecappelle):
- Keep only install of otf file and don't remove install of other files

 package/font-awesome/font-awesome.mk | 2 ++
 1 file changed, 2 insertions(+)
package/font-awesome/font-awesome.mk +2 -0
index 666346be0e..85e5a239c5 100644
@@ -10,6 +10,8 @@ FONT_AWESOME_LICENSE = OFL-1.1 (font), MIT (CSS, LESS and Sass files)
 FONT_AWESOME_DIRECTORIES_LIST = css fonts less scss
 
 define FONT_AWESOME_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/fonts/font-awesome/
+	cp $(@D)/fonts/*.otf $(TARGET_DIR)/usr/share/fonts/font-awesome
 	mkdir -p $(TARGET_DIR)/usr/share/font-awesome/
 	$(foreach d,$(FONT_AWESOME_DIRECTORIES_LIST),\
 		cp -dpfr $(@D)/$(d) $(TARGET_DIR)/usr/share/font-awesome$(sep))
Signature · 1 line
2.25.0
#1 lore raw

PATCH v2 1/1 package/font-awesome: make it compatible with fontconfig

Hi Fabrice,

Quoted 18 lines · Fabrice Fontaine

This commit installs font-awesome in the standard fonts directory making it available systemwide.

Thanks to baruch for his technical critique.

---
Changes v1 -> v2 (after review of Arnout Vandecappelle):
- Keep only install of otf file and don't remove install of other files

 package/font-awesome/font-awesome.mk | 2 ++
 1 file changed, 2 insertions(+)
package/font-awesome/font-awesome.mk +0 -0
index 666346be0e..85e5a239c5 100644

package/font-awesome/font-awesome.mk FONT_AWESOME_LICENSE = OFL-1.1 (font), MIT (CSS, LESS and Sass files) · line 14

Quoted 5 lines
package/font-awesome/font-awesome.mk +2 -0
@@ -10,6 +10,8 @@ FONT_AWESOME_LICENSE = OFL-1.1 (font), MIT (CSS, LESS and Sass files)
 FONT_AWESOME_DIRECTORIES_LIST = css fonts less scss
 
 define FONT_AWESOME_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/fonts/font-awesome/
+	cp $(@D)/fonts/*.otf $(TARGET_DIR)/usr/share/fonts/font-awesome

Maybe just create a symlink in $(TARGET_DIR)/usr/share/fonts/font-awesome pointing to ../font-awesome? This would avoid duplication of *.otf files.

Does that work?

baruch

Quoted 3 lines
package/font-awesome/font-awesome.mk +0 -0
 	mkdir -p $(TARGET_DIR)/usr/share/font-awesome/
 	$(foreach d,$(FONT_AWESOME_DIRECTORIES_LIST),\
 		cp -dpfr $(@D)/$(d) $(TARGET_DIR)/usr/share/font-awesome$(sep))
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -