<commit_before>LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://main.cpp;beginline=2;endline=17;md5=ab7ff4858efc6ddd5151e115b0bf2d9f"

#inherit qt4x11 cmake
require kde4.inc

DEPENDS = "kdelibs4"

RDEPENDS_${PN} = "plasma-active kde-artwork-active"

SRC_URI = "git://anongit.kde.org/startactive.git;branch=master \
	   file://setup-contour-intro.sh"

SRCREV = "c3dd8c80a6d5caa76bab37a4453d48c384772141"

PV = "Active-Two+git${SRCPV}"

S = "${WORKDIR}/git"


FILES_${PN} += "\
		${bindir}/startactive.bin \
		${bindir}/setup-contour-intro.sh \
		${datadir}/apps/startactive/* \
		${datadir}/apps/startactive/modules/* \
		${datadir}/apps/ksplash/Themes/qmldefault/* \
		${datadir}/apps/ksplash/Themes/qmldefault/images/* \
	       "

FILES_${PN}-dbg += "${bindir}/.debug/*"

## DIRTY HACK / WORKAROUND
do_install_append() {
# This moves the wrong directory to the normal prefix
  mv -nf ${D}${STAGING_DIR_TARGET}/usr/bin/* ${D}/usr/bin/

# The next 2 lines will remove empty leftover directories
  tmp_relative_staging_dir_target=`echo "${STAGING_DIR_TARGET}" | sed 's|^/||'`
  cd ${D} && rmdir -p ${tmp_relative_staging_dir_target}/usr/bin





# NOT PART OF THE WORKAROUND!!!
   install -d ${D}${bindir}
   install -m 0755 ${WORKDIR}/setup-contour-intro.sh ${D}${bindir}/
}
<commit_msg>startactive: Fix cross compiling errors gracefully<commit_after>LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://main.cpp;beginline=2;endline=17;md5=ab7ff4858efc6ddd5151e115b0bf2d9f"


require kde4.inc

DEPENDS = "kdelibs4"

RDEPENDS_${PN} = "plasma-active kde-artwork-active contour"

SRC_URI = "git://anongit.kde.org/startactive.git;branch=master \
	   file://setup-contour-intro.sh"

SRCREV = "c3dd8c80a6d5caa76bab37a4453d48c384772141"

PV = "Active-Two+git${SRCPV}"

S = "${WORKDIR}/git"


FILES_${PN} += "\
		${bindir}/startactive.bin \
		${bindir}/setup-contour-intro.sh \
		${datadir}/apps/startactive/* \
		${datadir}/apps/startactive/modules/* \
		${datadir}/apps/ksplash/Themes/qmldefault/* \
		${datadir}/apps/ksplash/Themes/qmldefault/images/* \
	       "

FILES_${PN}-dbg += "${bindir}/.debug/*"

do_install_append() {
   install -d ${D}${bindir}
   install -m 0755 ${WORKDIR}/setup-contour-intro.sh ${D}${bindir}/
}

EXTRA_OECMAKE =+ "-DOE_CROSSCOMPILING=TRUE"

{'fraction_non_alphanumeric': 0.17790594498669032, 'fraction_numerical': 0.04791481810115351, 'mean_word_length': 4.473300970873787, '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': '4523128', 'n_tokens_mistral': 1051, 'n_tokens_neox': 952, 'n_words': 126}