package = "yaml"
version = "1.1.3-1"
source = {
  url = 'git+https://codeberg.org/leso-kn/lua-yaml.git',
  tag = 'REL-1.1.3',
  dir = 'lua-yaml',
}
description = {
  summary = "Very fast yaml parser based on libYAML by Kirill Simonov",
  detailed = [[
  Fork of https://github.com/lubyk/yaml with LuaJIT support.

  This module is a Lua binding for Kirill Siminov's excellent LibYAML. LibYAML is generally considered to be the best C YAML 1.1 implementation.

  Main features are:
   - Fast and easy to use
   - Based on proven code (libYAML)
   - Support for table loops
   - No external dependencies

   Read the documentation at https://lubyk.github.io/lubyk/yaml.html.
  ]],
  homepage = "https://codeberg.org/leso-kn/lua-yaml",
  license = "MIT"
}

dependencies = {
  "lua >= 5.1, < 5.4",
  "lub >= 1.0.3, < 2",
}
build = {
  type = 'builtin',
  modules = {
    -- Plain Lua files
    ['yaml'           ] = 'yaml/init.lua',
    -- C module
    ['yaml.core'      ] = {
      sources = {
        'src/api.c',
        'src/b64.c',
        'src/dumper.c',
        'src/emitter.c',
        'src/loader.c',
        'src/lyaml.c',
        'src/parser.c',
        'src/reader.c',
        'src/scanner.c',
        'src/strtod.c',
        'src/writer.c',
      },
      incdirs   = {'src'},
    },
  },
}

