Skip to content

Commit

Permalink
Updated brew to pull in augeas 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcraig committed Jul 9, 2015
1 parent 24899df commit d6953e7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
43 changes: 32 additions & 11 deletions files/brews/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
require 'formula'

class Augeas < Formula
url 'http://download.augeas.net/archive/augeas-0.8.1.tar.gz'
homepage 'http://augeas.net'
sha1 'b76b381a4a006e362829a2a384c42108e4f910cd'
version '0.8.1-boxen2'
desc "Configuration editing tool and API"
homepage "http://augeas.net"
url "http://download.augeas.net/augeas-1.3.0.tar.gz"
sha1 "052694bc84e3b8246dd32808b0e0e8c41c3de40b"
version '1.3.0-boxen2'

bottle do
sha1 "374c491053aff309ba2ae417f3bb6e888a4fbae9" => :yosemite
sha1 "21e1bb5ec9d1bf623e61cf6ab1179a1d09cd9060" => :mavericks
sha1 "3b3c437736fb3e4edb5c60a73f0097e91703dd1f" => :mountain_lion
end

head do
url "https://github.com/hercules-team/augeas.git"

depends_on 'pkg-config' => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "bison" => :build
end

depends_on "pkg-config" => :build
depends_on "libxml2"
depends_on "readline"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix}]

if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end

# libfa example program doesn't compile cleanly on OSX, so skip it
inreplace 'Makefile' do |s|
inreplace "Makefile" do |s|
s.change_make_var! "SUBDIRS", "gnulib/lib src gnulib/tests tests man doc"
end

system "make install"
system "make", "install"
end

def caveats; <<-EOS.undent
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package { 'augeas':
name => 'boxen/brews/augeas',
ensure => '0.8.1-boxen2'
ensure => '1.3.0-boxen2'
}
}

Expand Down

0 comments on commit d6953e7

Please sign in to comment.