<commit_before>DESCRIPTION = "A compiler that translates Scheme source files to C, and an interpreter"
HOMEPAGE = "http://www.call-cc.org/"
SECTION = "devel"
PRIORITY = "optional"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=74157fa744cef15057bcd749b4b0d1cf"

PR = "r1"

DEPENDS = "chicken-cross"
DEPENDS_virtclass-cross = ""

# http://code.call-cc.org/releases/${PV}/chicken-${PV}.tar.gz
SRC_URI = "http://code.call-cc.org/dev-snapshots/2012/02/07/chicken-4.7.4.tar.gz \
           file://fix-defaults.patch"

SRC_URI[md5sum] = "f15f2f8b4db393998e914611d05a43be"
SRC_URI[sha256sum] = "f43b999593c2fdbaf236c9b450e7da49267abce45c9e56c63356f90734af6849"

# Parallel building is not supported
PARALLEL_MAKE = ""

def chicken_arch(bb, d):
    import re

    target_arch = d.getVar("HOST_ARCH", 1)
    if re.compile('^i.*86$').match(target_arch):
        return 'x86'
    elif target_arch == 'x86_64':
        return 'x86-64'
    else:
        return ''

inherit autotools

export C_COMPILER="${CC}"
export C_COMPILER_virtclass-cross="${HOST_PREFIX}gcc"
export TARGET_C_COMPILER="${TARGET_PREFIX}gcc"

EXTRA_OEMAKE = " \
    BINDIR=${bindir} \
    LIBDIR=${libdir} \<commit_msg>chicken_4.7.4: add useless-rpaths to INSANE_SKIP for chicken and libchicken<commit_after>DESCRIPTION = "A compiler that translates Scheme source files to C, and an interpreter"
HOMEPAGE = "http://www.call-cc.org/"
SECTION = "devel"
PRIORITY = "optional"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=74157fa744cef15057bcd749b4b0d1cf"

PR = "r1"

DEPENDS = "chicken-cross"
DEPENDS_virtclass-cross = ""

# http://code.call-cc.org/releases/${PV}/chicken-${PV}.tar.gz
SRC_URI = "http://code.call-cc.org/dev-snapshots/2012/02/07/chicken-4.7.4.tar.gz \
           file://fix-defaults.patch"

SRC_URI[md5sum] = "f15f2f8b4db393998e914611d05a43be"
SRC_URI[sha256sum] = "f43b999593c2fdbaf236c9b450e7da49267abce45c9e56c63356f90734af6849"

INSANE_SKIP_${PN} += "useless-rpaths"
INSANE_SKIP_libchicken += "useless-rpaths"

# Parallel building is not supported
PARALLEL_MAKE = ""

def chicken_arch(bb, d):
    import re

    target_arch = d.getVar("HOST_ARCH", 1)
    if re.compile('^i.*86$').match(target_arch):
        return 'x86'
    elif target_arch == 'x86_64':
        return 'x86-64'
    else:
        return ''

inherit autotools

export C_COMPILER="${CC}"
export C_COMPILER_virtclass-cross="${HOST_PREFIX}gcc"
export TARGET_C_COMPILER="${TARGET_PREFIX}gcc"

EXTRA_OEMAKE = " \
    BINDIR=${bindir} \
    LIBDIR=${libdir} \
{'fraction_non_alphanumeric': 0.1446215139442231, 'fraction_numerical': 0.08964143426294821, 'mean_word_length': 4.4233261339092875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1356577', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1023, 'n_words': 156}