<commit_before>SUMMARY = "SMTP client library"
DESCRIPTION = "LibESMTP is a library to manage posting \
(or submission of) electronic mail using SMTP to a \
preconfigured Mail Transport Agent (MTA) such as Exim or PostFix."
HOMEPAGE = "https://libesmtp.github.io/"
LICENSE = "LGPL-2.0-or-later"
SECTION = "libs"

DEPENDS = "openssl"

SRC_URI = "git://github.com/libesmtp/libESMTP.git;branch=master;protocol=https \
           file://0001-Add-build-option-for-NTLM-support.patch"
SRCREV = "1d0af244310a66943ab400be56b15a9087f181eb"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742 \
                    file://COPYING.GPL;md5=393a5ca445f6965873eca0259a17f833"

inherit meson pkgconfig

EXTRA_OEMESON = " \
    -Dpthreads=enabled \
    -Dtls=enabled \
    -Dxdg=false \
    -Dlwres=disabled \
    -Dbdat=true \
    -Detrn=true \
    -Dxusr=true \
    -Dntlm=disabled \
"

CFLAGS += "-D_GNU_SOURCE"

FILES:${PN} = "${libdir}/lib*${SOLIBS} \
               ${libdir}/esmtp-plugins-6.2.0/*${SOLIBSDEV}"<commit_msg>libesmtp: Enable gnu strerror_r on glibc<commit_after>SUMMARY = "SMTP client library"
DESCRIPTION = "LibESMTP is a library to manage posting \
(or submission of) electronic mail using SMTP to a \
preconfigured Mail Transport Agent (MTA) such as Exim or PostFix."
HOMEPAGE = "https://libesmtp.github.io/"
LICENSE = "LGPL-2.0-or-later"
SECTION = "libs"

DEPENDS = "openssl"

SRC_URI = "git://github.com/libesmtp/libESMTP.git;branch=master;protocol=https \
           file://0001-Add-build-option-for-NTLM-support.patch"
SRCREV = "1d0af244310a66943ab400be56b15a9087f181eb"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742 \
                    file://COPYING.GPL;md5=393a5ca445f6965873eca0259a17f833"

inherit meson pkgconfig

EXTRA_OEMESON = " \
    -Dpthreads=enabled \
    -Dtls=enabled \
    -Dxdg=false \
    -Dlwres=disabled \
    -Dbdat=true \
    -Detrn=true \
    -Dxusr=true \
    -Dntlm=disabled \
"

CFLAGS += "-D_GNU_SOURCE"

do_configure:prepend:libc-glibc() {
    sed -i -e "s/conf.set('HAVE_WORKING_STRERROR_R', 0)/conf.set('HAVE_WORKING_STRERROR_R', 1)/g" ${S}/meson.build
}

FILES:${PN} = "${libdir}/lib*${SOLIBS} \
               ${libdir}/esmtp-plugins-6.2.0/*${SOLIBSDEV}"
{'fraction_non_alphanumeric': 0.1449148843299869, 'fraction_numerical': 0.07333042339589699, 'mean_word_length': 3.4678362573099415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7318396', 'n_tokens_mistral': 1036, 'n_tokens_neox': 926, 'n_words': 144}