Skip to content

Commit

Permalink
swiftformat: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabinow committed Sep 2, 2024
1 parent a3e4610 commit 512cff9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions devel/swiftformat/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- 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 github 1.0

github.setup nicklockwood swiftformat 0.54.3
github.tarball_from archive
revision 0

platforms {darwin >= 21}
categories devel
license MIT
maintainers {jrabinow @jrabinow} openmaintainer
description Swift formatter
long_description A tool to format Swift code

checksums rmd160 99a28b4b6b7cdfdca0fa25a7f8d82ff2b28f5b80 \
sha256 f0fb5df2945d49207ef50da971810e6879acb0153267bec0be0d882f77781649 \
size 3154784

# Clearing CPATH because of header conflicts with MacOSX13.sdk when using swiftPM build system
compiler.cpath

use_configure no
use_xcode yes

build.cmd swift
build.target build
build.args --configuration release --disable-sandbox

test.run yes
test.cmd swift
test.target test
test.args --disable-sandbox

set builtproductdir ${worksrcpath}/.build/release

destroot {
xinstall -m 755 ${builtproductdir}/${name} ${destroot}${prefix}/bin/
}

0 comments on commit 512cff9

Please sign in to comment.