pantry/projects/tuist.io/xcbeautify/package.yml
Jacob Heider 2c9d8e681c fix(xcbeautify)
closes #4787
closes #4771
closes #4770
2024-01-10 16:26:05 -05:00

32 lines
771 B
YAML

distributable:
url: https://github.com/tuist/xcbeautify/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: tuist/xcbeautify
platforms:
- darwin
provides:
- bin/xcbeautify
build:
# dependencies:
# swift.org: 5
# apple.com/xcode: >=13.3
script:
# swift freaks all the way out if there's UTF-8 in the `TMPDIR`
# swift build --configuration=release
# TSCUtility/Triple.swift:215: Fatal error: Failed to parse target info (malformed).
- export TMPDIR=$(mktemp -d)
# 0.21.0 doesn't have its version bumped
- run: echo 'let version = "{{version}}"' > Sources/xcbeautify/Version.swift
if: '>=0.21.0'
- make install
env:
PREFIX: '{{prefix}}'
test: xcbeautify --version | grep {{version}}