Skip to content

Commit

Permalink
mas: 1.9.0
Browse files Browse the repository at this point in the history
Script `generate_package_swift` must be run before building this version, for the new `config` verb.
  • Loading branch information
i0ntempest committed Jan 4, 2025
1 parent fd09372 commit c510751
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
26 changes: 16 additions & 10 deletions sysutils/mas/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
PortSystem 1.0
PortGroup github 1.0

github.setup mas-cli mas 1.8.8 v
github.setup mas-cli mas 1.9.0 v
set git-commit a5a928a
# This line is for displaying commit in CLI only
revision 0
categories sysutils
description Mac App Store command line interface
Expand All @@ -14,9 +16,12 @@ license MIT
maintainers {kimuraw @kimuraw} \
{judaew @judaew} openmaintainer

checksums sha256 0eabeb59eca4eca7c423a76cc70983cd100e27dd0d1f0528e26a54f35053627f \
rmd160 0fbb2504c1364b6eeb53968a7aa60e3b69025521 \
size 351935
checksums sha256 4b95333b1ebe252808b25bf9759088fab0fe293a47c223bc6f36548cf5c16d4b \
rmd160 8e05896d6a6a1c85c1dc57e6bca7354aa3b5d5e6 \
size 351308

use_configure no
use_xcode yes

# requirements:
# - mas: Xcode 11.4 or later
Expand All @@ -29,15 +34,16 @@ pre-fetch {
}
}

patchfiles patch-fix-version.diff

post-patch {
reinplace "s,@@VERSION@@,${version},g" \
${worksrcpath}/Sources/mas/Commands/Version.swift
reinplace "s|\$(script/version)|${version}|" ${worksrcpath}/script/generate_package_swift
reinplace "s|\${1:-unknown}|MacPorts|" ${worksrcpath}/script/generate_package_swift
reinplace "s|\$(git remote get-url origin)|${git.url}|" ${worksrcpath}/script/generate_package_swift
reinplace "s|\$(git rev-parse HEAD)|${git-commit}|" ${worksrcpath}/script/generate_package_swift
}

use_configure no
use_xcode yes
pre-configure {
system -W ${worksrcpath} "./script/generate_package_swift"
}

build.cmd swift
build.target build
Expand Down
11 changes: 0 additions & 11 deletions sysutils/mas/files/patch-fix-version.diff

This file was deleted.

0 comments on commit c510751

Please sign in to comment.