<commit_before>DESCRIPTION = "Commands for Manipulating Filesystem Extended Attributes"
LICENSE = "GPLv2"

PR = "r4"

SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/attr/attr-${PV}.src.tar.gz"

inherit gettext autotools lib_package
EXTRA_OECONF = " --enable-gettext=yes \
                 ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext \
                 ac_cv_path_MSGFMT=${STAGING_BINDIR_NATIVE}/msgfmt \
                 ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge \
		 PLATFORM="linux" \
		"

# Only append ldflags for target recipe
LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"

TOPDIR[unexport] = "1"

BBCLASSEXTEND = "native"

do_configure_append() {
	# gettext hack
	echo "#define _(str) str" >> ${S}/include/config.h
}

do_configure_prepend_libc-uclibc() {
	eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/include/builddefs.in', d)}"
}

do_install() {
	export PKG_BIN_DIR=${D}${bindir}
	export PKG_SBIN_DIR=${D}${sbindir}
	export PKG_LIB_DIR=${D}${libdir}<commit_msg>attr: use SAVANNAH_MIRROR in SRC_URI<commit_after>DESCRIPTION = "Commands for Manipulating Filesystem Extended Attributes"
LICENSE = "GPLv2"

PR = "r4"

SRC_URI = "${SAVANNAH_MIRROR}/releases/attr/attr-${PV}.src.tar.gz"

inherit gettext autotools lib_package
EXTRA_OECONF = " --enable-gettext=yes \
                 ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext \
                 ac_cv_path_MSGFMT=${STAGING_BINDIR_NATIVE}/msgfmt \
                 ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge \
		 PLATFORM="linux" \
		"

# Only append ldflags for target recipe
LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"

TOPDIR[unexport] = "1"

BBCLASSEXTEND = "native"

do_configure_append() {
	# gettext hack
	echo "#define _(str) str" >> ${S}/include/config.h
}

do_configure_prepend_libc-uclibc() {
	eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/include/builddefs.in', d)}"
}

do_install() {
	export PKG_BIN_DIR=${D}${bindir}
	export PKG_SBIN_DIR=${D}${sbindir}
	export PKG_LIB_DIR=${D}${libdir}
{'fraction_non_alphanumeric': 0.1692165044042652, 'fraction_numerical': 0.004636068613815485, 'mean_word_length': 4.5191815856777495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7291283', 'n_tokens_mistral': 888, 'n_tokens_neox': 864, 'n_words': 125}