29 lines
940 B
Ruby
29 lines
940 B
Ruby
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"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
rebuild 1
|
|
sha256 "885e1685c81a6abb9767a6e807894a98b5d296952e60fdad6341961ce4dc737e" => :mojave
|
|
sha256 "16eb3dc18004c0be8e384714ef543aa6dfe0b026e4ec0a7b6294dd499606bb12" => :high_sierra
|
|
sha256 "623ba6f72816f4d9cb2055539a023f36a620add9c77a61193fcaea88a08cedf5" => :sierra
|
|
end
|
|
|
|
depends_on "fpc"
|
|
depends_on "openssl@1.1"
|
|
|
|
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
|