<commit_before>SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
HOMEPAGE = "http://talloc.samba.org"
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334"

inherit autotools pkgconfig

SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \
           file://install-swig-interface-in-SWINGLIBDIR.patch \
           file://sepbuild.patch \
"
SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b"
SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4"

TARGET_CC_ARCH += "${LDFLAGS}"

PR = "r2"

EXTRA_AUTORECONF = "--exclude=autopoint --exclude=aclocal"

do_install_prepend() {
    # Hack the way swig interface for talloc is installed
    # This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
    type swig > /dev/null 2>&1 && SWIGLIBDIR=`swig -swiglib` && SWIGLIBDIR=${SWIGLIBDIR##${STAGING_DIR_NATIVE}} && export SWIGLIBDIR || echo "No swig found"
}

do_install_append() {
    install -d ${D}${libdir}
    ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0
    ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2
    ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so
}

PACKAGES += "${PN}-swig"
FILES_${PN}-swig += "${datadir}"<commit_msg>talloc: remove empty bindir<commit_after>SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
HOMEPAGE = "http://talloc.samba.org"
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334"

inherit autotools pkgconfig

SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \
           file://install-swig-interface-in-SWINGLIBDIR.patch \
           file://sepbuild.patch \
"
SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b"
SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4"

TARGET_CC_ARCH += "${LDFLAGS}"

PR = "r2"

EXTRA_AUTORECONF = "--exclude=autopoint --exclude=aclocal"

do_install_prepend() {
    # Hack the way swig interface for talloc is installed
    # This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
    type swig > /dev/null 2>&1 && SWIGLIBDIR=`swig -swiglib` && SWIGLIBDIR=${SWIGLIBDIR##${STAGING_DIR_NATIVE}} && export SWIGLIBDIR || echo "No swig found"
}

do_install_append() {
    install -d ${D}${libdir}
    ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0
    ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2
    ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so
    rmdir ${D}${bindir}
}

PACKAGES += "${PN}-swig"
FILES_${PN}-swig += "${datadir}"
{'fraction_non_alphanumeric': 0.15942591155934832, 'fraction_numerical': 0.07757951900698215, 'mean_word_length': 4.440928270042194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6336967', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1077, 'n_words': 168}