Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
libkml: Add HEAD build
Browse files Browse the repository at this point in the history
Closes #15728.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information
rburhum authored and Sharpie committed Nov 2, 2012
1 parent 7ff38f5 commit 39c844b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Library/Formula/libkml.rb
Expand Up @@ -5,7 +5,24 @@ class Libkml < Formula
homepage 'http://code.google.com/p/libkml/'
sha1 '3fa5acdc2b2185d7f0316d205002b7162f079894'

head 'http://libkml.googlecode.com/svn/trunk/', :using => :svn

if build.head?
depends_on :automake
depends_on :libtool
end

def install

if build.head?
# The inreplace line below is only required until the patch in #issue 186
# is applied. http://code.google.com/p/libkml/issues/detail?id=186
# If the patch is applied, this find and replace will be unnecessary, but also
# harmless
inreplace 'configure.ac', '-Werror', ''
system "./autogen.sh"
end

system "./configure", "--prefix=#{prefix}"
system "make install"
end
Expand Down

0 comments on commit 39c844b

Please sign in to comment.