96b14b73e9
Closes Homebrew/homebrew#7456. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
31 lines
860 B
Ruby
31 lines
860 B
Ruby
require 'formula'
|
|
|
|
class Scantailor < Formula
|
|
homepage 'http://scantailor.sourceforge.net/'
|
|
|
|
unless ARGV.flag? '--enhanced'
|
|
url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.10/scantailor-0.9.10.tar.gz'
|
|
md5 'f962c93a2d63b449fa3f6612ade3b028'
|
|
else
|
|
url 'http://downloads.sourceforge.net/project/scantailor/scantailor-devel/enhanced/scantailor-enhanced-20110902.tar.gz'
|
|
md5 'a538d1c03f9ec32dc4bea32f1796bc03'
|
|
version 'enhanced-20110902'
|
|
end
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'qt'
|
|
depends_on 'boost'
|
|
depends_on 'jpeg'
|
|
depends_on 'libtiff'
|
|
|
|
def options
|
|
[
|
|
["--enhanced", "Build experimental \"enhanced\" branch, which includes extra features"]
|
|
]
|
|
end
|
|
|
|
def install
|
|
system "cmake . #{std_cmake_parameters} -DPNG_INCLUDE_DIR=/usr/X11/include"
|
|
system "make install"
|
|
end
|
|
end
|