<commit_before>require recipes-devtools/m4/${PN}_1.4.17.bb
FILESEXTRAPATHS_prepend = "${COREBASE}/meta/recipes-devtools/m4/m4:"

inherit debian-package
DEBIAN_SECTION = "interpreters"

DPR = "1"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

SRC_URI += "\
	file://ac_config_links.patch\
	file://remove-gets.patch\
"

# Change timestamp of some files to avoid remaking them (which require
# automake to be installed)
# 'make -d' command gives clue on this 
do_configure_prepend() {
	# To avoid running aclocal
	touch ${S}/aclocal.m4

	# To avoid running automake
	touch ${S}/Makefile.in

	# To avoid rebuilding manpages.
	touch ${S}/doc/m4.1
}

do_compile_prepend() {
	[ -d ${STAGING_INCDIR_NATIVE} ] || mkdir -p ${STAGING_INCDIR_NATIVE}
}

#
# Debian Native Test
#
inherit debian-test

SRC_URI_DEBIAN_TEST = "\
        file://m4-native-test/run_native_test_m4 \
	file://m4-native-test/run_file_without_options \
	file://m4-native-test/run_file_with_options-E \
	file://m4-native-test/run_file_with_options-i \
	file://m4-native-test/run_file_with_options-P \
	file://m4-native-test/run_file_with_options-Q \
	file://m4-native-test/run_help_command \
	file://m4-native-test/run_version_command \
	file://m4-native-test/example.m4 \
"

DEBIAN_NATIVE_TESTS = "run_native_test_m4"
TEST_DIR = "${B}/native-test"
<commit_msg>Fix timestamp problem in m4-native recipe<commit_after>require recipes-devtools/m4/${PN}_1.4.17.bb
FILESEXTRAPATHS_prepend = "${COREBASE}/meta/recipes-devtools/m4/m4:"

inherit debian-package
DEBIAN_SECTION = "interpreters"

DPR = "1"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

SRC_URI += "\
	file://ac_config_links.patch\
	file://remove-gets.patch\
"

# Change timestamp of some files to avoid remaking them (which require
# automake to be installed)
# 'make -d' command gives clue on this 
do_configure_prepend() {
	# To avoid running aclocal
	touch ${S}/aclocal.m4

	# To avoid running automake
	touch ${S}/Makefile.in

	# To avoid rebuilding manpages.
	touch ${S}/doc/m4.1

	# To avoid running autoconf
	touch ${S}/configure

	# To avoid running autoheader   
	touch ${S}/lib/config.hin
}

do_compile_prepend() {
	[ -d ${STAGING_INCDIR_NATIVE} ] || mkdir -p ${STAGING_INCDIR_NATIVE}
}

#
# Debian Native Test
#
inherit debian-test

SRC_URI_DEBIAN_TEST = "\
        file://m4-native-test/run_native_test_m4 \
	file://m4-native-test/run_file_without_options \
	file://m4-native-test/run_file_with_options-E \
	file://m4-native-test/run_file_with_options-i \
	file://m4-native-test/run_file_with_options-P \
	file://m4-native-test/run_file_with_options-Q \
	file://m4-native-test/run_help_command \
	file://m4-native-test/run_version_command \
	file://m4-native-test/example.m4 \
"

DEBIAN_NATIVE_TESTS = "run_native_test_m4"
TEST_DIR = "${B}/native-test"

{'fraction_non_alphanumeric': 0.13892757660167132, 'fraction_numerical': 0.03238161559888579, 'mean_word_length': 4.261904761904762, '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': '2349373', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1148, 'n_words': 183}