google-fonts

Google Fonts portage overlay
git clone https://git.parazyd.org/google-fonts
Log | Files | Refs | Submodules

commit 4c31e60dbdb4df4ad76edb448c67931477a9b11f
parent 2304e8eaf31f7d34ab61fa53b70cc9db4a218e0e
Author: parazyd <parazyd@dyne.org>
Date:   Wed,  6 May 2020 14:09:26 +0200

Add Makefile for generation of ebuilds.

Diffstat:
AMakefile | 42++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,42 @@ +.POSIX: + +REPO = ./fonts + +APACHE_LICENSE = Apache-2.0 +APACHE_SHLICENSE = apache +APACHE_FONTS = $(shell ./tools/getfonts $(REPO)/apache) + +OFL_LICENSE = OFL-1.1 +OFL_SHLICENSE = ofl +OFL_FONTS = $(shell ./tools/getfonts $(REPO)/ofl) + +all: $(APACHE_FONTS) $(OFL_FONTS) + +update: + cd $(REPO) && git pull origin master + git add fonts + git commit -m 'Update google-fonts submodule to latest revision.' + +$(APACHE_FONTS): + mkdir -p $@ + cp metadata.skel $@/metadata.xml + sed \ + -e "s,@PRETTYNAME@,$(shell ./tools/prettyname $(REPO)/apache/$(shell basename $@) | tr '+' ' ')," \ + -e "s,@PRETTYNAMEURL@,$(shell ./tools/prettyname $(REPO)/apache/$(shell basename $@))," \ + -e "s,@LICENSE@,$(APACHE_LICENSE)," \ + -e "s,@SHLICENSE@,$(APACHE_SHLICENSE)," \ + -e "s,@FONT@,$(shell basename $@)," \ + < ebuild.skel > $@/$(shell basename $@)-9999.ebuild + +$(OFL_FONTS): + mkdir -p $@ + cp metadata.skel $@/metadata.xml + sed \ + -e "s,@PRETTYNAME@,$(shell ./tools/prettyname $(REPO)/ofl/$(shell basename $@) | tr '+' ' ')," \ + -e "s,@PRETTYNAMEURL@,$(shell ./tools/prettyname $(REPO)/ofl/$(shell basename $@))," \ + -e "s,@LICENSE@,$(OFL_LICENSE)," \ + -e "s,@SHLICENSE@,$(OFL_SHLICENSE)," \ + -e "s,@FONT@,$(shell basename $@)," \ + < ebuild.skel > $@/$(shell basename $@)-9999.ebuild + +.PHONY: all update