distributable:
  url: https://github.com/mesonbuild/meson/releases/download/{{version}}/meson-{{version}}.tar.gz
  strip-components: 1

versions:
  github: mesonbuild/meson/tags

dependencies:
  python.org: '>=3<3.12'

build:
  python-venv.sh "{{prefix}}/bin/meson"

test:
  dependencies:
    ninja-build.org: ^1
  script: |
    meson ..
    test -f build.ninja
  working-directory: build

provides:
  - bin/meson
