aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/virtuoso.rb
blob: 59715fb1b4bbffbcf803b0d50317e7d24a2fbe6a (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
require 'formula'

class Virtuoso < Formula
  homepage 'http://virtuoso.openlinksw.com/wiki/main/'
  url "https://downloads.sourceforge.net/project/virtuoso/virtuoso/7.1.0/virtuoso-opensource-7.1.0.tar.gz"
  sha1 "255d275d810bdb7cfa55fef46517724823c4c561"

  head do
    url 'https://github.com/openlink/virtuoso-opensource.git', :branch => 'develop/7'

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  # If gawk isn't found, make fails deep into the process.
  depends_on 'gawk' => :build
  depends_on "openssl"

  conflicts_with 'unixodbc', :because => 'Both install `isql` binaries.'

  skip_clean :la

  def install
    ENV.m64 if MacOS.prefer_64_bit?
    system "./autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  def caveats; <<-EOS.undent
    NOTE: the Virtuoso server will start up several times on port 1111
    during the install process.
    EOS
  end
end