Skip to content

Commit

Permalink
Merge pull request Homebrew#162294 from Moisan/uudeview_sonoma
Browse files Browse the repository at this point in the history
uudeview: add license and patches for sonoma
  • Loading branch information
p-linnane authored Feb 11, 2024
2 parents de30ea3 + 6ff092c commit 70e32aa
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions Formula/u/uudeview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Uudeview < Formula
homepage "http://www.fpx.de/fp/Software/UUDeview/"
url "http://www.fpx.de/fp/Software/UUDeview/download/uudeview-0.5.20.tar.gz"
sha256 "e49a510ddf272022af204e96605bd454bb53da0b3fe0be437115768710dae435"
license "GPL-2.0-or-later"
revision 1

livecheck do
Expand All @@ -24,13 +25,24 @@ class Uudeview < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "5cdd9748ec5c1baf9934bade72dd8a3eea06b632d0f1c49e57b682663bbb8371"
end

# Fix function signatures (for clang)
patch :p0 do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/19da78c/uudeview/inews.c.patch"
sha256 "4bdf357ede31abc17b1fbfdc230051f0c2beb9bb8805872bd66e40989f686d7b"
# fix implicit declaration, remove in release > 0.5.20
patch do
url "https://github.com/hannob/uudeview/commit/a8f98cf10e2c1ab883c31ed1292f16bfdd43ef33.patch?full_index=1"
sha256 "1154a62902355105fc61cc38033b9284d488ca29b971ad18744915990ffb31ec"
end

patch do
url "https://github.com/hannob/uudeview/commit/c54cb38ab71363647577fa98bedf4e0a3759c17b.patch?full_index=1"
sha256 "44347fdb875d5a86909f6c2e6bd25f4325a34c7be83927b6fd5ba4cfe0bea46c"
end

patch do
url "https://github.com/hannob/uudeview/commit/72a52709ea1c79c8747d2c0face50f03873d2f81.patch?full_index=1"
sha256 "452788a9e81a0839b8bab924406db26542b529dedb8e8073df50eb299aae9dfc"
end

def install
ENV.append_to_cflags "-DSTDC_HEADERS"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-tcl"
Expand Down

0 comments on commit 70e32aa

Please sign in to comment.