blob: e17931edfde8d0202e80ae92c8a3f2a2a557d00d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'formula'
class Libkml < Formula
url 'http://libkml.googlecode.com/files/libkml-1.2.0.tar.gz'
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
end
|