<commit_before>require clutter.inc

SRCREV = "35191f09ef0fa8fad6f386513dcd691ab6b6746f"
PV = "0.9.2"
PR_append = "+git${SRCREV}"

SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=master \
           file://enable_tests.patch;patch=1 "
S = "${WORKDIR}/git"

BASE_CONF += "--disable-introspection"

<commit_msg>clutter 0.9: fixup GLES backend<commit_after>require clutter.inc

SRCREV = "36cfb6030784791a4420a1e52a8c18d56b1d0c69"
#good: 20090512 08a73a215f2cf18abcfd7d93e8047583511497bd

PV = "0.9.3"
PR_append = "+git${SRCREV}"

SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=master \
           file://enable_tests.patch;patch=1 "
S = "${WORKDIR}/git"

BASE_CONF += "--disable-introspection"

# Fixup gles backend: 

do_compile_prepend() {
	for i in ${S}/clutter/cogl/gles/* ; do
		sed -i -e s:CGL_NEAREST:COGL_TEXTURE_FILTER_NEAREST:g \
		       -e s:CGL_LINEAR:iCOGL_TEXTURE_FILTER_LINEAR:g \
		       -e s:CGL_VERTEX_SHADER:COGL_SHADER_TYPE_VERTEX:g \
		       -e s:CGL_FRAGMENT_SHADER:COGL_SHADER_TYPE_FRAGMENT:g $i
	done
}

{'fraction_non_alphanumeric': 0.1392757660167131, 'fraction_numerical': 0.08913649025069638, 'mean_word_length': 4.528205128205128, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5197220', 'n_tokens_mistral': 527, 'n_tokens_neox': 474, 'n_words': 58}