. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/CMAKE_FUNCTIONS"
           SPELL="tomlplusplus"
if [[ "${TOMLPLUSPLUS_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-scm.tar.xz"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
   SOURCE_URL[0]="git_http://github.com/marzer/${SPELL}:${SPELL}-scm"
   SOURCE_IGNORE="volatile"
  FORCE_DOWNLOAD="on"
else
         VERSION="3.4.0"
     SOURCE_HASH="sha512:c227fc8147c9459b29ad24002aaf6ab2c42fac22ea04c1c52b283a0172581ccd4527b33c1931e0ef0d1db6b6a53f9e9882c6d4231c7f3494cf070d0220741aa5"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
   SOURCE_URL[0]="https://github.com/marzer/${SPELL}/archive/refs/tags/v${VERSION}.tar.gz"
# Watch: https://github.com/marzer/tomlplusplus/tags tags/([0-9.\-]+)[.]tar
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
fi
        WEB_SITE="https://marzer.github.io/tomlplusplus/"
         ENTERED="20240112"
      LICENSE[0]="MIT"
        KEYWORDS="toml parser header library"
           SHORT="Header-only TOML config file parser and serializer for C++17"
cat << EOF
TOML config file parser and serializer for C++.

Features
    Header-only (optional!)
    Supports the latest TOML release (v1.0.0), plus optional support for
some unreleased TOML features
    Passes all tests in the toml-test suite
    Supports serializing to JSON and YAML
    Proper UTF-8 handling (incl. BOM)
    C++17 (plus some C++20 features where available, e.g. experimental
support for char8_t strings)
    Doesn't require RTTI
    Works with or without exceptions
    Tested on Clang (8+), GCC (8+) and MSVC (VS2019)
    Tested on x64, x86 and ARM
EOF
