Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / w / wput.rb
blob53cfaa358ae002598c50edcb0194e44c8fab85a4
1 class Wput < Formula
2   desc "Tiny, wget-like FTP client for uploading files"
3   homepage "https://wput.sourceforge.net/"
4   url "https://downloads.sourceforge.net/project/wput/wput/0.6.2/wput-0.6.2.tgz"
5   sha256 "229d8bb7d045ca1f54d68de23f1bc8016690dc0027a16586712594fbc7fad8c7"
6   license "GPL-2.0-or-later"
8   bottle do
9     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "c7b895351c316eeb37308ac163b54d36c997c2909a00b7ecf3837081af4a1e4d"
10     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "396180470ace5f8d7640f2097bded1f66af50bac01ba8470ea3023968bc39d6b"
11     sha256 cellar: :any_skip_relocation, arm64_ventura:  "7f892df6bfff0d575edbbd428c2decb1005b7c8faac2a709976c6489fc7e6719"
12     sha256 cellar: :any_skip_relocation, arm64_monterey: "0899932c8dc9e51846277c672a4e4a9dcc36c1d999cb460d2e337a927b702a76"
13     sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a3456f7990bc7b2caa2d5a3afbff6bb921ee346030a07f4be9a31166c28609bd"
14     sha256 cellar: :any_skip_relocation, sonoma:         "3300e6e7bbc43adc8f1525c8badcf307029b63127163912115555b7b5e99525f"
15     sha256 cellar: :any_skip_relocation, ventura:        "40cca9132e6826d07f8237bbb27419b55012b3e45aee55c39e1e0945f8201afc"
16     sha256 cellar: :any_skip_relocation, monterey:       "39c0ebbfc7502644b9df207fae398036caef7cfcee63d340776d036893964610"
17     sha256 cellar: :any_skip_relocation, big_sur:        "2a5d49be96808777f249d96b6f86e2e0e0e301be0e929ba1eaea99cf79cacf42"
18     sha256 cellar: :any_skip_relocation, catalina:       "77703d5dfb1bde183ccc207ee5e3f14b1a677acc697806a2b16f00c56cc0595e"
19     sha256 cellar: :any_skip_relocation, mojave:         "563c5204880172786cbbfc75dafa818e670ac5d1a67fdbe8bea1dd2588587eab"
20     sha256 cellar: :any_skip_relocation, high_sierra:    "e01d35805cd00e8f4d9ba1ab989104d66dc4150648a2288f5f49eea5c17b5025"
21     sha256 cellar: :any_skip_relocation, sierra:         "0a8c4296a3e14d8b420f65464293b000dd1bd2e33a802c92e1812f0c267d3f0f"
22     sha256 cellar: :any_skip_relocation, el_capitan:     "8e4eeb941d98dc0313b87682b7ae659bbceac59426cf0483c2ae2676cf5b924b"
23     sha256                               x86_64_linux:   "0fb27e180b9a6f8ef2b3508530874b467449fdac55a347c63f2e86ca360db073"
24   end
26   on_arm do
27     # Added automake as a build dependency to update config files for ARM support.
28     depends_on "automake" => :build
29   end
31   # The patch is to skip inclusion of malloc.h only on OSX. Upstream:
32   # https://sourceforge.net/p/wput/patches/22/
33   patch do
34     url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/wput/0.6.2.patch"
35     sha256 "a3c47a12344b6f67a5120dd4f838172e2af04f4d97765cc35d22570bcf6ab727"
36   end
38   def install
39     if Hardware::CPU.arm?
40       # Workaround for ancient config files not recognizing aarch64 macos.
41       %w[config.guess config.sub].each do |fn|
42         cp Formula["automake"].share/"automake-#{Formula["automake"].version.major_minor}"/fn, fn
43       end
44     end
45     ENV.append_to_cflags "-fcommon" if OS.linux?
46     system "./configure", *std_configure_args
47     system "make"
48     ENV.deparallelize
49     system "make", "install"
50   end
52   test do
53     system bin/"wput", "--version"
54   end
55 end