-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
76 lines (54 loc) · 2.09 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- 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
version 5.9.1
revision 0
if {${os.major} >= 17} {
set source_build yes
} else {
set source_build no
}
if ${source_build} {
PortGroup golang 1.0
go.setup github.com/symfony-cli/symfony-cli ${version} v
} else {
PortGroup github 1.0
github.setup symfony-cli symfony-cli ${version} v
}
name symfony-cli
homepage https://symfony.com/download
description The Symfony CLI tool
long_description The Symfony CLI tool is a must-have tool when developing \
Symfony applications on your local machine.
categories devel
installs_libs no
license AGPL-3+
maintainers {@antalaron antalaron.hu:antalaron} \
openmaintainer
if ${source_build} {
# Allow Go to fetch dependencies at build time
go.offline_build no
build.env CGO_ENABLED=0
build.args -o ${workpath}/symfony -trimpath -ldflags="-s -w -X 'main.version=${version}' -X 'main.channel=stable'"
use_parallel_build no
checksums rmd160 8f9ecbd898bcf9aaf8444219b9f9d38169aa7fed \
sha256 0a5dabe20f02e73fb8a31ff5e234e179297145785efe02b764c768a25d37a17d \
size 268130
github.tarball_from archive
} else {
build {}
distname symfony-cli_darwin_all
checksums rmd160 7de798cf8ea8a7dacac80d927a8dd3670ceb724e \
sha256 98f9ef28a53c90ca55198dc3aa66defa8b30d65e5c4ce20f1a7fbe79b375f628 \
size 11412604
github.tarball_from releases
use_configure no
}
destroot {
if ${source_build} {
if {${configure.build_arch} eq {arm64}} {
system "codesign -f -s - ${workpath}/symfony"
}
}
xinstall -m 0755 -W ${workpath} symfony ${destroot}${prefix}/bin
}
github.livecheck.regex {([0-9.]+)}