<commit_before>LICENSE = "GPL"
SECTION = "console/utils"
DESCRIPTION = "grep GNU utility"
PR = "r1"

do_unpack[depends] += "xz-native:do_populate_sysroot"

SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \
           file://uclibc-fix.patch"

inherit autotools

EXTRA_OECONF = "--disable-perl-regexp --disable-ncurses"
EXTRA_OECONF_virtclass-native = "--with-included-regex --disable-ncurses"

do_configure () {
	rm -f ${S}/m4/init.m4
	autotools_do_configure
}

do_install () {
	autotools_do_install
	install -d ${D}${base_bindir}
	mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN}
	mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN}<commit_msg>grep_2.6.3: Configure asks for gettext inherit it<commit_after>LICENSE = "GPL"
SECTION = "console/utils"
DESCRIPTION = "grep GNU utility"
PR = "r2"

do_unpack[depends] += "xz-native:do_populate_sysroot"

SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \
           file://uclibc-fix.patch"

inherit autotools gettext

EXTRA_OECONF = "--disable-perl-regexp --disable-ncurses"
EXTRA_OECONF_virtclass-native = "--with-included-regex --disable-ncurses"

do_configure () {
	rm -f ${S}/m4/init.m4
	autotools_do_configure
}

do_install () {
	autotools_do_install
	install -d ${D}${base_bindir}
	mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN}
	mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN}
{'fraction_non_alphanumeric': 0.18377976190476192, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 4.6991525423728815, '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': '7558420', 'n_tokens_mistral': 581, 'n_tokens_neox': 569, 'n_words': 84}