mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-23 08:48:24 +00:00
Adobe's 2.042R-u/1.062R-i/1.026R-vf release re-compiles all fonts so
that the static instances correspond to the variable-font versions;
uprights are at 2.042 and italics at 1.062.
Upstream also reorganised the release assets: instead of a single
all-formats source-code-pro-<ver>.zip containing a top-level versioned
directory (plus EOT/OTF/TTF/WOFF trees and a bundled LICENSE.txt), each
format is now published as its own archive that unpacks a bare OTF/
directory with no license file. So SRC_URI now fetches
OTF-source-code-pro-2.042R-u_1.062R-i.zip with ;subdir=${BP}, S points
at that subdir, and LIC_FILES_CHKSUM references the common OFL-1.1 text
(the repository's LICENSE.md is the verbatim SIL OFL 1.1, only the
copyright year and Adobe notice differ, and it is no longer shipped in
the font archive). UPSTREAM_CHECK_REGEX is adjusted for the new
"R-u" tag suffix. All 14 OTF faces are packaged as before.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
33 lines
1.1 KiB
BlitzBasic
33 lines
1.1 KiB
BlitzBasic
require ttf.inc
|
|
|
|
SUMMARY = "Adobe Source Code Pro"
|
|
HOMEPAGE = "https://github.com/adobe-fonts/source-code-pro"
|
|
LICENSE = "OFL-1.1"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=fac3a519e5e9eb96316656e0ca4f2b90"
|
|
|
|
inherit allarch fontcache
|
|
|
|
SRC_URI = " \
|
|
https://github.com/adobe-fonts/source-code-pro/releases/download/2.042R-u/1.062R-i/1.026R-vf/OTF-source-code-pro-2.042R-u_1.062R-i.zip;subdir=${BP} \
|
|
file://44-source-code-pro-fonts-fontconfig.conf \
|
|
"
|
|
SRC_URI[sha256sum] = "754a2e3ebb945ae905d720ac5896b3b34acc9546dd6551ef9536869788629dae"
|
|
S = "${UNPACKDIR}/${BP}"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/adobe-fonts/source-code-pro/tags"
|
|
UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+\.\d+)R-u"
|
|
|
|
do_install() {
|
|
install -d ${D}${sysconfdir}/fonts/conf.d/
|
|
install -m 0644 ${UNPACKDIR}/44-source-code-pro-fonts-fontconfig.conf ${D}${sysconfdir}/fonts/conf.d/
|
|
|
|
install -d ${D}${datadir}/fonts/truetype/
|
|
find ./ -name '*.otf' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
|
|
}
|
|
|
|
FILES:${PN} = " \
|
|
${sysconfdir}/fonts \
|
|
${datadir}/fonts \
|
|
"
|
|
|