homebrew-core/Formula/xml2.rb
2019-11-24 20:16:37 +00:00

29 lines
1.2 KiB
Ruby

class Xml2 < Formula
desc "Makes XML and HTML more amenable to classic UNIX text tools"
homepage "https://web.archive.org/web/20160730094113/www.ofb.net/~egnor/xml2/"
url "https://web.archive.org/web/20160427221603/download.ofb.net/gale/xml2-0.5.tar.gz"
sha256 "e3203a5d3e5d4c634374e229acdbbe03fea41e8ccdef6a594a3ea50a50d29705"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "832aa209cf47c4f18ad512f7eca2acf76aa047522b3a417466722203203bd71e" => :catalina
sha256 "63b136beee1c47726c6756f3c57bf55fcff4e660cd280d090aa35640138465b6" => :mojave
sha256 "548421fe00487faa136c700e4d18f48b6bc349956044e2aa0f65667c3856883d" => :high_sierra
sha256 "d8d4bb9ceb9d97b648d3fd3cffb1e2fad2e4d82aa6aa3397c22f53fe5468ac56" => :sierra
sha256 "85e939873edbb3dd1b072437992a0c404534a5084cccd6f9f76d99b09ddda695" => :el_capitan
sha256 "3883d5997021b3a5bd57d8830906cb9b370da0f6e1927b6c7e9dcd6740e05c5c" => :yosemite
end
depends_on "pkg-config" => :build
uses_from_macos "libxml2"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_equal "/test", pipe_output("#{bin}/xml2", "<test/>", 0).chomp
end
end