aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRagi Yaser Burhum2012-10-28 18:43:57 -0700
committerCharlie Sharpsteen2012-11-02 10:22:55 -0700
commit39c844b6abccd97844fc0e06afcf77c9aec76744 (patch)
treeac28b8f885e0eec194db1dbdb9f0b7b9e953af2b /Library/Formula
parent7ff38f5ddc7ebb0f128f3715de20e5c4ff65bdc7 (diff)
downloadhomebrew-39c844b6abccd97844fc0e06afcf77c9aec76744.tar.bz2
libkml: Add HEAD build
Closes #15728. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libkml.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/libkml.rb b/Library/Formula/libkml.rb
index 0dc2ddecd..e17931edf 100644
--- a/Library/Formula/libkml.rb
+++ b/Library/Formula/libkml.rb
@@ -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