<commit_before>DESCRIPTION = "XML-LibXML"
SECTION = "libs"
LICENSE = ""
DEPENDS += "libxml2 \
        libxml-sax-perl \
	libxml-namespacesupport-perl \
        zlib \
"
PR = "r1"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-${PV}.tar.gz;name=libxml \
        file://libxml-libxml-perl-disable-libxml2-check.patch \
"
SRC_URI[libxml.md5sum] = "33d4294f708e20c298cfe534d1166844"
SRC_URI[libxml.sha256sum] = "53e6cf06772ba9d85055dc6e4488dbd876d2376e48ef3578fa73246ee98b3ba0"

S = "${WORKDIR}/XML-LibXML-${PV}"

inherit cpan

EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR}/libxml2 LIBS=-L${STAGING_LIBDIR}"

BBCLASSEXTEND = "native"

CFLAGS += " -D_GNU_SOURCE "<commit_msg>libxml-libxml-perl_1.70.bb: fix native build<commit_after>DESCRIPTION = "XML-LibXML"
SECTION = "libs"
LICENSE = ""
DEPENDS += "libxml2 \
        libxml-sax-perl \
	libxml-namespacesupport-perl \
        zlib \
"
PR = "r2"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-${PV}.tar.gz;name=libxml \
        file://libxml-libxml-perl-disable-libxml2-check.patch \
"
SRC_URI[libxml.md5sum] = "33d4294f708e20c298cfe534d1166844"
SRC_URI[libxml.sha256sum] = "53e6cf06772ba9d85055dc6e4488dbd876d2376e48ef3578fa73246ee98b3ba0"

S = "${WORKDIR}/XML-LibXML-${PV}"

inherit cpan

EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR}/libxml2 LIBS=-L${STAGING_LIBDIR}"

BBCLASSEXTEND = "native"

CFLAGS += " -D_GNU_SOURCE "
BUILD_CFLAGS += " -D_GNU_SOURCE "
{'fraction_non_alphanumeric': 0.1571330117160579, 'fraction_numerical': 0.10268780151619572, 'mean_word_length': 4.458646616541353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 22}, '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': '809057', 'n_tokens_mistral': 747, 'n_tokens_neox': 653, 'n_words': 65}