# -*- 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 aspnetcore-runtime-6 version 6.0.31 revision 0 categories dotnet license MIT maintainers {@tsabirgaliev gmail.com:tair.sabirgaliev} \ {@judaew judaew} openmaintainer description ASP.NET Core is a cross-platform .NET framework for building modern \ cloud-based web applications on Windows, Mac, or Linux. 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 aspnetcore-runtime-${version}-osx-x64 checksums rmd160 b5054825f530e12879a4cb99f8dc099869950a59 \ sha256 04f6dce67b0f94780f5510d20157d4b6d723ffcf52aad2c2fb7764510316719d \ size 39201178 } arm64 { distname aspnetcore-runtime-${version}-osx-arm64 checksums rmd160 6532208901ba1f87db80b950770c56a888d95741 \ sha256 a74afe34a23e738d3b291610ba96c2daa19f7fbe775a5115a56f50c03a51e77d \ size 36951469 } 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/aspnetcore/Runtime/${version}/ worksrcdir ${name}-${version} extract.mkdir yes use_configure no depends_run port:dotnet-cli \ port:dotnet-runtime-6 build {} destroot { set dotnet_home ${prefix}/share/dotnet set runtime_dir /shared/Microsoft.AspNetCore.App xinstall -d ${destroot}${dotnet_home}${runtime_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 "ASP.NET Core Runtime (\\d+(?:\\.\\d+)*)"