diff options
| author | Charlie Sharpsteen | 2012-04-19 13:49:00 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-04-19 13:49:00 -0700 |
| commit | cb47f5fbb7f5dbf237534c929101dc8e52c88d43 (patch) | |
| tree | c253a0bac17fb92db01bee4bdac386b3e298a022 /Library/Formula | |
| parent | 8392df5c8f060d24e26940c2bde72f8d49f954e1 (diff) | |
| download | homebrew-cb47f5fbb7f5dbf237534c929101dc8e52c88d43.tar.bz2 | |
GDAL: Build and install man pages
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gdal.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index e4bdee39a..547db38e9 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -32,6 +32,8 @@ class Gdal < Formula head 'https://svn.osgeo.org/gdal/trunk/gdal', :using => :svn + depends_on 'doxygen' => :build + depends_on 'jpeg' depends_on 'giflib' depends_on 'proj' @@ -74,6 +76,8 @@ class Gdal < Formula def get_configure_args args = [ # Base configuration. + "--prefix=#{prefix}", + "--mandir=#{man}", "--disable-debug", "--with-local=#{prefix}", "--with-threads", @@ -205,7 +209,7 @@ class Gdal < Formula ENV['ARCHFLAGS'] = "-arch i386" end - system "./configure", "--prefix=#{prefix}", *get_configure_args + system "./configure", *get_configure_args system "make" system "make install" @@ -234,6 +238,15 @@ class Gdal < Formula bin.install Dir['scripts/*'] end end + + # For some reason, the 1.9.0 source contains an empty `man` directory which + # fools Make into thinking there is nothing that needs to be done. + rmtree 'man' + system 'make', 'man' + system 'make', 'install-man' + + # Clean up any stray doxygen files. + Dir[bin + '*.dox'].each { |p| rm p } end unless no_python? |
