blob: 6ebe935791ed1a2cb39cce68919629a97819cbf5 (
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
  | 
require 'formula'
class Libdnet < Formula
  homepage 'http://code.google.com/p/libdnet/'
  url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
  md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
  depends_on :automake
  depends_on :libtool
  def options
    [['--with-python', 'Build Python module.']]
  end
  def install
    # autoreconf to get '.dylib' extension on shared lib
    ENV['ACLOCAL'] = 'aclocal -I config'
    system 'autoreconf', '-ivf'
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --mandir=#{man}
    ]
    args << "--with-python" if ARGV.include? "--with-python"
    system "./configure", *args
    system "make install"
  end
end
  |