<commit_before>DESCRIPTION = "Evolution database backend server"
HOMEPAGE = "http://labs.o-hand.com/embedded-eds/"
LICENSE = "LGPL"
DEPENDS = "libical intltool-native libglade glib-2.0 gtk+ gconf dbus db gnome-common virtual/libiconv zlib intltool libxml2"

SRCREV = "91812cd2f797fb8ec8befbb2685037584ce144ee"
PV = "1.4.0"
PR = "r3"
PE = "1"
PR_append = "+gitr${SRCREV}"

SRC_URI = "git://git.o-hand.com/eds-dbus;branch=master;protocol=git \
           file://iconv-detect.h \
           file://libxml2-for-libedataserverui.patch \
           file://gtk-doc.make"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

# -ldb needs this on some platforms
LDFLAGS += "-lpthread"

do_configure_prepend () {
     cp ${WORKDIR}/iconv-detect.h ${S}
     cp ${WORKDIR}/gtk-doc.make ${S}
}

EXTRA_OECONF = "--without-openldap --with-dbus --without-weather --without-bug-buddy --without-soup --without-libdb --with-libdb=${STAGING_DIR_HOST}${layout_prefix} --disable-smime --disable-nss --disable-nntp --disable-gtk-doc --enable-calendar --disable-hula --disable-dot-locking --disable-gnome-keyring"

PACKAGES =+ "libcamel-collateral libcamel libcamel-dev libebook libebook-dev libecal libecal-dev libedata-book libedata-book-dev libedata-cal libedata-cal-dev libedataserver libedataserver-dev"

FILES_${PN} =+ "${datadir}/evolution-data-server-*/glade/*.glade"

FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc"
FILES_${PN}-dbg =+ "${libdir}/evolution-data-server-*/camel-providers/.debug ${libdir}/evolution-data-server*/extensions/.debug/"

FILES_libcamel = "${libdir}/libcamel-*.so.* ${libexecdir}/camel-*"
FILES_libcamel-dev = "${libdir}/libcamel-*.so ${libdir}/libcamel-provider-*.so ${libdir}/pkgconfig/camel*pc ${includedir}/evolution-data-server*/camel"
FILES_libcamel-collateral = "${libdir}/libcamel-provider-*.so.* ${libdir}/evolution-data-server-*/camel-providers/*.so ${libdir}/evolution-data-server-*/camel-providers/*.urls"

FILES_libebook = "${libdir}/libebook-*.so.*"
FILES_libebook-dev = "${libdir}/libebook-1.2.so ${libdir}/pkgconfig/libebook-*.pc ${includedir}/evolution-data-server*/libebook/*.h"
RRECOMMENDS_libebook = "libedata-book"
<commit_msg>eds-dbus: work around crosscompile badness<commit_after>DESCRIPTION = "Evolution database backend server"
HOMEPAGE = "http://labs.o-hand.com/embedded-eds/"
LICENSE = "LGPL"
DEPENDS = "libical intltool-native libglade glib-2.0 gtk+ gconf dbus db gnome-common virtual/libiconv zlib intltool libxml2"

SRCREV = "91812cd2f797fb8ec8befbb2685037584ce144ee"
PV = "1.4.0"
PR = "r4"
PE = "1"
PR_append = "+gitr${SRCREV}"

SRC_URI = "git://git.o-hand.com/eds-dbus;branch=master;protocol=git \
           file://iconv-detect.h \
           file://libxml2-for-libedataserverui.patch \
           file://gtk-doc.make"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

# -ldb needs this on some platforms
LDFLAGS += "-lpthread"

do_configure_prepend () {
     cp ${WORKDIR}/iconv-detect.h ${S}
     cp ${WORKDIR}/gtk-doc.make ${S}
}

do_configure_append() {
	for i in $(find ${S} -name "Makefile") ; do
		sed -i -e s:-I${includedir}::g $i
	done
}
EXTRA_OECONF = "--without-openldap --with-dbus --without-weather --without-bug-buddy --without-soup --without-libdb --with-libdb=${STAGING_DIR_HOST}${layout_prefix} --disable-smime --disable-nss --disable-nntp --disable-gtk-doc --enable-calendar --disable-hula --disable-dot-locking --disable-gnome-keyring"

PACKAGES =+ "libcamel-collateral libcamel libcamel-dev libebook libebook-dev libecal libecal-dev libedata-book libedata-book-dev libedata-cal libedata-cal-dev libedataserver libedataserver-dev"

FILES_${PN} =+ "${datadir}/evolution-data-server-*/glade/*.glade"

FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc"
FILES_${PN}-dbg =+ "${libdir}/evolution-data-server-*/camel-providers/.debug ${libdir}/evolution-data-server*/extensions/.debug/"

FILES_libcamel = "${libdir}/libcamel-*.so.* ${libexecdir}/camel-*"
FILES_libcamel-dev = "${libdir}/libcamel-*.so ${libdir}/libcamel-provider-*.so ${libdir}/pkgconfig/camel*pc ${includedir}/evolution-data-server*/camel"
FILES_libcamel-collateral = "${libdir}/libcamel-provider-*.so.* ${libdir}/evolution-data-server-*/camel-providers/*.so ${libdir}/evolution-data-server-*/camel-providers/*.urls"

FILES_libebook = "${libdir}/libebook-*.so.*"
FILES_libebook-dev = "${libdir}/libebook-1.2.so ${libdir}/pkgconfig/libebook-*.pc ${includedir}/evolution-data-server*/libebook/*.h"
RRECOMMENDS_libebook = "libedata-book"

{'fraction_non_alphanumeric': 0.18371886120996442, 'fraction_numerical': 0.015569395017793594, 'mean_word_length': 4.418072289156626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6172126', 'n_tokens_mistral': 1762, 'n_tokens_neox': 1679, 'n_words': 249}