class Xsane < Formula desc "Graphical scanning frontend" homepage "https://wiki.ubuntuusers.de/XSane/" url "https://ftp.osuosl.org/pub/blfs/conglomeration/xsane/xsane-0.999.tar.gz" mirror "https://fossies.org/linux/misc/xsane-0.999.tar.gz" sha256 "5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b" revision 4 bottle do sha256 "1b87500430dca49d717fa39d92214da59f08d4f7ec63ea477056bc5b2b920de4" => :catalina sha256 "93064b6ec70657f6815a0aba5d52c8b7e54e9ef6f223c608351b790887c62b92" => :mojave sha256 "4242d28d56f5ed634f7f8632d41e441e1cbeaf60a362628796a436ba2f8eac11" => :high_sierra sha256 "f247067d49d44f8c0662cd64c99524f13c4b3a18ef7e49a19dd377bb449c859d" => :sierra end depends_on "pkg-config" => :build depends_on "gtk+" depends_on "sane-backends" # Needed to compile against libpng 1.5, Project appears to be dead. patch :p0 do url "https://raw.githubusercontent.com/Homebrew/formula-patches/e1a592d/xsane/patch-src__xsane-save.c-libpng15-compat.diff" sha256 "404b963b30081bfc64020179be7b1a85668f6f16e608c741369e39114af46e27" end def install system "./configure", "--prefix=#{prefix}" system "make", "install" end test do system "#{bin}/xsane", "--version" end end