pantry/projects/tuist.io/xcbeautify/package.yml

32 lines
771 B
YAML
Raw Normal View History

2023-06-27 18:41:50 +03:00
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
2023-07-16 08:32:38 +03:00
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)
2023-07-16 08:32:38 +03:00
# 0.21.0 doesn't have its version bumped
- run: echo 'let version = "{{version}}"' > Sources/xcbeautify/Version.swift
2023-11-17 06:17:34 +03:00
if: '>=0.21.0'
2023-07-16 08:32:38 +03:00
- make install
2023-12-28 00:26:24 +03:00
env:
PREFIX: '{{prefix}}'
2023-06-27 18:41:50 +03:00
test: xcbeautify --version | grep {{version}}