Files

71 lines
2.5 KiB
Tcl
Raw Permalink Normal View History

2022-03-15 19:03:30 +03:00
# -*- 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-runtime-6
2025-10-21 00:38:41 +03:00
version 6.0.36
2023-02-27 23:32:59 +02:00
revision 0
2022-03-15 19:03:30 +03:00
categories dotnet
license MIT
maintainers {@judaew judaew} openmaintainer
2022-03-15 19:03:30 +03:00
description .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
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/
2024-06-03 17:53:01 +03:00
platforms {darwin any} {darwin >= 19}
2022-03-23 22:47:27 +03:00
supported_archs x86_64 arm64
2022-03-15 19:03:30 +03:00
2022-03-23 22:47:27 +03:00
switch ${build_arch} {
x86_64 {
distname dotnet-runtime-${version}-osx-x64
2025-10-21 00:38:41 +03:00
checksums rmd160 cb77ad40b66afd26fbd2f30b5458935dedebb47e \
sha256 4aa499f1e10e941bde250e1493bb4156791186790a34fb89c219e7765a9b97cd \
size 30108326
2022-03-23 22:47:27 +03:00
}
arm64 {
distname dotnet-runtime-${version}-osx-arm64
2025-10-21 00:38:41 +03:00
checksums rmd160 4e28c6c0d594aa4cb07cd717220650a9b4a843f1 \
sha256 c4ea0b90326de8d90ee7d821f722add96a2f7c35f02c67f3ae0b697764290a4e \
size 28255302
2022-03-23 22:47:27 +03:00
}
default {
known_fail yes
pre-fetch {
ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}"
return -code error "Unsupported architecture: ${build_arch}"
}
}
}
2025-05-16 10:26:53 -07:00
master_sites https://builds.dotnet.microsoft.com/dotnet/Runtime/${version}/
2022-03-15 19:03:30 +03:00
worksrcdir ${name}-${version}
extract.mkdir yes
use_configure no
depends_run port:dotnet-cli
build {}
destroot {
set dotnet_home ${prefix}/share/dotnet
2023-10-25 02:30:25 +08:00
set hostfxr_dir /host/fxr
2022-03-15 19:03:30 +03:00
set runtime_dir /shared/Microsoft.NETCore.App
2023-10-25 02:30:25 +08:00
xinstall -d ${destroot}${dotnet_home}${hostfxr_dir}
2022-03-15 19:03:30 +03:00
xinstall -d ${destroot}${dotnet_home}${runtime_dir}
2023-10-25 02:30:25 +08:00
move ${worksrcpath}${hostfxr_dir}/${version} ${destroot}${dotnet_home}${hostfxr_dir}
2022-03-15 19:03:30 +03:00
move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir}
}
2023-02-27 22:57:28 +02:00
livecheck.type regex
2024-12-29 19:51:33 -08:00
livecheck.url https://dotnet.microsoft.com/download/dotnet/6.0
2023-02-27 22:57:28 +02:00
livecheck.regex ".NET Runtime (\\d+(?:\\.\\d+)*)"