aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-04-19 13:49:00 -0700
committerCharlie Sharpsteen2012-04-19 13:49:00 -0700
commitcb47f5fbb7f5dbf237534c929101dc8e52c88d43 (patch)
treec253a0bac17fb92db01bee4bdac386b3e298a022 /Library/Formula
parent8392df5c8f060d24e26940c2bde72f8d49f954e1 (diff)
downloadhomebrew-cb47f5fbb7f5dbf237534c929101dc8e52c88d43.tar.bz2
GDAL: Build and install man pages
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gdal.rb15
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?