2018-04-26 21:02:20 +00:00
|
|
|
class Xidel < Formula
|
|
|
|
desc "XPath/XQuery 3.0, JSONiq interpreter to extract data from HTML/XML/JSON"
|
|
|
|
homepage "http://www.videlibri.de/xidel.html"
|
|
|
|
url "https://github.com/benibela/xidel/releases/download/Xidel_0.9.8/xidel-0.9.8.src.tar.gz"
|
|
|
|
sha256 "72b5b1a2fc44a0a61831e268c45bc6a6c28e3533b5445151bfbdeaf1562af39c"
|
|
|
|
|
2018-05-02 15:54:07 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "20450073b91be33a6f863b5057952317d579c5835974c29bb6bee939d68dda5c" => :high_sierra
|
|
|
|
sha256 "13c10cdbe9158109ab5f4099805b6003fbe430a960b9956957717482651378d4" => :sierra
|
|
|
|
sha256 "62878dce5345f0b69db3102548e754be300063164f6dec7075d3402b73b3bc0b" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2018-04-26 21:02:20 +00:00
|
|
|
depends_on "fpc"
|
|
|
|
depends_on "openssl"
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd "programs/internet/xidel" do
|
|
|
|
system "./build.sh"
|
|
|
|
bin.install "xidel"
|
|
|
|
man1.install "meta/xidel.1"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "123\n", shell_output("#{bin}/xidel -e 123")
|
|
|
|
end
|
|
|
|
end
|