|
| 1 | +# -*- 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 |
| 2 | + |
| 3 | +PortSystem 1.0 |
| 4 | + |
| 5 | +name aspnetcore-runtime-10 |
| 6 | +version 10.0.0 |
| 7 | +revision 0 |
| 8 | +categories dotnet |
| 9 | +license MIT |
| 10 | +maintainers @BjarneDMat {@judaew judaew} openmaintainer |
| 11 | + |
| 12 | +description ASP.NET Core is a cross-platform .NET framework for building modern \ |
| 13 | + cloud-based web applications on Windows, Mac, or Linux. |
| 14 | + |
| 15 | +long_description .NET is a free, cross-platform, open source developer platform \ |
| 16 | + for building many different types of applications. \ |
| 17 | + \ |
| 18 | + With .NET, you can use multiple languages, editors, and libraries \ |
| 19 | + to build for web, mobile, desktop, games, and IoT. |
| 20 | + |
| 21 | +homepage https://dotnet.microsoft.com/ |
| 22 | +platforms {darwin any} {darwin >= 21} |
| 23 | +supported_archs x86_64 arm64 |
| 24 | + |
| 25 | +switch ${build_arch} { |
| 26 | + x86_64 { |
| 27 | + distname aspnetcore-runtime-${version}-osx-x64 |
| 28 | + checksums rmd160 5b8aac6d8eba9b9fa945eae1fb09835a6e68b652 \ |
| 29 | + sha256 1cd63065f68a9174da4eef99a3ee062bb66f1a13fbbbcbae898fff45c0414913 \ |
| 30 | + size 48428368 |
| 31 | + } |
| 32 | + arm64 { |
| 33 | + distname aspnetcore-runtime-${version}-osx-arm64 |
| 34 | + checksums rmd160 060841c8c8342eeaac09e11281bacdf9722abb36 \ |
| 35 | + sha256 f9e76b7959297a8d1f12c703c653612306c9ffa4b90b6040ee1a837ac2bebdf5 \ |
| 36 | + size 45559656 |
| 37 | + } |
| 38 | + default { |
| 39 | + known_fail yes |
| 40 | + pre-fetch { |
| 41 | + ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}" |
| 42 | + return -code error "Unsupported architecture: ${build_arch}" |
| 43 | + } |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +master_sites https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/${version}/ |
| 48 | + |
| 49 | +worksrcdir ${name}-${version} |
| 50 | +extract.mkdir yes |
| 51 | + |
| 52 | +use_configure no |
| 53 | + |
| 54 | +depends_run port:dotnet-cli \ |
| 55 | + port:dotnet-runtime-8 |
| 56 | + |
| 57 | +build {} |
| 58 | + |
| 59 | +destroot { |
| 60 | + set dotnet_home ${prefix}/share/dotnet |
| 61 | + set runtime_dir /shared/Microsoft.AspNetCore.App |
| 62 | + xinstall -d ${destroot}${dotnet_home}${runtime_dir} |
| 63 | + |
| 64 | + move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir} |
| 65 | +} |
| 66 | + |
| 67 | +livecheck.type regex |
| 68 | +livecheck.url https://dotnet.microsoft.com/download/dotnet/9.0 |
| 69 | +livecheck.regex "ASP.NET Core Runtime (\\d+(?:\\.\\d+)*)" |
0 commit comments