<commit_before>require shared-mime-info.inc

DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
PR = "r1"

do_install_append() {
    update-mime-database ${D}${datadir}/mime

    # we do not need it on device and it is huge
    rm ${D}${datadir}/mime/packages/freedesktop.org.xml
}<commit_msg>shared-mime-info: put freedesktop.org.xml in its own package<commit_after>require shared-mime-info.inc

DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
PR = "r2"

do_install_append() {
    update-mime-database ${D}${datadir}/mime
}

# freedesktop.org.xml is huge and only needed when updating the db
# mime.bbclass will add the dependency on it automagically
PACKAGES =+ "freedesktop-mime-info"
FILES_freedesktop-mime-info = "${datadir}/mime/packages/freedesktop.org.xml"
RDEPENDS_freedesktop-mime-info = "shared-mime-info"

{'fraction_non_alphanumeric': 0.12850467289719625, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 4.6381578947368425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '7481215', 'n_tokens_mistral': 334, 'n_tokens_neox': 309, 'n_words': 67}