<commit_before>DESCRIPTION = "A library for configuring and customizing font access."
SECTION = "libs"
LICENSE = "BSD"
DEPENDS = "expat freetype zlib"

# Work around past breakage in debian.bbclass
RPROVIDES_fontconfig-utils = "libfontconfig-utils"
RCONFLICTS_fontconfig-utils = "libfontconfig-utils"

SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz;name=fontconfig"
SRC_URI[fontconfig.md5sum] = "77e15a92006ddc2adbb06f840d591c0e"
SRC_URI[fontconfig.sha256sum] = "fa2a1c6eea654d9fce7a4b1220f10c99cdec848dccaf1625c01f076b31382335"

SRC_URI += "missing-structs.patch"

S = "${WORKDIR}/fontconfig-${PV}"

inherit autotools pkgconfig

EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} --with-cache-dir=/var/lib/fontconfig"
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"

export HASDOCBOOK="no"
BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2"
PARALLEL_MAKE = ""

do_configure_append () {
        sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile<commit_msg>Fix bug in SRC_URI usage.  Testing++<commit_after>DESCRIPTION = "A library for configuring and customizing font access."
SECTION = "libs"
LICENSE = "BSD"
DEPENDS = "expat freetype zlib"

# Work around past breakage in debian.bbclass
RPROVIDES_fontconfig-utils = "libfontconfig-utils"
RCONFLICTS_fontconfig-utils = "libfontconfig-utils"

SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz;name=fontconfig"
SRC_URI[fontconfig.md5sum] = "77e15a92006ddc2adbb06f840d591c0e"
SRC_URI[fontconfig.sha256sum] = "fa2a1c6eea654d9fce7a4b1220f10c99cdec848dccaf1625c01f076b31382335"

SRC_URI += "file://missing-structs.patch"

S = "${WORKDIR}/fontconfig-${PV}"

inherit autotools pkgconfig

EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} --with-cache-dir=/var/lib/fontconfig"
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"

export HASDOCBOOK="no"
BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2"
PARALLEL_MAKE = ""

do_configure_append () {
        sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile
{'fraction_non_alphanumeric': 0.13432835820895522, 'fraction_numerical': 0.06069651741293532, 'mean_word_length': 6.131205673758865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3001424', 'n_tokens_mistral': 891, 'n_tokens_neox': 811, 'n_words': 120}