2021-05-24 02:16:15 +06: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-devel
|
2025-07-14 18:08:23 +02:00
|
|
|
set main_version 10.0.0
|
|
|
|
|
# See patch version in https://dotnet.microsoft.com/download/dotnet/10.0
|
2025-10-20 19:56:09 +02:00
|
|
|
set patch_version rc.2.25502.107
|
2025-09-16 21:10:36 +02:00
|
|
|
version ${main_version}-${patch_version}
|
2023-02-23 22:29:44 +02:00
|
|
|
revision 0
|
2021-05-24 02:16:15 +06:00
|
|
|
categories dotnet
|
|
|
|
|
license MIT
|
2025-10-21 00:52:00 +03:00
|
|
|
maintainers @BjarneDMat {@judaew judaew} openmaintainer
|
2021-05-24 02:16:15 +06: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 >= 21}
|
2022-03-23 22:38:40 +03:00
|
|
|
supported_archs x86_64 arm64
|
2021-05-24 02:16:15 +06:00
|
|
|
|
2022-03-23 22:38:40 +03:00
|
|
|
switch ${build_arch} {
|
|
|
|
|
x86_64 {
|
|
|
|
|
distname dotnet-runtime-${version}-osx-x64
|
2025-10-20 19:56:09 +02:00
|
|
|
checksums rmd160 2358dff736eed5d26ab9d59bd8a615aa196179ef \
|
|
|
|
|
sha256 be8a54d1eecf02039f84f5aa3ef8c240729c64591c55725da2ba4d095e9d153e \
|
|
|
|
|
size 35691179
|
2022-03-23 22:38:40 +03:00
|
|
|
}
|
|
|
|
|
arm64 {
|
|
|
|
|
distname dotnet-runtime-${version}-osx-arm64
|
2025-10-20 19:56:09 +02:00
|
|
|
checksums rmd160 2d8f4e328547087c948901a63dcf97bf6c61104c \
|
|
|
|
|
sha256 e83c23b7911a0941b240a78967fc58f1fd8cb7b7c5ec4176ed7d4cc246f759e3 \
|
|
|
|
|
size 33302617
|
2022-03-23 22:38:40 +03:00
|
|
|
}
|
|
|
|
|
default {
|
|
|
|
|
known_fail yes
|
|
|
|
|
pre-fetch {
|
|
|
|
|
ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}"
|
2024-02-28 17:40:43 +08:00
|
|
|
return -code error "Unsupported architecture: ${build_arch}"
|
2022-03-23 22:38:40 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-16 10:26:53 -07:00
|
|
|
master_sites https://builds.dotnet.microsoft.com/dotnet/Runtime/${version}/
|
2021-05-24 02:16:15 +06:00
|
|
|
|
|
|
|
|
worksrcdir ${name}-${version}
|
|
|
|
|
extract.mkdir yes
|
|
|
|
|
|
|
|
|
|
use_configure no
|
|
|
|
|
|
|
|
|
|
depends_run port:dotnet-cli
|
|
|
|
|
|
|
|
|
|
build {}
|
|
|
|
|
|
|
|
|
|
destroot {
|
|
|
|
|
set dotnet_home ${prefix}/share/dotnet
|
2024-02-28 17:40:43 +08:00
|
|
|
set hostfxr_dir /host/fxr
|
2021-05-24 02:16:15 +06:00
|
|
|
set runtime_dir /shared/Microsoft.NETCore.App
|
2024-02-28 17:40:43 +08:00
|
|
|
xinstall -d ${destroot}${dotnet_home}${hostfxr_dir}
|
2021-05-24 02:16:15 +06:00
|
|
|
xinstall -d ${destroot}${dotnet_home}${runtime_dir}
|
|
|
|
|
|
2024-02-28 17:40:43 +08:00
|
|
|
move ${worksrcpath}${hostfxr_dir}/${version} ${destroot}${dotnet_home}${hostfxr_dir}
|
2021-05-24 02:16:15 +06:00
|
|
|
move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir}
|
|
|
|
|
}
|
2023-02-27 22:57:28 +02:00
|
|
|
|
|
|
|
|
livecheck.version [join [lrange [split ${patch_version} .] 0 0] .]
|
|
|
|
|
livecheck.type regex
|
2025-09-16 21:10:36 +02:00
|
|
|
livecheck.url https://dotnet.microsoft.com/download/dotnet/10.0
|
|
|
|
|
livecheck.regex ".NET Runtime ${main_version}-(\\d)"
|