# -*- 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 dotnet-runtime-6 version 6.0.31 revision 0 categories dotnet license MIT maintainers {@tsabirgaliev gmail.com:tair.sabirgaliev} \ {@judaew judaew} openmaintainer description .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. long_description .NET is a free, cross-platform, open source developer platform \ for building many different types of applications. \ \ With .NET, you can use multiple languages, editors, and libraries \ to build for web, mobile, desktop, games, and IoT. homepage https://dotnet.microsoft.com/ platforms {darwin any} {darwin >= 19} supported_archs x86_64 arm64 switch ${build_arch} { x86_64 { distname dotnet-runtime-${version}-osx-x64 checksums rmd160 8f9b686418fce9e1ced4632a23f104c14c8c55d6 \ sha256 4d3b1a409e47061cabc98452db6bc07b5e4c7b8e5a358bc3920571fa0525cf2b \ size 30100413 } arm64 { distname dotnet-runtime-${version}-osx-arm64 checksums rmd160 6413bbeaee0ed6064146ab7fed1cdc6a78b9b85c \ sha256 0febd39e6c915d6fb9d3d742cc3f59e783b1631b3043790ba475963d20da4354 \ size 28201310 } default { known_fail yes pre-fetch { ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}" return -code error "Unsupported architecture: ${build_arch}" } } } master_sites https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/ worksrcdir ${name}-${version} extract.mkdir yes use_configure no depends_run port:dotnet-cli build {} destroot { set dotnet_home ${prefix}/share/dotnet set hostfxr_dir /host/fxr set runtime_dir /shared/Microsoft.NETCore.App xinstall -d ${destroot}${dotnet_home}${hostfxr_dir} xinstall -d ${destroot}${dotnet_home}${runtime_dir} move ${worksrcpath}${hostfxr_dir}/${version} ${destroot}${dotnet_home}${hostfxr_dir} move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir} } livecheck.type regex livecheck.url https://dotnet.microsoft.com/en-us/download/dotnet/6.0 livecheck.regex ".NET Runtime (\\d+(?:\\.\\d+)*)"