Skip to content

Commit

Permalink
mercurial 6.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sevan authored and mistydemeo committed Sep 2, 2023
1 parent 4256202 commit e4956ba
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Library/Formula/mercurial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class Mercurial < Formula
desc "Scalable distributed version control system"
homepage "https://www.mercurial-scm.org/"
url "https://www.mercurial-scm.org/release/mercurial-3.5.1.tar.gz"
sha256 "997da45da303e399678c5bccd7be39b0fabf29c7e02fd3c8751c2ff88c8a259d"
url "https://www.mercurial-scm.org/release/mercurial-6.5.1.tar.gz"
sha256 "33f7de8d8b3607fa2b408cde4b8725e117eb0ad41926a787eaab409ca8a4fc2f"

bottle do
cellar :any
Expand All @@ -14,10 +14,12 @@ class Mercurial < Formula
sha256 "d39399222a31f040a5e22ef5853a9f99a476c1d76da85935710fdd80980d9ed5" => :mountain_lion
end

depends_on :python if MacOS.version < :snow_leopard
depends_on :python3

def install
ENV.minimal_optimization if MacOS.version <= :snow_leopard
# GCC 4.0 doesn't support granular error settings, so the build breaks
inreplace "setup.py", "-Werror=declaration-after-statement", "-Werror"

system "make", "PREFIX=#{prefix}", "install-bin"
# Install man pages, which come pre-built in source releases
Expand All @@ -32,4 +34,21 @@ def install
test do
system "#{bin}/hg", "init"
end

# Fix PowerPC build
patch :p0, :DATA
end
__END__
--- mercurial/thirdparty/sha1dc/lib/sha1.c.orig 2023-04-11 20:39:20.000000000 +0000
+++ mercurial/thirdparty/sha1dc/lib/sha1.c
@@ -102,6 +102,10 @@
*/
#define SHA1DC_BIGENDIAN

+#elif (defined(__APPLE__) && defined(__BIG_ENDIAN__) && !defined(SHA1DC_BIGENDIAN))
+/* older gcc compilers which are the default on Apple PPC do not define __BYTE_ORDER__ */
+#define SHA1DC_BIGENDIAN
+
/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> */
#elif defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
/*

0 comments on commit e4956ba

Please sign in to comment.