2011-06-02 23:09:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Augeas < Formula
|
|
|
|
homepage 'http://augeas.net'
|
2013-01-01 16:54:09 +00:00
|
|
|
url 'http://augeas.net/download/augeas-1.0.0.tar.gz'
|
|
|
|
sha1 '5d0bc5738cc77ad4731f9406fb8dceb08826bba9'
|
2011-06-02 23:09:32 +00:00
|
|
|
|
2013-01-01 16:54:09 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libxml2'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2011-06-02 23:09:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# libfa example program doesn't compile cleanly on OSX, so skip it
|
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.change_make_var! "SUBDIRS", "gnulib/lib src gnulib/tests tests man doc"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Lenses have been installed to:
|
|
|
|
#{HOMEBREW_PREFIX}/share/augeas/lenses/dist
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|