package/font-awesome: make it compatible with fontconfig
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
@@ -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
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.
Signed-off-by Benjamin Calderon <[email protected]>Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Arnout Vandecappelle):
- Keep only install of otf file and don't remove install of other filespackage/font-awesome/font-awesome.mk | 2 ++ 1 file changed, 2 insertions(+)package/font-awesome/font-awesome.mk +0
-0
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
-0mkdir -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 -