2014-04-15 02:48:04 +00:00
|
|
|
class Augeas < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Configuration editing tool and API"
|
2014-11-09 06:08:20 +00:00
|
|
|
homepage "http://augeas.net"
|
2015-08-06 23:52:21 +00:00
|
|
|
url "http://download.augeas.net/augeas-1.4.0.tar.gz"
|
|
|
|
sha256 "659fae7ac229029e60a869a3b88c616cfd51cf2fba286cdfe3af3a052cb35b30"
|
2014-04-15 05:20:02 +00:00
|
|
|
|
2014-11-09 06:16:40 +00:00
|
|
|
bottle do
|
2015-08-07 05:55:25 +00:00
|
|
|
sha256 "9f9d87829624afc741c590614bb0dbf8858ebd5df6728e55925d3a8d82125d84" => :yosemite
|
|
|
|
sha256 "2e6bed040b7f9fadce3c059327fbbbb60830b0ffb7eda41ccd452d9ebe04c865" => :mavericks
|
|
|
|
sha256 "df76e18d45e3240416b47d2dc91a82a3ae0dc9291fd3e350953646b0148b9b41" => :mountain_lion
|
2014-11-09 06:16:40 +00:00
|
|
|
end
|
|
|
|
|
2014-04-15 05:20:02 +00:00
|
|
|
head do
|
2014-11-09 06:08:20 +00:00
|
|
|
url "https://github.com/hercules-team/augeas.git"
|
2014-04-15 05:20:02 +00:00
|
|
|
|
2014-12-04 17:01:19 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-11-09 06:08:20 +00:00
|
|
|
depends_on "bison" => :build
|
2014-04-15 05:20:02 +00:00
|
|
|
end
|
2014-04-15 02:48:04 +00:00
|
|
|
|
2014-11-09 06:08:20 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libxml2"
|
|
|
|
depends_on "readline"
|
2014-04-15 02:48:04 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-14 21:43:59 +00:00
|
|
|
args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix}]
|
|
|
|
|
|
|
|
if build.head?
|
|
|
|
system "./autogen.sh", *args
|
|
|
|
else
|
|
|
|
system "./configure", *args
|
|
|
|
end
|
2014-04-15 02:48:04 +00:00
|
|
|
|
|
|
|
# libfa example program doesn't compile cleanly on OSX, so skip it
|
2014-11-09 06:08:20 +00:00
|
|
|
inreplace "Makefile" do |s|
|
2014-04-15 02:48:04 +00:00
|
|
|
s.change_make_var! "SUBDIRS", "gnulib/lib src gnulib/tests tests man doc"
|
|
|
|
end
|
|
|
|
|
2014-11-09 06:08:20 +00:00
|
|
|
system "make", "install"
|
2014-04-15 02:48:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Lenses have been installed to:
|
|
|
|
#{HOMEBREW_PREFIX}/share/augeas/lenses/dist
|
|
|
|
EOS
|
|
|
|
end
|
2015-08-06 23:52:21 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"augtool", "print", etc
|
|
|
|
end
|
2014-04-15 02:48:04 +00:00
|
|
|
end
|