# -*- 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 mas-cli mas 1.8.7 v revision 0 categories sysutils description Mac App Store command line interface long_description A simple command line interface for the Mac App Store. \ Designed for scripting and automation. license MIT maintainers {kimuraw @kimuraw} \ {judaew @judaew} openmaintainer checksums sha256 70dcbfb1ee9d7d90cb6b08deff5c89e47cb4d99a48f6fe58a39d05d0cfe47ab7 \ rmd160 de40870f234ccf3fd3dee83bdbd0a24d6b7b3b21 \ size 362475 # requirements: # - mas: Xcode 11.4 or later set xcodeversion_min_required 11.4 pre-fetch { if {[vercmp ${xcodeversion} ${xcodeversion_min_required}] < 0} { ui_error "${name} @${version} requires Xcode ${xcodeversion_min_required} or later but you have Xcode ${xcodeversion}." ui_error "See https://guide.macports.org/chunked/installing.xcode.html for download links." return -code error "incompatible Xcode version" } } patchfiles patch-fix-version.diff post-patch { reinplace "s,@@VERSION@@,${version},g" \ ${worksrcpath}/Sources/mas/Commands/Version.swift } use_configure no use_xcode yes build.cmd swift build.target build build.args --configuration release \ --arch ${configure.build_arch} \ --disable-sandbox destroot { xinstall -m 0755 ${worksrcpath}/.build/${configure.build_arch}-apple-macosx/release/${name} \ ${destroot}${prefix}/bin/${name} set bash_complete ${prefix}/share/bash-completion/completions xinstall -d ${destroot}${bash_complete} xinstall -m 0644 ${worksrcpath}/contrib/completion/mas-completion.bash \ ${destroot}${bash_complete}/${name} set fish_complete ${prefix}/share/fish/vendor_completions.d xinstall -d ${destroot}${fish_complete} xinstall -m 0644 ${worksrcpath}/contrib/completion/mas.fish \ ${destroot}${bash_complete}/${name}.fish } github.livecheck.regex {([0-9.]+)}