8c29982153
This reverts commit adee5315265cc46aa6a3057071527abb16e1cd94. Turns out one of the "other things" is a dealbreaker. We only create kegs using a formula's canonical name. However, we do not check that this is the case when mapping existing kegs back to formula objects, and thus a keg with a name that happens to be an alias can fool Homebrew into thinking the canonically-named keg exists. So anything that enumerates kegs and then tries to do stuff with the resulting formula objects will just break. This is obviously worse than the debugger being broken, so reverting this for the time being.
27 lines
702 B
Ruby
27 lines
702 B
Ruby
require 'formula'
|
|
|
|
class Augeas < Formula
|
|
homepage 'http://augeas.net'
|
|
url 'http://augeas.net/download/augeas-0.10.0.tar.gz'
|
|
sha1 '6d1d7b4572c05748d537f3ff12c5ac8ceb6b49bd'
|
|
|
|
depends_on 'readline'
|
|
|
|
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
|