Skip to content

Commit

Permalink
homeworlds: update stable url, deprecate
Browse files Browse the repository at this point in the history
The existing `stable` URL for `homeworlds` is a Git revision with no
`tag`. We have some other formulae in a similar situation but they
use a commit tarball instead of checking out the Git repository
(e.g., `luajit`), so this updates the formula to follow the same
pattern.

This also deprecates the formula, as the `stable` URL does not meet
our current requirements.
  • Loading branch information
samford committed Jan 27, 2025
1 parent 2dee229 commit 9b23362
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/h/homeworlds.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Homeworlds < Formula
desc "C++ framework for the game of Binary Homeworlds"
homepage "https://github.com/Quuxplusone/Homeworlds/"
url "https://github.com/Quuxplusone/Homeworlds.git",
revision: "917cd7e7e6d0a5cdfcc56cd69b41e3e80b671cde"
url "https://github.com/Quuxplusone/Homeworlds/archive/917cd7e7e6d0a5cdfcc56cd69b41e3e80b671cde.tar.gz"
version "20141022"
sha256 "330ebda8b2871049bd15bcb11b9ed91f5308a9c1d20a056ff8ce4d00aadb916c"
license "BSD-2-Clause"
revision 5

Expand All @@ -25,6 +25,9 @@ class Homeworlds < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "88f7a3976037aea175f742cb16c1e3e0e7e0f7945bf9f24b42eaedeabe16834c"
end

# Unversioned and upstream repository has no tags or releases.
deprecate! date: "2025-01-26", because: "does not meet requirements for `stable` URLs"

depends_on "wxwidgets"

def install
Expand Down

0 comments on commit 9b23362

Please sign in to comment.