# -*- 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-devel set main_version 9.0.0 # See patch version in https://dotnet.microsoft.com/en-us/download/dotnet/9.0 set patch_version 4.24267.6 version ${main_version}-preview.${patch_version} 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 >= 21} supported_archs x86_64 arm64 switch ${build_arch} { x86_64 { distname aspnetcore-runtime-${version}-osx-x64 checksums rmd160 455ecdcfe29742f73a0adab257e3b45aa4289567 \ sha256 64adbee3a02b2c6c79fb0fd240665c1f3ad27c837c9b61023ef7e5380bf48fa4 \ size 42625718 } arm64 { distname aspnetcore-runtime-${version}-osx-arm64 checksums rmd160 6d25c2dd03c898193a9007e9d871e09c1f0410f9 \ sha256 4f236f27dd88ecced06e014b24f469c2c9476c5de8aada8b9a14a46e2ada1a8f \ size 40521802 } 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-devel 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.version [join [lrange [split ${patch_version} .] 0 0] .] livecheck.type regex livecheck.url https://dotnet.microsoft.com/en-us/download/dotnet/9.0 livecheck.regex "ASP.NET Core Runtime ${main_version}-preview.(\\d)"