# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        sass dart-sass 1.57.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          www textproc
supported_archs     x86_64 arm64
license             MIT
maintainers         @queensferryme openmaintainer
description         The reference implementation of Sass, written in Dart.
long_description    Dart Sass is the primary implementation of Sass, which means \
                    it gets new features before any other implementation. It's fast, \
                    easy to install, and it compiles to pure JavaScript which makes it \
                    easy to integrate into modern web development workflows.
homepage            https://sass-lang.com/dart-sass

checksums           rmd160  1b34fea3af9ecce52eb390b19f93e6af3fac130b \
                    sha256  7c7c97f2cdc45f53eaa9bd118c6a4635047fa2937e8e5856798660fdac739226 \
                    size    411329

use_configure       no

depends_build       port:dart-sdk
build               {
    system -W ${worksrcpath} "dart pub get"
    system -W ${worksrcpath} "dart compile exe -Dversion=${version} bin/sass.dart"
}

destroot {
    xinstall ${worksrcpath}/bin/sass.exe ${destroot}${prefix}/bin/sass
}
