# -*- 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-devel set main_version 10.0.0 # See patch version in https://dotnet.microsoft.com/download/dotnet/10.0 set patch_version 6.25358.103 version ${main_version}-preview.${patch_version} 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 >= 21} supported_archs x86_64 arm64 switch ${build_arch} { x86_64 { distname dotnet-runtime-${version}-osx-x64 checksums rmd160 dda29609a4fce5da99b903351c33f95f3e25f56f \ sha256 b966bf3224b1356aca004d7086a1d9ce5b1eda93982113d3d82aa114f373bb10 \ size 35510303 } arm64 { distname dotnet-runtime-${version}-osx-arm64 checksums rmd160 b957bc20af45de1cc063f1655ece1b871c273a37 \ sha256 84820623a44b7a774071d94748b7460f81d69894cebcb16d1dbfc80c30044e65 \ size 33089157 } 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://builds.dotnet.microsoft.com/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.version [join [lrange [split ${patch_version} .] 0 0] .] livecheck.type regex livecheck.url https://dotnet.microsoft.com/download/dotnet/9.0 livecheck.regex ".NET Runtime ${main_version}-preview.(\\d)"