|
| 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 dotnet-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 .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. |
| 13 | + |
| 14 | +long_description .NET is a free, cross-platform, open source developer platform \ |
| 15 | + for building many different types of applications. \ |
| 16 | + \ |
| 17 | + With .NET, you can use multiple languages, editors, and libraries \ |
| 18 | + to build for web, mobile, desktop, games, and IoT. |
| 19 | + |
| 20 | +homepage https://dotnet.microsoft.com/ |
| 21 | +platforms {darwin any} {darwin >= 21} |
| 22 | +supported_archs x86_64 arm64 |
| 23 | + |
| 24 | +switch ${build_arch} { |
| 25 | + x86_64 { |
| 26 | + distname dotnet-runtime-${version}-osx-x64 |
| 27 | + checksums rmd160 cccb9f0e098bee2231764aec0d63fb43ccf614b2 \ |
| 28 | + sha256 d20a52374d7c2af564d01ff11e74f5c1cbbd9c37302a56f3f8e7007a22f5f5fa \ |
| 29 | + size 35640891 |
| 30 | + } |
| 31 | + arm64 { |
| 32 | + distname dotnet-runtime-${version}-osx-arm64 |
| 33 | + checksums rmd160 1f95b087a662e56a51c8cd9c3b899a7646a771ba \ |
| 34 | + sha256 871d5a3895e327f75b11ddbcd0ab7c7d0f3ed745dd9ec0befd31e368517bf8cf \ |
| 35 | + size 33280114 |
| 36 | + } |
| 37 | + default { |
| 38 | + known_fail yes |
| 39 | + pre-fetch { |
| 40 | + ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}" |
| 41 | + return -code error "Unsupported architecture: ${build_arch}" |
| 42 | + } |
| 43 | + } |
| 44 | +} |
| 45 | + |
| 46 | +master_sites https://builds.dotnet.microsoft.com/dotnet/Runtime/${version}/ |
| 47 | + |
| 48 | +worksrcdir ${name}-${version} |
| 49 | +extract.mkdir yes |
| 50 | + |
| 51 | +use_configure no |
| 52 | + |
| 53 | +depends_run port:dotnet-cli |
| 54 | + |
| 55 | +build {} |
| 56 | + |
| 57 | +destroot { |
| 58 | + set dotnet_home ${prefix}/share/dotnet |
| 59 | + set hostfxr_dir /host/fxr |
| 60 | + set runtime_dir /shared/Microsoft.NETCore.App |
| 61 | + xinstall -d ${destroot}${dotnet_home}${hostfxr_dir} |
| 62 | + xinstall -d ${destroot}${dotnet_home}${runtime_dir} |
| 63 | + |
| 64 | + move ${worksrcpath}${hostfxr_dir}/${version} ${destroot}${dotnet_home}${hostfxr_dir} |
| 65 | + move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir} |
| 66 | +} |
| 67 | + |
| 68 | +livecheck.type regex |
| 69 | +livecheck.url https://dotnet.microsoft.com/download/dotnet/9.0 |
| 70 | +livecheck.regex ".NET Runtime (\\d+(?:\\.\\d+)*)" |
0 commit comments