Skip to content

Commit

Permalink
Update game-porting-toolkit.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Jul 14, 2024
1 parent 452dc4e commit 163177f
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions Formula/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# The 22.1.1 tarball contains an empty sources/freetype directory, which confuses the default CurlDownloadStrategy.
# A custom strategy also allows us to restrict extraction to just wine.
class TarballDownloadStrategy < CurlDownloadStrategy
def stage
ohai "Staging #{cached_location} in #{pwd}"
system "tar", "-xf", cached_location, "--include=sources/wine/*", "--strip-components=2"
yield
end
end

class GamePortingToolkit < Formula

Check failure on line 1 in Formula/game-porting-toolkit.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

Stable: version 1.1 is redundant with version scanned from URL
desc "Apple Game Porting Toolkit"
homepage "https://developer.apple.com/"
url "https://media.codeweavers.com/pub/crossover/source/crossover-sources-22.1.1.tar.gz", using: TarballDownloadStrategy
url "https://github.com/The-Wineskin-Project/wine/archive/refs/heads/Game-Porting-Toolkit-1.1-Fixup.zip"

Check failure on line 4 in Formula/game-porting-toolkit.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

FormulaAudit/Urls: Use GitHub tarballs rather than zipballs (url is https://github.com/The-Wineskin-Project/wine/archive/refs/heads/Game-Porting-Toolkit-1.1-Fixup.zip).
version "1.1"
sha256 "cdfe282ce33788bd4f969c8bfb1d3e2de060eb6c296fa1c3cdf4e4690b8b1831"

Expand Down Expand Up @@ -46,37 +36,11 @@ class GamePortingToolkit < Formula
sha256 "b4476706a4c3f23461da98bed34f355ff623c5d2bb2da1e2fa0c6a310bc33014"
end

# Getting patchs from my winecx mirror
# Game Porting Toolkit 1.0 (beta 1)
patch do
url "https://github.com/Gcenx/winecx/commit/ab4973d083af65dcd6dfd942ce962e41a24c00ca.patch?full_index=1"
url "https://github.com/Gcenx/macports-wine/blob/main/devel/game-porting-toolkit/files/1006-build_fixes.diff"
sha256 "085c8d6762c899b7d1f8ab304aaffbf9f0b21c589d0ba24047625eb9d7af456b"
end

# Game Porting Toolkit 1.0 (beta 2)
patch do
url "https://github.com/Gcenx/winecx/commit/2da8f1b28ab80fa1f5b06280c2df179efbe79acc.patch?full_index=1"
sha256 "cacbf7f05dc8a355b8136279ef5f47a83cfa5dd7b2aa04e67f62ee8437ab9df7"
end

# Game Porting Toolkit 1.0 (beta 3)
patch do
url "https://github.com/Gcenx/winecx/commit/1e0b0fddce1c762c4504c948d198ec4e95d4d6c9.patch?full_index=1"
sha256 "d9375141b843f6281df081becc3cfd777c425c5ebb140a87ce450cb7d9e0a4b9"
end

# Game Porting Toolkit 1.0 (beta 4)
patch do
url "https://github.com/Gcenx/winecx/commit/b6c79917506b438217aa2eaea3b13b9acf9e1c81.patch?full_index=1"
sha256 "0bcd8b2e407b16dc0db795cf132e179e952ab0da6f1b4c1824abd13e7975c2c3"
end

# Game Porting Toolkit 1.1
patch do
url "https://github.com/Gcenx/winecx/commit/2e232b59da4612f2f131bd2f690d70d8fbdf9b87.patch?full_index=1"
sha256 "073165eb8f19e3cfcceca5b3279214ea977e6f2d4275464cd17e7509a4f2733c"
end

def install
# Bypass the Homebrew shims to build native binaries with the dedicated compiler.
# (PE binaries will be built with mingw32-gcc.)
Expand Down

0 comments on commit 163177f

Please sign in to comment.