<commit_before>DESCRIPTION = "Print a random, hopefully interesting, adage"
SECTION = "console/utils"
LICENSE = "GPL"
DEPENDS = "recode-native recode"
DEBV = "2"
PR = "r2"

SRC_URI = "${DEBIAN_MIRROR}/main/f/fortune-mod/fortune-mod_${PV}.orig.tar.gz;name=archive \
           ${DEBIAN_MIRROR}/main/f/fortune-mod/fortune-mod_${PV}-${DEBV}.diff.gz;name=patch"

PARALLEL_MAKE = ""
CFLAGS += '\$(DEFINES)'

do_configure() {
	unset CC LD CFLAGS LDFLAGS
	cd util && oe_runmake
}

do_install() {
	oe_runmake install prefix="${D}"
	mv -f ${D}/usr/games/fortune ${D}/${bindir}
}

FILES_${PN} += "${datadir}/games/fortunes/"

SRC_URI[archive.md5sum] = "f208805b3b712e32997d7667e0ec52d8"
SRC_URI[archive.sha256sum] = "fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace"
SRC_URI[patch.md5sum] = "5f059f7c997adbc0a260f27947605be1"
SRC_URI[patch.sha256sum] = "d68c7c8ff6fe94341a3a73d22ab976da42921e3bec9bed628a428518c2c5f67a"<commit_msg>fortune-mod: update to 1.99.1-4 and drop host-only tools<commit_after>DESCRIPTION = "Print a random, hopefully interesting, adage"
SECTION = "console/utils"
LICENSE = "GPL"
DEPENDS = "recode-native recode"
DEBV = "4"
PR = "r3"

SRC_URI = "${DEBIAN_MIRROR}/main/f/fortune-mod/fortune-mod_${PV}.orig.tar.gz;name=archive \
           ${DEBIAN_MIRROR}/main/f/fortune-mod/fortune-mod_${PV}-${DEBV}.diff.gz;name=patch"

PARALLEL_MAKE = ""
CFLAGS += '\$(DEFINES)'

do_configure() {
	unset CC LD CFLAGS LDFLAGS
	cd util && oe_runmake
}

do_install() {
	oe_runmake install prefix="${D}"
	mv -f ${D}/usr/games/fortune ${D}/${bindir}
	rm ${D}/usr/bin/strfile ${D}/usr/bin/unstr
}

FILES_${PN} += "${datadir}/games/fortunes/"

SRC_URI[archive.md5sum] = "f208805b3b712e32997d7667e0ec52d8"
SRC_URI[archive.sha256sum] = "fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace"
SRC_URI[patch.md5sum] = "b8844cdc7f972cc851d156127a7d5cfa"
SRC_URI[patch.sha256sum] = "fbf51f94ead6e83ab879a4477ec5d52eb53823b392297f038f9f0398a9afc7b2"

{'fraction_non_alphanumeric': 0.1559633027522936, 'fraction_numerical': 0.13149847094801223, 'mean_word_length': 6.11231884057971, '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': '6259151', 'n_tokens_mistral': 1047, 'n_tokens_neox': 908, 'n_words': 111}