Skip to content

Commit c54e601

Browse files
committed
dotnet-sdk-10: new port
1 parent 4a6b2d9 commit c54e601

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

dotnet/dotnet-sdk-10/Portfile

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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-sdk-10
6+
version 10.0.100
7+
revision 0
8+
categories dotnet devel
9+
license MIT
10+
maintainers @BjarneDMat {@judaew judaew} openmaintainer
11+
12+
description Core functionality needed to create .NET Core projects, that is \
13+
shared between Visual Studio and CLI
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+
set dotnet_rid osx-x64
28+
distname dotnet-sdk-${version}-osx-x64
29+
checksums rmd160 da836195fed2d8dbbc7c6531ea7ceae0c1de4ad0 \
30+
sha256 d8fd6e3f2e393cad300794d43ae26d01f9db31356c95381bcfb9d3d7f66d187e \
31+
size 237608768
32+
}
33+
arm64 {
34+
set dotnet_rid osx-arm64
35+
distname dotnet-sdk-${version}-osx-arm64
36+
checksums rmd160 1f56a25b596097e684fb31750433ff6dda39c1cc \
37+
sha256 71b3815ef8d83a6bbebf8627a56639600193f22d4ea6a6de2f71855c4b3e63fd \
38+
size 229936839
39+
}
40+
default {
41+
known_fail yes
42+
pre-fetch {
43+
ui_error "${subport} @ ${version} only supported for architectures ${supported_archs}"
44+
return -code error "Unsupported architecture: ${build_arch}"
45+
}
46+
}
47+
}
48+
49+
master_sites https://builds.dotnet.microsoft.com/dotnet/Sdk/${version}/
50+
51+
worksrcdir ${name}-${version}
52+
extract.mkdir yes
53+
54+
use_configure no
55+
56+
depends_run port:dotnet-cli \
57+
port:dotnet-runtime-9 \
58+
port:aspnetcore-runtime-9
59+
60+
build {}
61+
62+
destroot {
63+
set dotnet_home ${prefix}/share/dotnet
64+
set dotnet_runtime_version 10.0.0
65+
66+
# ASP.NET Core Targeting Pack
67+
set aspnet_target_dir /packs/Microsoft.AspNetCore.App.Ref
68+
set aspnet_target_version ${dotnet_runtime_version}
69+
xinstall -d ${destroot}${dotnet_home}${aspnet_target_dir}
70+
move ${worksrcpath}${aspnet_target_dir}/${aspnet_target_version} ${destroot}${dotnet_home}${aspnet_target_dir}
71+
72+
# .NET AppHost Pack
73+
set dotnet_apphost_dir /packs/Microsoft.NETCore.App.Host.${dotnet_rid}
74+
set dotnet_apphost_version ${dotnet_runtime_version}
75+
xinstall -d ${destroot}${dotnet_home}${dotnet_apphost_dir}
76+
move ${worksrcpath}${dotnet_apphost_dir}/${dotnet_apphost_version} ${destroot}${dotnet_home}${dotnet_apphost_dir}
77+
78+
# .NET Targeting Pack
79+
set dotnet_target_dir /packs/Microsoft.NETCore.App.Ref
80+
set dotnet_target_version ${dotnet_runtime_version}
81+
xinstall -d ${destroot}${dotnet_home}${dotnet_target_dir}
82+
move ${worksrcpath}${dotnet_target_dir}/${dotnet_target_version} ${destroot}${dotnet_home}${dotnet_target_dir}
83+
84+
# SDK
85+
xinstall -d ${destroot}${dotnet_home}/sdk
86+
move ${worksrcpath}/sdk/${version} ${destroot}${dotnet_home}/sdk
87+
88+
# SDK-Manifests
89+
set dotnet_manifest_version 9.0.100
90+
xinstall -d ${destroot}${dotnet_home}/sdk-manifests
91+
move ${worksrcpath}/sdk-manifests/${dotnet_manifest_version} ${destroot}${dotnet_home}/sdk-manifests
92+
93+
# Templates
94+
set dotnet_templates_version ${dotnet_runtime_version}
95+
xinstall -d ${destroot}${dotnet_home}/templates
96+
move ${worksrcpath}/templates/${dotnet_templates_version} ${destroot}${dotnet_home}/templates
97+
}
98+
99+
livecheck.type regex
100+
livecheck.url https://dotnet.microsoft.com/download/dotnet/9.0
101+
livecheck.regex "SDK (\\d+(?:\\.\\d+)*)"

0 commit comments

Comments
 (0)