<commit_before>require gettext_${PV}.bb

DEPENDS = ""
PROVIDES = ""

inherit native

S = "${WORKDIR}/gettext-${PV}"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gettext-${PV}"

M4 = "\
ansi-c++.m4 \
codeset.m4 \
gettext.m4 \
glibc21.m4 \
glibc2.m4 \
iconv.m4 \
intdiv0.m4 \
intldir.m4 \
intl.m4 \
intlmacosx.m4 \
intmax.m4 \
inttypes_h.m4 \
inttypes-pri.m4 \
lcmessage.m4 \
lock.m4 \
longlong.m4 \
nls.m4 \
po.m4 \
printf-posix.m4 \
progtest.m4 \
size_max.m4 \
stdint_h.m4 \
uintmax_t.m4 \
visibility.m4 \
wchar_t.m4 \
wint_t.m4 \
xsize.m4 \
lib-ld.m4 \
lib-link.m4 \
lib-prefix.m4 \
"

do_stage_append() {
	for i in ${M4}; do
		src="gettext-runtime/m4/$i"
		if [ ! -f $src ]; then
			src="gettext-tools/m4/$i"
		fi
		if [ ! -f $src ]; then
			src="autoconf-lib-link/m4/$i"
		fi
		if [ ! -f $src ]; then
			echo "can't find $i" >&2
			exit 1
		fi
		install -m 0644 $src ${STAGING_DATADIR}/aclocal/$i
	done
}<commit_msg>gettext-nativ: added config.rpath back to automake dir * bump PR<commit_after>require gettext_${PV}.bb
PR = "r2"

DEPENDS = ""
PROVIDES = ""

inherit native

S = "${WORKDIR}/gettext-${PV}"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gettext-${PV}"

M4 = "\
ansi-c++.m4 \
codeset.m4 \
gettext.m4 \
glibc21.m4 \
glibc2.m4 \
iconv.m4 \
intdiv0.m4 \
intldir.m4 \
intl.m4 \
intlmacosx.m4 \
intmax.m4 \
inttypes_h.m4 \
inttypes-pri.m4 \
lcmessage.m4 \
lock.m4 \
longlong.m4 \
nls.m4 \
po.m4 \
printf-posix.m4 \
progtest.m4 \
size_max.m4 \
stdint_h.m4 \
uintmax_t.m4 \
visibility.m4 \
wchar_t.m4 \
wint_t.m4 \
xsize.m4 \
lib-ld.m4 \
lib-link.m4 \
lib-prefix.m4 \
"

do_stage_append() {
	for i in ${M4}; do
		src="gettext-runtime/m4/$i"
		if [ ! -f $src ]; then
			src="gettext-tools/m4/$i"
		fi
		if [ ! -f $src ]; then
			src="autoconf-lib-link/m4/$i"
		fi
		if [ ! -f $src ]; then
			echo "can't find $i" >&2
			exit 1
		fi
		install -m 0644 $src ${STAGING_DATADIR}/aclocal/$i
	done

	# config.rpath is needed by some configure macros and needs to be autoinstalled.
        # automake will do this but config.rpath needs to be visible to automake
        for i in `ls -d ${STAGING_DATADIR}/automake*`
        do
                cp ${STAGING_DATADIR}/gettext/config.rpath $i
        done
}
{'fraction_non_alphanumeric': 0.17510076130765787, 'fraction_numerical': 0.041648007165248545, 'mean_word_length': 2.614886731391586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '917957', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1063, 'n_words': 201}