diff options
| author | Charlie Sharpsteen | 2011-08-29 09:48:45 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-08-29 11:31:45 -0700 |
| commit | 07971d0ae247de8e445972a00331cd627abef437 (patch) | |
| tree | 9ea52bc8f1a9e9a393d0bfe262a028a276d2e285 | |
| parent | d62174ad475666b4045b80007b3dba8ca28acbb7 (diff) | |
| download | homebrew-07971d0ae247de8e445972a00331cd627abef437.tar.bz2 | |
QHull: Update to 2011.1
Also switched to CMake-based build as the Makefile provided is difficult to use
and requires patching to be compatible with XCode's GCC.
| -rw-r--r-- | Library/Formula/qhull.rb | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Library/Formula/qhull.rb b/Library/Formula/qhull.rb index 18e510037..eb69d00c5 100644 --- a/Library/Formula/qhull.rb +++ b/Library/Formula/qhull.rb @@ -1,19 +1,27 @@ require 'formula' class Qhull < Formula - url 'http://www.qhull.org/download/qhull-2010.1-src.tgz' + url 'http://www.qhull.org/download/qhull-2011.1-src.tgz' homepage 'http://www.qhull.org/' - md5 'e64138470acdeb18f752a0bc2a11ceb4' + md5 'a65061cf2a6e6581182f4df0f3667a8e' + + depends_on 'cmake' => :build + + def patches + # Patch from MacPorts that makes a couple of cosmetic edits to CMakeLists.txt: + # + # * The testing programs user_eg, user_eg2 and user_eg3 are no longer + # built and installed. + # + # * The VERSION property is no longer set on the command line tools. + # Setting this property causes CMake to install `binname-version` along + # with a symlink `binname` that points to `binname-version`. This is + # pointless for something that is managed by a package manager. + {:p0 => 'https://trac.macports.org/export/83287/trunk/dports/math/qhull/files/patch-CMakeLists.txt.diff'} + end def install - cd "./src" - ENV['MANDIR'] = man - ENV['BINDIR'] = bin - system "make -e -f Makefile" - man.mkpath - bin.mkpath - system "make -e -f Makefile install" - (include+'qhull').install Dir['*.h'] - lib.install 'libqhull.a' + system "cmake . #{std_cmake_parameters} -DMAN_INSTALL_DIR=#{man}/man1" + system "make install" end end |
