aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libopkele.rb
blob: 15d8940bf752ae8c7a2e98b566aba7221731cd75 (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
require 'formula'

class Libopkele < Formula
  homepage 'http://kin.klever.net/libopkele/'
  url 'http://kin.klever.net/dist/libopkele-2.0.4.tar.bz2'
  sha1 '0c403d118efe6b4ee4830914448078c0ee967757'

  head 'https://github.com/hacker/libopkele.git'

  depends_on 'pkg-config' => :build

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      In file included from discovery.cc:5:
      ../include/opkele/discovery.h:24:11: error: use of undeclared identifier 'insert'
    EOS
  end if !build.head?

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  def install
    system "./autogen.bash" if build.head?

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end