36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
class Snownews < Formula
|
|
desc "Text mode RSS newsreader"
|
|
homepage "https://github.com/kouya/snownews"
|
|
url "https://github.com/kouya/snownews/archive/1.6.10.tar.gz"
|
|
sha256 "8c78067aef75e283df4b3cca1c966587b6654e9e84a3e6e5eb8bdd5829799242"
|
|
|
|
bottle do
|
|
sha256 "db1d20c1468867a2eeb77b521fdfac4e167393797506afd6bbd603fb40c435bf" => :mojave
|
|
sha256 "0e1eed435b2c94a95e35ee89c3b68be6cfa9867d75dc9fbb46b19a66ff6da915" => :high_sierra
|
|
sha256 "6437a67fb63f92f3c4d57b69505cb5146e2d7325da0d6fd73b57ac0f1461c807" => :sierra
|
|
end
|
|
|
|
depends_on "coreutils" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "ncurses"
|
|
|
|
def install
|
|
# Fix file not found errors for /usr/lib/system/libsystem_symptoms.dylib and
|
|
# /usr/lib/system/libsystem_darwin.dylib on 10.11 and 10.12, respectively
|
|
if MacOS.version == :sierra || MacOS.version == :el_capitan
|
|
ENV["SDKROOT"] = MacOS.sdk_path
|
|
end
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
# Must supply -lz because configure relies on "xml2-config --libs"
|
|
# for it, which doesn't work on OS X prior to 10.11
|
|
system "make", "install", "EXTRA_LDFLAGS=#{ENV.ldflags} -L#{Formula["openssl"].opt_lib} -lz",
|
|
"CC=#{ENV.cc}", "INSTALL=ginstall"
|
|
end
|
|
|
|
test do
|
|
system bin/"snownews -V"
|
|
end
|
|
end
|