2010-12-20 00:40:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Scantailor < Formula
|
2010-12-20 00:40:40 +00:00
|
|
|
homepage 'http://scantailor.sourceforge.net/'
|
2012-02-08 01:21:38 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.11/scantailor-0.9.11.tar.gz'
|
|
|
|
md5 '15984c8828ecb2de542ac94e3c41a810'
|
2011-09-06 15:53:49 +00:00
|
|
|
|
2012-01-23 04:32:15 +00:00
|
|
|
devel do
|
2012-02-08 16:53:36 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/scantailor/scantailor-devel/enhanced/scantailor-enhanced-20111213.tar.gz'
|
|
|
|
version 'enhanced-20111213'
|
2012-02-22 05:12:27 +00:00
|
|
|
md5 'bcba593dcba17880429884fe2bfb1d2a'
|
2011-09-06 15:53:49 +00:00
|
|
|
end
|
2010-12-20 00:40:40 +00:00
|
|
|
|
2011-03-16 04:51:33 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-12-20 00:40:40 +00:00
|
|
|
depends_on 'qt'
|
|
|
|
depends_on 'boost'
|
2011-03-16 04:51:33 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libtiff'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2010-12-20 00:40:40 +00:00
|
|
|
|
2012-04-22 23:36:07 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause "calling a private constructor of class 'mcalc::Mat<double>'"
|
|
|
|
end
|
|
|
|
|
2010-12-20 00:40:40 +00:00
|
|
|
def install
|
2012-06-07 01:35:12 +00:00
|
|
|
system "cmake", ".", "-DPNG_INCLUDE_DIR=#{MacOS.x11_prefix}/include", *std_cmake_args
|
2010-12-20 00:40:40 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|