53473b6bf5
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
688 B
Ruby
20 lines
688 B
Ruby
require 'formula'
|
|
|
|
class Librasterlite < Formula
|
|
homepage 'https://www.gaia-gis.it/fossil/librasterlite/index'
|
|
url 'http://www.gaia-gis.it/gaia-sins/librasterlite-sources/librasterlite-1.1c.tar.gz'
|
|
sha1 'c54f38ef2974bc92410e2c2196088af14bd9c21a'
|
|
|
|
depends_on "pkg-config" => :build unless MacOS.version >= :mountain_lion
|
|
depends_on :libpng
|
|
depends_on "libgeotiff"
|
|
depends_on "libspatialite"
|
|
|
|
def install
|
|
# Ensure Homebrew SQLite libraries are found before the system SQLite
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|