summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-09-12 12:55:13 +0200
committerKhem Raj <raj.khem@gmail.com>2020-09-12 13:40:36 -0700
commitb362a0a2dad537dc25485df413f09e4495b395c0 (patch)
treefe83093cad34838de8791fd5e3a6cff60f190e2c /meta-oe
parent73263bbfe2b06158811dca99cfdbf0e2083fc329 (diff)
downloadmeta-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')
-rw-r--r--meta-oe/conf/layer.conf1
-rw-r--r--meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf17
-rw-r--r--meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb29
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
97DEFAULT_TEST_SUITES_pn-meta-oe-ptest-image = " ${PTESTTESTSUITE}" 98DEFAULT_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 @@
1require ttf.inc
2
3SUMMARY = "Adobe Source Code Pro"
4HOMEPAGE = "https://github.com/adobe-fonts/source-code-pro"
5LICENSE = "OFL-1.1"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c7c16bdc2c96af797293d68503e5c65c"
7
8inherit allarch fontcache
9
10SRC_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"
14SRC_URI[sha256sum] = "da2ac159497d31b0c6d9daa8fc390fb8252e75b4a9805ace6a2c9cccaed4932e"
15S = "${WORKDIR}/source-code-pro-2.030R-ro-1.050R-it"
16
17do_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
25FILES_${PN} = " \
26 ${sysconfdir}/fonts \
27 ${datadir}/fonts \
28"
29