You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
71 lines
2.6 KiB
Tcl
71 lines
2.6 KiB
Tcl
# -*- 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-8
|
|
version 8.0.28
|
|
revision 0
|
|
categories dotnet
|
|
license MIT
|
|
maintainers @BjarneDMat {@judaew judaew} openmaintainer
|
|
|
|
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/
|
|
platforms {darwin any} {darwin >= 21}
|
|
supported_archs x86_64 arm64
|
|
|
|
switch ${build_arch} {
|
|
x86_64 {
|
|
distname dotnet-runtime-${version}-osx-x64
|
|
checksums rmd160 e4298b3a847cc63ee5ad7a3909d51dd544e194bb \
|
|
sha256 0acbfcc1c1a819fd49e12ecbcc8ed18d1b008f57a458d5a54b7b1fbcdf317eed \
|
|
size 30711710
|
|
}
|
|
arm64 {
|
|
distname dotnet-runtime-${version}-osx-arm64
|
|
checksums rmd160 21d1b884fb47eea00d4da0799df92de943ddf474 \
|
|
sha256 2838e6890a86f3354a0a3bcaeb35ec2df9328f5f77fda2066cc81f232da35658 \
|
|
size 29085166
|
|
}
|
|
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://builds.dotnet.microsoft.com/dotnet/Runtime/${version}/
|
|
|
|
worksrcdir ${name}-${version}
|
|
extract.mkdir yes
|
|
|
|
use_configure no
|
|
|
|
depends_run port:dotnet-cli
|
|
|
|
build {}
|
|
|
|
destroot {
|
|
set dotnet_home ${prefix}/share/dotnet
|
|
set hostfxr_dir /host/fxr
|
|
set runtime_dir /shared/Microsoft.NETCore.App
|
|
xinstall -d ${destroot}${dotnet_home}${hostfxr_dir}
|
|
xinstall -d ${destroot}${dotnet_home}${runtime_dir}
|
|
|
|
move ${worksrcpath}${hostfxr_dir}/${version} ${destroot}${dotnet_home}${hostfxr_dir}
|
|
move ${worksrcpath}${runtime_dir}/${version} ${destroot}${dotnet_home}${runtime_dir}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url https://dotnet.microsoft.com/download/dotnet/8.0
|
|
livecheck.regex ".NET Runtime (\\d+(?:\\.\\d+)*)"
|