2014-11-09 06:08:20 +00:00
|
|
|
require "formula"
|
2014-04-15 02:48:04 +00:00
|
|
|
|
|
|
|
class Augeas < Formula
|
2014-11-09 06:08:20 +00:00
|
|
|
homepage "http://augeas.net"
|
|
|
|
url "http://download.augeas.net/augeas-1.3.0.tar.gz"
|
|
|
|
sha1 "052694bc84e3b8246dd32808b0e0e8c41c3de40b"
|
2014-04-15 05:20:02 +00:00
|
|
|
|
2014-11-09 06:16:40 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "374c491053aff309ba2ae417f3bb6e888a4fbae9" => :yosemite
|
|
|
|
sha1 "21e1bb5ec9d1bf623e61cf6ab1179a1d09cd9060" => :mavericks
|
|
|
|
sha1 "3b3c437736fb3e4edb5c60a73f0097e91703dd1f" => :mountain_lion
|
|
|
|
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
|
2014-04-15 05:20:02 +00:00
|
|
|
if build.head?
|
|
|
|
# The bootstrap script run by autogen needs to check the state of the
|
|
|
|
# gnulib submodule.
|
2014-11-09 06:08:20 +00:00
|
|
|
ln_s cached_download + ".git", ".git"
|
|
|
|
ln_s cached_download + ".gnulib/.git", ".gnulib/.git"
|
2014-04-15 05:20:02 +00:00
|
|
|
|
2014-11-09 06:08:20 +00:00
|
|
|
system "./autogen.sh"
|
2014-04-15 05:20:02 +00:00
|
|
|
end
|
2014-04-15 02:48:04 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
end
|