<commit_before>DESCRIPTION = "High-level language, primarily intended for numerical computations"
HOMEPAGE = "http://www.gnu.org/software/octave/"
SECTION = "math"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"

DEPENDS = "gperf-native texinfo lapack pcre readline"

inherit autotools pkgconfig texinfo gettext

EXTRA_OECONF = "--disable-java --disable-docs"

SRC_URI = "https://ftp.gnu.org/gnu/octave/${PN}-${PV}.tar.gz \
           file://fix-blas-library-integer-size.patch \
"

SRC_URI[md5sum] = "b43bd5f4309a0c048c91af10cf8e8674"
SRC_URI[sha256sum] = "09fbd0f212f4ef21e53f1d9c41cf30ce3d7f9450fb44911601e21ed64c67ae97"

do_compile_prepend() {
	for folder in "liboctave/operators liboctave/numeric liboctave/array liboctave/util"; do
		mkdir -p ${B}/${folder}
	done
}

PACKAGES =+ " octave-common liboctave liboctave-dev liboctave-dbg"

FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${datadir}/${PN} \
            ${libdir}/${PN}/${PV}/oct ${libdir}/${PN}/${PV}/site  \
            ${libdir}/${PN}/site ${datadir}/applications ${datadir}/metainfo"
FILES_${PN}-common = "${datadir}/icons"

FILES_liboctave = "${libdir}/${PN}/${PV}/lib*${SOLIBS}"
FILES_liboctave-dev = "${libdir}/${PN}/${PV}/lib*${SOLIBSDEV}"
FILES_liboctave-dbg = "${libdir}/${PN}/${PV}/.debug"

FILES_${PN}-dbg = "${bindir}/.debug ${libdir}/${PN}/${PV}/oct/${TARGET_SYS}/.debug"
<commit_msg>octave: Exclude from world builds<commit_after>DESCRIPTION = "High-level language, primarily intended for numerical computations"
HOMEPAGE = "http://www.gnu.org/software/octave/"
SECTION = "math"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"

DEPENDS = "gperf-native texinfo lapack pcre readline"

inherit autotools pkgconfig texinfo gettext

EXTRA_OECONF = "--disable-java --disable-docs"

SRC_URI = "https://ftp.gnu.org/gnu/octave/${PN}-${PV}.tar.gz \
           file://fix-blas-library-integer-size.patch \
"

SRC_URI[md5sum] = "b43bd5f4309a0c048c91af10cf8e8674"
SRC_URI[sha256sum] = "09fbd0f212f4ef21e53f1d9c41cf30ce3d7f9450fb44911601e21ed64c67ae97"

do_compile_prepend() {
	for folder in "liboctave/operators liboctave/numeric liboctave/array liboctave/util"; do
		mkdir -p ${B}/${folder}
	done
}

PACKAGES =+ " octave-common liboctave liboctave-dev liboctave-dbg"

FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${datadir}/${PN} \
            ${libdir}/${PN}/${PV}/oct ${libdir}/${PN}/${PV}/site  \
            ${libdir}/${PN}/site ${datadir}/applications ${datadir}/metainfo"
FILES_${PN}-common = "${datadir}/icons"

FILES_liboctave = "${libdir}/${PN}/${PV}/lib*${SOLIBS}"
FILES_liboctave-dev = "${libdir}/${PN}/${PV}/lib*${SOLIBSDEV}"
FILES_liboctave-dbg = "${libdir}/${PN}/${PV}/.debug"

FILES_${PN}-dbg = "${bindir}/.debug ${libdir}/${PN}/${PV}/oct/${TARGET_SYS}/.debug"

EXCLUDE_FROM_WORLD = "1"
{'fraction_non_alphanumeric': 0.1953423705248523, 'fraction_numerical': 0.05874174487313173, 'mean_word_length': 4.995833333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2004807', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1165, 'n_words': 158}