<commit_before>LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "db rasqal libtool libiodbc"
PR = "r2"

SRC_URI = "http://download.librdf.org/source/redland-1.0.15.tar.gz \
    file://No-docs-and-NOCONFIGURE.patch \
    "
SRC_URI[md5sum] = "b0deb87f3c7d3237a3d587c1e0f2f266"
SRC_URI[sha256sum] = "0e1f5825b6357c9b490da866c95ae1d895dbb5f445013d2511c37df822ee9ec6"

#see http://patches.openembedded.org/patch/33965/
SYSROOT_PREPROCESS_FUNCS += "redland_sysroot_preprocess"

inherit autotools gtk-doc

EXTRA_OECONF = "\
    --enable-maintainer-mode \
    --disable-gtk-doc \
    --with-raptor=system \
    --with-rasqal=system \
    --with-threestore=no \
    --with-mysql=no \
    --with-sqlite=no \
    --with-postgresql=no \
    --with-openssl-digests=no \
    --with-bdb=${STAGING_EXECPREFIXDIR} \
    --with-odbc-inc=${STAGING_INCDIR} \
    --with-odbc-lib=${STAGING_LIBDIR} \
    "

# Redland autogen.sh does not work properly, so let OE do the job
do_configure() {
    cd ${S}
    export NOCONFIGURE="no"; ./autogen.sh
    oe_runconf
}<commit_msg>redland: user ${BPN}-${PV} in the SRC_URI<commit_after>LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "db rasqal libtool libiodbc"
PR = "r2"

SRC_URI = "http://download.librdf.org/source/${BPN}-${PV}.tar.gz \
    file://No-docs-and-NOCONFIGURE.patch \
    "
SRC_URI[md5sum] = "b0deb87f3c7d3237a3d587c1e0f2f266"
SRC_URI[sha256sum] = "0e1f5825b6357c9b490da866c95ae1d895dbb5f445013d2511c37df822ee9ec6"

#see http://patches.openembedded.org/patch/33965/
SYSROOT_PREPROCESS_FUNCS += "redland_sysroot_preprocess"

inherit autotools gtk-doc

EXTRA_OECONF = "\
    --enable-maintainer-mode \
    --disable-gtk-doc \
    --with-raptor=system \
    --with-rasqal=system \
    --with-threestore=no \
    --with-mysql=no \
    --with-sqlite=no \
    --with-postgresql=no \
    --with-openssl-digests=no \
    --with-bdb=${STAGING_EXECPREFIXDIR} \
    --with-odbc-inc=${STAGING_INCDIR} \
    --with-odbc-lib=${STAGING_LIBDIR} \
    "

# Redland autogen.sh does not work properly, so let OE do the job
do_configure() {
    cd ${S}
    export NOCONFIGURE="no"; ./autogen.sh
    oe_runconf
}
{'fraction_non_alphanumeric': 0.1496415770609319, 'fraction_numerical': 0.08333333333333333, 'mean_word_length': 3.4393638170974157, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3854499', 'n_tokens_mistral': 1073, 'n_tokens_neox': 979, 'n_words': 119}