From 8b7269cb2fcae43069cb175906b157775615e096 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Jun 2011 22:01:36 -0700 Subject: rename shapefile to shapelib --- Library/Formula/shapefile.rb | 32 -------------------------------- Library/Formula/shapelib.rb | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 Library/Formula/shapefile.rb create mode 100644 Library/Formula/shapelib.rb (limited to 'Library') diff --git a/Library/Formula/shapefile.rb b/Library/Formula/shapefile.rb deleted file mode 100644 index 4f3f9c5d0..000000000 --- a/Library/Formula/shapefile.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'formula' - -class Shapefile < Formula - url 'http://download.osgeo.org/shapelib/shapelib-1.2.10.tar.gz' - homepage 'http://shapelib.maptools.org/' - md5 '4d96bd926167193d27bf14d56e2d484e' - - def install - dylib = lib+"libshp.#{version}.dylib" - - inreplace 'Makefile' do |s| - s.change_make_var! "CFLAGS", ENV.cflags - end - - system "make all" - system "make shptree.o" - - lib.mkpath - system ENV.cc, *%W(-dynamiclib -all_load - -install_name #{dylib} - -compatibility_version #{version} - -o #{dylib} - shpopen.o shptree.o dbfopen.o) - - include.install 'shapefil.h' - - Dir.chdir lib do - ln_s "libshp.#{version}.dylib", "libshp.#{version.split('.').first}.dylib" - ln_s "libshp.#{version}.dylib", "libshp.dylib" - end - end -end diff --git a/Library/Formula/shapelib.rb b/Library/Formula/shapelib.rb new file mode 100644 index 000000000..6df590751 --- /dev/null +++ b/Library/Formula/shapelib.rb @@ -0,0 +1,32 @@ +require 'formula' + +class Shapelib < Formula + url 'http://download.osgeo.org/shapelib/shapelib-1.2.10.tar.gz' + homepage 'http://shapelib.maptools.org/' + md5 '4d96bd926167193d27bf14d56e2d484e' + + def install + dylib = lib+"libshp.#{version}.dylib" + + inreplace 'Makefile' do |s| + s.change_make_var! "CFLAGS", ENV.cflags + end + + system "make all" + system "make shptree.o" + + lib.mkpath + system ENV.cc, *%W(-dynamiclib -all_load + -install_name #{dylib} + -compatibility_version #{version} + -o #{dylib} + shpopen.o shptree.o dbfopen.o) + + include.install 'shapefil.h' + + Dir.chdir lib do + ln_s "libshp.#{version}.dylib", "libshp.#{version.split('.').first}.dylib" + ln_s "libshp.#{version}.dylib", "libshp.dylib" + end + end +end -- cgit v1.2.3