homebrew-core/Formula/patchutils.rb

36 lines
1.3 KiB
Ruby

class Patchutils < Formula
desc "Small collection of programs that operate on patch files"
homepage "http://cyberelk.net/tim/software/patchutils/"
url "http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.4.2.tar.xz"
mirror "https://deb.debian.org/debian/pool/main/p/patchutils/patchutils_0.4.2.orig.tar.xz"
sha256 "8875b0965fe33de62b890f6cd793be7fafe41a4e552edbf641f1fed5ebbf45ed"
license "GPL-2.0"
bottle do
cellar :any_skip_relocation
sha256 "3ee4d0c62b3f2b26e28fbf476c37eaeb8ccca9000c4f8f2766cd2c662de855bc" => :catalina
sha256 "12cd388801c5c628db409cb043d6a2fc436f44ae8f01a754f430763380043af4" => :mojave
sha256 "84b5013e7c6647e1cda9faa1ab9b31834ed6e2ef6c1a48d21ab7c459dc4462b3" => :high_sierra
end
head do
url "https://github.com/twaugh/patchutils.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "docbook" => :build
end
depends_on "xmlto" => :build
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog" if build.head?
system "./bootstrap" if build.head?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match %r{a/libexec/NOOP}, shell_output("#{bin}/lsdiff #{test_fixtures("test.diff")}")
end
end