# -*- 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-cli version 7.0.5 revision 0 categories dotnet license MIT maintainers {@tsabirgaliev gmail.com:tair.sabirgaliev} \ {@judaew judaew} openmaintainer description The .NET command-line interface (CLI) is a cross-platform toolchain \ for developing, building, running, and publishing .NET applications. 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.\ \ This port tracks either 'current' or 'LTS' version of dotnet-cli,\ whichever is latest. homepage https://dotnet.microsoft.com/ platforms darwin supported_archs x86_64 arm64 master_sites https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/ switch ${build_arch} { x86_64 { distname dotnet-runtime-${version}-osx-x64 checksums rmd160 c0c180196118fe43ffeb5052b4d8cc837ceffc4d \ sha256 40b73a4be5f95892aa63778ca1d6947363358e1a22497170d305cada759205b6 \ size 30841345 } arm64 { distname dotnet-runtime-${version}-osx-arm64 checksums rmd160 c0e58344de52362a3a7163e6f7554a604a113da0 \ sha256 c86b258c4a4cca2005f309dae421a667f67b84c7b9b1b0d3de95fe38a2a813f2 \ size 29167516 } default { known_fail yes pre-fetch { ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}" return -code error "Unsupported architecture: ${build_arch}" } } } worksrcdir ${name}-${version} extract.mkdir yes use_configure no build {} destroot { set dotnet_home ${prefix}/share/dotnet set target ${destroot}${dotnet_home} # Create the target directory xinstall -d ${target} # Copy over the needed elements of our directory tree move ${worksrcpath}/dotnet \ ${worksrcpath}/ThirdPartyNotices.txt \ ${worksrcpath}/LICENSE.txt \ ${worksrcpath}/host \ ${target} # Symlink dotnet into the bin directory ln -s ${dotnet_home}/dotnet ${destroot}${prefix}/bin } set major_ver [join [lrange [split ${version} .] 0 1] .] livecheck.type regex livecheck.url https://dotnet.microsoft.com/en-us/download/dotnet/${major_ver} livecheck.regex ".NET Runtime (\\d+(?:\\.\\d+)*)"