homebrew-core/Formula/xsane.rb
Dominyk Tiller 781abee841 formulae: migrate patches (part 2)
madplay: migrate patch
makeicns: migrate patch
mp3info: migrate patch
mpack: migrate patch
newt: migrate patch
nvi: migrate patches
ogmtools: migrate patch
orbit: migrate patches
pdf2htmlex: reference secure link
pdksh: migrate patch
povray: migrate patches
proctools: migrate patches
pulseaudio: migrate patch
sbcl: migrate patches
swftools: migrate patch
tinyproxy: migrate patch
tinysvm: migrate patch
trafshow: migrate patches
uudeview: migrate patch
webfs: migrate patch
wordplay: migrate patch
xsane: migrate patch
2015-10-07 20:36:35 +01:00

26 lines
772 B
Ruby

class Xsane < Formula
desc "Graphical scanning frontend"
homepage "http://www.xsane.org"
url "http://www.xsane.org/download/xsane-0.999.tar.gz"
sha256 "5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b"
revision 1
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/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