aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDaniel Berjón Díez2013-11-15 09:45:47 +0100
committerAdam Vandenberg2013-11-17 11:27:22 -0800
commit3432078bcd65289ef117d09f3a9e103a47eb9c69 (patch)
treedbf1c217d7d57a956a7da90e307dc1df4e33a491 /Library/Formula
parent0945beb3e23154c76c61f9663ac067003f1cf564 (diff)
downloadhomebrew-3432078bcd65289ef117d09f3a9e103a47eb9c69.tar.bz2
xsane 0.999
GUI frontend for SANE Closes #24387. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xsane.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/xsane.rb b/Library/Formula/xsane.rb
new file mode 100644
index 000000000..d8c583599
--- /dev/null
+++ b/Library/Formula/xsane.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Xsane < Formula
+ homepage 'http://www.xsane.org'
+ url 'http://www.xsane.org/download/xsane-0.999.tar.gz'
+ sha1 '633150e4e690c1e8c18d6b82886c2fb4daba4bc9'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'gtk+'
+ depends_on 'sane-backends'
+
+ def patches
+ # Needed to compile against libpng 1.5
+ {:p0 =>
+ "https://trac.macports.org/export/113352/trunk/dports/graphics/xsane/files/patch-src__xsane-save.c-libpng15-compat.diff"
+ }
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make", "install"
+ end
+end