Commits

Aaron Madlon-Kay authored and Clemens Lang committed 2cb1238eb0f
shfmt: new port
No tags

devel/shfmt/Portfile

Added
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 +PortGroup github 1.0
5 +
6 +github.setup mvdan sh 2.3.0 v
7 +name shfmt
8 +categories devel
9 +platforms darwin
10 +maintainers {@amake madlon-kay.com:aaron+macports} openmaintainer
11 +license BSD
12 +
13 +description Autoformat shell script source code
14 +
15 +long_description A shell script formatter supporting POSIX shell, Bash, and mksh.
16 +
17 +depends_build port:go
18 +use_configure no
19 +
20 +checksums rmd160 958f20e3482c392c99828e67605a127cc307597b \
21 + sha256 6a42a146aefdce3234eba0b1e6210323a79c1668ecb2e00f8e63d901d810289f
22 +
23 +post-extract {
24 + xinstall -d ${worksrcpath}/src/mvdan.cc/
25 + ln -sf ${worksrcpath} ${worksrcpath}/src/mvdan.cc/${github.project}
26 +}
27 +
28 +build.cmd go
29 +build.target build
30 +build.args -a -tags 'production brew' mvdan.cc/sh/cmd/shfmt
31 +build.env GOPATH=${worksrcpath} \
32 + CC=${configure.cc}
33 +
34 +destroot {
35 + xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
36 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut