Skip to content

Commit

Permalink
augeas: fix build
Browse files Browse the repository at this point in the history
Fix submitted upstream at hercules-team/augeas#792.
  • Loading branch information
ZhongRuoyu committed Dec 13, 2022
1 parent 7a5a976 commit 9d1f256
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Formula/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
class Augeas < Formula
desc "Configuration editing tool and API"
homepage "https://augeas.net/"
url "https://github.com/hercules-team/augeas/releases/download/release-1.14.0/augeas-1.14.0.tar.gz"
sha256 "8c101759ca3d504bd1d805e70e2f615fa686af189dd7cf0529f71d855c087df1"
license "LGPL-2.1-or-later"
head "https://github.com/hercules-team/augeas.git", branch: "master"

# Remove stable block when patch is no longer needed.
stable do
url "https://github.com/hercules-team/augeas/releases/download/release-1.14.0/augeas-1.14.0.tar.gz"
sha256 "8c101759ca3d504bd1d805e70e2f615fa686af189dd7cf0529f71d855c087df1"

# Fix "fatal error: 'malloc.h' file not found".
# Remove when https://github.com/hercules-team/augeas/pull/792 is merged.
patch do
url "https://github.com/hercules-team/augeas/commit/6cc785a46f2c651a299549eab25c6476c39f3080.patch?full_index=1"
sha256 "754beea4f75e6ada6a6093a41f8071d18e067f9d60137b135a4188a6e3a80227"
end
end

livecheck do
url :stable
regex(%r{href=["']?[^"' >]*?/tag/\D*?(\d+(?:\.\d+)+)["' >]}i)
Expand Down

0 comments on commit 9d1f256

Please sign in to comment.