diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2020-09-12 12:55:13 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-09-12 13:40:36 -0700 |
commit | b362a0a2dad537dc25485df413f09e4495b395c0 (patch) | |
tree | fe83093cad34838de8791fd5e3a6cff60f190e2c /meta-oe | |
parent | 73263bbfe2b06158811dca99cfdbf0e2083fc329 (diff) | |
download | meta-openembedded-b362a0a2dad537dc25485df413f09e4495b395c0.tar.gz |
Initial add source-code-pro-fonts 2.030_1.050
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
3 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/conf/layer.conf b/meta-oe/conf/layer.conf index 5178678da..5b79b59b7 100644 --- a/meta-oe/conf/layer.conf +++ b/meta-oe/conf/layer.conf | |||
@@ -92,6 +92,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ | |||
92 | source-han-sans-jp-fonts->fontconfig \ | 92 | source-han-sans-jp-fonts->fontconfig \ |
93 | source-han-sans-kr-fonts->fontconfig \ | 93 | source-han-sans-kr-fonts->fontconfig \ |
94 | source-han-sans-tw-fonts->fontconfig \ | 94 | source-han-sans-tw-fonts->fontconfig \ |
95 | source-code-pro-fonts->fontconfig \ | ||
95 | " | 96 | " |
96 | 97 | ||
97 | DEFAULT_TEST_SUITES_pn-meta-oe-ptest-image = " ${PTESTTESTSUITE}" | 98 | DEFAULT_TEST_SUITES_pn-meta-oe-ptest-image = " ${PTESTTESTSUITE}" |
diff --git a/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf new file mode 100644 index 000000000..badb1b011 --- /dev/null +++ b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <alias> | ||
5 | <family>monospace</family> | ||
6 | <prefer> | ||
7 | <family>Source Code Pro</family> | ||
8 | </prefer> | ||
9 | </alias> | ||
10 | <alias> | ||
11 | <family>Source Code Pro</family> | ||
12 | <default> | ||
13 | <family>monospace</family> | ||
14 | </default> | ||
15 | </alias> | ||
16 | </fontconfig> | ||
17 | |||
diff --git a/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb new file mode 100644 index 000000000..5d10195f7 --- /dev/null +++ b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | require ttf.inc | ||
2 | |||
3 | SUMMARY = "Adobe Source Code Pro" | ||
4 | HOMEPAGE = "https://github.com/adobe-fonts/source-code-pro" | ||
5 | LICENSE = "OFL-1.1" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c7c16bdc2c96af797293d68503e5c65c" | ||
7 | |||
8 | inherit allarch fontcache | ||
9 | |||
10 | SRC_URI = " \ | ||
11 | https://github.com/adobe-fonts/source-code-pro/releases/download/2.030R-ro/1.050R-it/source-code-pro-2.030R-ro-1.050R-it.zip \ | ||
12 | file://44-source-code-pro-fonts-fontconfig.conf \ | ||
13 | " | ||
14 | SRC_URI[sha256sum] = "da2ac159497d31b0c6d9daa8fc390fb8252e75b4a9805ace6a2c9cccaed4932e" | ||
15 | S = "${WORKDIR}/source-code-pro-2.030R-ro-1.050R-it" | ||
16 | |||
17 | do_install() { | ||
18 | install -d ${D}${sysconfdir}/fonts/conf.d/ | ||
19 | install -m 0644 ${WORKDIR}/44-source-code-pro-fonts-fontconfig.conf ${D}${sysconfdir}/fonts/conf.d/ | ||
20 | |||
21 | install -d ${D}${datadir}/fonts/truetype/ | ||
22 | find ./ -name '*.otf' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; | ||
23 | } | ||
24 | |||
25 | FILES_${PN} = " \ | ||
26 | ${sysconfdir}/fonts \ | ||
27 | ${datadir}/fonts \ | ||
28 | " | ||
29 | |||