# -*- 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 name dart-sdk version 3.6.2 categories lang license BSD maintainers {amake @amake} openmaintainer description The Dart SDK long_description Dart is an open-source, scalable programming language, \ with robust libraries and runtimes, for building web, \ server, and mobile apps. platforms {darwin any} supported_archs x86_64 arm64 homepage https://dart.dev/ master_sites https://storage.googleapis.com/dart-archive/channels/stable/release/${version}/sdk/ distname dartsdk-macos-x64-release use_zip yes dist_subdir ${name}/${version} worksrcdir ${name} if {${configure.build_arch} eq "x86_64"} { distname dartsdk-macos-x64-release checksums rmd160 c21aeb889846bc4fc51a9279f6a3a85772ab855b \ sha256 8ac74b6f5e0524d767decbb7a04e93482be4a09d012cd577f29113893c19bed8 \ size 223022462 } elseif {${configure.build_arch} eq "arm64"} { distname dartsdk-macos-arm64-release checksums rmd160 176872ccccabcc15ae7364458039aa007ce87d29 \ sha256 453bbfa3d73f28e090b644268e2c809b899d11a3a6507874715e1a4042166295 \ size 221257105 } use_configure no build {} destroot { set libexecdir ${prefix}/libexec/${name} copy ${worksrcpath} ${destroot}${libexecdir} ln -s ${libexecdir}/bin/dart ${destroot}${prefix}/bin foreach bin [glob -tails -directory ${destroot}${libexecdir}/bin pub dart?*] { xinstall -m 0755 ${filespath}/shim.in ${destroot}${prefix}/bin/${bin} reinplace "s|@@BIN@@|${libexecdir}/bin/${bin}|g" ${destroot}${prefix}/bin/${bin} } } livecheck.type regex livecheck.url https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION livecheck.regex "\"version\": \"(\[0-9.\]+)\""