2010-08-12 04:58:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libkml < Formula
|
2010-08-12 04:58:14 +00:00
|
|
|
url 'http://libkml.googlecode.com/files/libkml-1.2.0.tar.gz'
|
|
|
|
homepage 'http://code.google.com/p/libkml/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3fa5acdc2b2185d7f0316d205002b7162f079894'
|
2010-08-12 04:58:14 +00:00
|
|
|
|
2012-10-29 01:43:57 +00:00
|
|
|
head 'http://libkml.googlecode.com/svn/trunk/', :using => :svn
|
|
|
|
|
|
|
|
if build.head?
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2010-08-12 04:58:14 +00:00
|
|
|
def install
|
2012-10-29 01:43:57 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-08-12 04:58:14 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|