<commit_before>#! /bin/bash
# Prior to conda-forge, Copyright 2017-2019 <NAME> and collaborators.
# This file is licensed under a 3-clause BSD license; see LICENSE.txt.

set -ex

meson_config_args=(
    -D docs=false
    -D egl=yes
    -D x11=true
    -D tests=false
)

# Make it so that pkg-config can find the CDT (E)GL(X) packages:
export PKG_CONFIG_PATH="$BUILD_PREFIX/$HOST/sysroot/usr/lib64/pkgconfig"

if [ -z "$OSX_ARCH" ] ; then
    # Hackity hack: manually copy the GL headers that we require, so that
    # downstream deps don't all have to include a magic CDT package as a dependency
    mkdir -p $PREFIX/include/KHR $PREFIX/include/EGL
    cp $BUILD_PREFIX/$HOST/sysroot/usr/include/KHR/khrplatform.h $PREFIX/include/KHR/
    cp $BUILD_PREFIX/$HOST/sysroot/usr/include/EGL/eglplatform.h $PREFIX/include/EGL/
fi

meson setup builddir "${meson_config_args[@]}" --prefix=$PREFIX --libdir=$PREFIX/lib
ninja -v -C builddir
ninja -C builddir install

cd $PREFIX
find . '(' -name '*.la' -o -name '*.a' ')' -delete<commit_msg>Disable X11 for epoxy on OSX since we're not depending on it.<commit_after>#! /bin/bash
# Prior to conda-forge, Copyright 2017-2019 <NAME> and collaborators.
# This file is licensed under a 3-clause BSD license; see LICENSE.txt.

set -ex

if [ -n "$OSX_ARCH" ] ; then
    meson_config_args=(
        -D docs=false
        -D x11=false
        -D tests=false
    )
else
    meson_config_args=(
        -D docs=false
        -D egl=yes
        -D x11=true
        -D tests=false
    )

    # Make it so that pkg-config can find the CDT (E)GL(X) packages:
    export PKG_CONFIG_PATH="$BUILD_PREFIX/$HOST/sysroot/usr/lib64/pkgconfig"

    # Hackity hack: manually copy the GL headers that we require, so that
    # downstream deps don't all have to include a magic CDT package as a dependency
    mkdir -p $PREFIX/include/KHR $PREFIX/include/EGL
    cp $BUILD_PREFIX/$HOST/sysroot/usr/include/KHR/khrplatform.h $PREFIX/include/KHR/
    cp $BUILD_PREFIX/$HOST/sysroot/usr/include/EGL/eglplatform.h $PREFIX/include/EGL/
fi

meson setup builddir "${meson_config_args[@]}" --prefix=$PREFIX --libdir=$PREFIX/lib
ninja -v -C builddir
ninja -C builddir install

cd $PREFIX
find . '(' -name '*.la' -o -name '*.a' ')' -delete
{'fraction_non_alphanumeric': 0.12349531876950513, 'fraction_numerical': 0.013374944271065538, 'mean_word_length': 3.2101313320825517, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6777731', 'n_tokens_mistral': 826, 'n_tokens_neox': 776, 'n_words': 236}