-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
53 lines (44 loc) · 2.06 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- 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 dart-sdk
version 3.5.3
categories lang
license BSD
maintainers {amake @amake} openmaintainer
description The Dart SDK
long_description Dart is an open-source, scalable programming language, \
with robust libraries and runtimes, for building web, \
server, and mobile apps.
platforms {darwin any}
supported_archs x86_64 arm64
homepage https://dart.dev/
master_sites https://storage.googleapis.com/dart-archive/channels/stable/release/${version}/sdk/
distname dartsdk-macos-x64-release
use_zip yes
dist_subdir ${name}/${version}
worksrcdir ${name}
if {${configure.build_arch} eq "x86_64"} {
distname dartsdk-macos-x64-release
checksums rmd160 c1bc5afa7ab105cff434a3621b4b7b7870b55d4e \
sha256 7d673ca3ece0ff563061d65a0e5b84ac8905d26c257fc8dc3d543c8dafa1d0fc \
size 213092082
} elseif {${configure.build_arch} eq "arm64"} {
distname dartsdk-macos-arm64-release
checksums rmd160 a3c93b2bab2938ec4a2b20b03ad9d15eb7c461f0 \
sha256 c73ea25a5b01312bfad0e222dbd6f0677c46e2a4faa19b9c2b18f8506da03f8b \
size 211351318
}
use_configure no
build {}
destroot {
set libexecdir ${prefix}/libexec/${name}
copy ${worksrcpath} ${destroot}${libexecdir}
ln -s ${libexecdir}/bin/dart ${destroot}${prefix}/bin
foreach bin [glob -tails -directory ${destroot}${libexecdir}/bin pub dart?*] {
xinstall -m 0755 ${filespath}/shim.in ${destroot}${prefix}/bin/${bin}
reinplace "s|@@BIN@@|${libexecdir}/bin/${bin}|g" ${destroot}${prefix}/bin/${bin}
}
}
livecheck.type regex
livecheck.url https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION
livecheck.regex "\"version\": \"(\[0-9.\]+)\""