35 lines
1 KiB
Ruby
35 lines
1 KiB
Ruby
class Rsstail < Formula
|
|
homepage "http://www.vanheusden.com/rsstail/"
|
|
url "http://www.vanheusden.com/rsstail/rsstail-1.8.tgz"
|
|
sha256 "19284f3eca4bfa649f53848e19e6ee134bce17ccf2a22919cc8c600684877801"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "0d18005ca03757ba45acb78737587eeb9abbe31e5346b0a0738dbc63951a3311" => :yosemite
|
|
sha256 "1ec19466e92bbeae9ed3b9e4f9ea9af18eabfd7c8c86e74eda409271028d1b3e" => :mavericks
|
|
sha256 "b17a2996711143d24d0a85ecfe26592b4ad9927e2f42e22af7289abe4e5bc4f5" => :mountain_lion
|
|
end
|
|
|
|
depends_on "libmrss"
|
|
|
|
head "https://github.com/flok99/rsstail.git"
|
|
|
|
def install
|
|
if build.head?
|
|
# Upstream bug: https://github.com/flok99/rsstail/pull/10
|
|
ENV.append "LDFLAGS", "-liconv -lmrss"
|
|
system "make", "-e"
|
|
else
|
|
system "make"
|
|
end
|
|
man1.install "rsstail.1"
|
|
bin.install "rsstail"
|
|
end
|
|
|
|
test do
|
|
actual = shell_output(
|
|
"#{bin}/rsstail -1u http://feed.nashownotes.com/rss.xml"
|
|
)
|
|
assert_match /^Title: NA-\d\d\d-\d\d\d\d-\d\d-\d\d$/, actual
|
|
end
|
|
end
|