homebrew-core/Formula/httrack.rb
2019-10-06 18:05:32 +02:00

32 lines
1.3 KiB
Ruby

class Httrack < Formula
desc "Website copier/offline browser"
homepage "https://www.httrack.com/"
# Always use mirror.httrack.com when you link to a new version of HTTrack, as
# link to download.httrack.com will break on next HTTrack update.
url "https://mirror.httrack.com/historical/httrack-3.49.2.tar.gz"
sha256 "3477a0e5568e241c63c9899accbfcdb6aadef2812fcce0173688567b4c7d4025"
revision 1
bottle do
sha256 "291ab06b376233166dd833422801d0a7be6f06cdabdc568656ec64ad3adc5fe8" => :catalina
sha256 "6e0d2265e15d103a37b6b594f7f10c85af82012f1e3c1e25fc436e7430502b2c" => :mojave
sha256 "612d8c3f9ee15fd7c4f42dbca3c5e3b58e968d626aa15f916f85c8cdb44ea31f" => :high_sierra
sha256 "842d48bdb72573623a478a97a2c2abcafe34fb4b0443229216e35d30552dd27f" => :sierra
end
depends_on "openssl@1.1"
def install
ENV.deparallelize
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
# Don't need Gnome integration
rm_rf Dir["#{share}/{applications,pixmaps}"]
end
test do
download = "https://raw.githubusercontent.com/Homebrew/homebrew/65c59dedea31/.yardopts"
system bin/"httrack", download, "-O", testpath
assert_predicate testpath/"raw.githubusercontent.com", :exist?
end
end