aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/augeas.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/augeas.rb b/Library/Formula/augeas.rb
new file mode 100644
index 000000000..d2bbf7572
--- /dev/null
+++ b/Library/Formula/augeas.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Augeas < Formula
+ url 'http://augeas.net/download/augeas-0.8.1.tar.gz'
+ homepage 'http://augeas.net'
+ md5 '62d47bdc60e175f93aed3b81cb8e2785'
+
+ 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