2011-02-18 02:07:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 20:03:38 +00:00
|
|
|
class Qhull < Formula
|
2011-02-18 02:07:39 +00:00
|
|
|
homepage 'http://www.qhull.org/'
|
2012-02-22 05:12:27 +00:00
|
|
|
url 'http://www.qhull.org/download/qhull-2011.1-src.tgz'
|
2011-08-29 16:48:45 +00:00
|
|
|
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
|
2011-02-18 02:07:39 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", "-DMAN_INSTALL_DIR=#{man1}", *std_cmake_args
|
2011-08-29 16:48:45 +00:00
|
|
|
system "make install"
|
2011-02-18 02:07:39 +00:00
|
|
|
end
|
|
|
|
end
|