blob: cc7f5b960634636093f41088dfbf47825c8429bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  | 
require 'formula'
class Scantailor < Formula
  class Version < ::Version
    def enhanced?
      to_a[0].to_s == "enhanced"
    end
    def <=>(other)
      other = self.class.new(other)
      if enhanced? && other.enhanced?
        super
      elsif enhanced?
        1
      elsif other.enhanced?
        -1
      else
        super
      end
    end
  end
  homepage 'http://scantailor.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.11/scantailor-0.9.11.tar.gz'
  version '0.9.11' => Version
  sha1 '21ec03317ca2b278179693237eaecd962ee0263b'
  devel do
    url 'http://downloads.sourceforge.net/project/scantailor/scantailor-devel/enhanced/scantailor-enhanced-20120812.tar.bz2'
    version 'enhanced-20120812' => Version
    sha1 'e3535d6e21a1844cf83eb2b23469fb6d90c070a9'
  end
  depends_on 'cmake' => :build
  depends_on 'qt'
  depends_on 'boost'
  depends_on 'jpeg'
  depends_on 'libtiff'
  depends_on :x11
  fails_with :clang do
    build 425
    cause "calling a private constructor of class 'mcalc::Mat<double>'"
  end
  def install
    system "cmake", ".", "-DPNG_INCLUDE_DIR=#{MacOS::X11.include}", *std_cmake_args
    system "make install"
  end
end
  |