/
Portfile
41 lines (32 loc) · 1.66 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
# -*- 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
PortGroup golang 1.0
go.setup gitlab.com/gitlab-org/gitlab-runner 11.5.1 v
categories devel
platforms darwin
supported_archs x86_64
maintainers @breun openmaintainer
license MIT
description GitLab Runner
long_description GitLab Runner is the open source project that is used to \
run your jobs and send the results back to GitLab. It is \
used in conjunction with GitLab CI, the open-source \
continuous integration service included with GitLab that \
coordinates the jobs.
homepage https://docs.gitlab.com/runner/
master_sites https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v${version}/
distname gitlab-runner-v${version}
checksums rmd160 6034424f1d413f545abe0b7d91954be1cfa9bc6a \
sha256 cd9df3755e5606e8bdf426a6743ecf2c3c9ab497facce5f467bda3aefd2164c7 \
size 25750143
# Reproduce the "build_simple" target from the upstream Makefile
set go_ldflags "-X ${go.package}/common.NAME=${go.package} \
-X ${go.package}/common.VERSION=${version} \
-X ${go.package}/common.REVISION=unknown \
-X ${go.package}/common.BUILT=unknown \
-X ${go.package}/common.BRANCH=unknown \
-s -w"
build.args -ldflags \"${go_ldflags}\" -o out/binaries/${name} ${go.package}
destroot {
xinstall -m 0755 ${worksrcpath}/out/binaries/${name} ${destroot}${prefix}/bin/${name}
}