aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-06-18 09:54:51 -0700
committerJack Nagel2012-06-26 20:06:55 -0500
commit9709b176a21ebbfd50dc8742fd1bd4df50ebe701 (patch)
treeb9cffa7666d4c7e58b4385f7ba9e1b176dcdf379 /Library/Formula
parent18484e00e84fa2cebc48a61a25da43582f698a71 (diff)
downloadhomebrew-9709b176a21ebbfd50dc8742fd1bd4df50ebe701.tar.bz2
qhull 2012.1
Upgrade qhull to version 2012.1 Adjust the patch for this version and put it inline. Patch doesn't need to remove `user_eg user_eg2 user_eg3` anymore because the test programs are not built by default. Remove the CMake variable to adjust the man page location which it gets correct now. Put the source directory last on the `cmake` command line. Tested on Lion using clang and llvm from XCode-4.3.3 by using the examples provided in the `qhull` usage. Closes #12911. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qhull.rb43
1 files changed, 35 insertions, 8 deletions
diff --git a/Library/Formula/qhull.rb b/Library/Formula/qhull.rb
index 49b033a5f..184e0eea1 100644
--- a/Library/Formula/qhull.rb
+++ b/Library/Formula/qhull.rb
@@ -2,26 +2,53 @@ require 'formula'
class Qhull < Formula
homepage 'http://www.qhull.org/'
- url 'http://www.qhull.org/download/qhull-2011.1-src.tgz'
- md5 'a65061cf2a6e6581182f4df0f3667a8e'
+ url 'http://www.qhull.org/download/qhull-2012.1-src.tgz'
+ sha1 '60f61580e1d6fbbd28e6df2ff625c98d15b5fbc6'
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.
+ # Patch originally from MacPorts - cosmetic edits to CMakeLists.txt:
#
# * 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'}
+ # https://trac.macports.org/export/83287/trunk/dports/math/qhull/files/patch-CMakeLists.txt.diff'}
+ DATA
end
def install
- system "cmake", ".", "-DMAN_INSTALL_DIR=#{man1}", *std_cmake_args
+ system "cmake", ".", *std_cmake_args
system "make install"
end
end
+
+__END__
+--- a/CMakeLists.txt 2012-02-21 19:38:47.000000000 -0800
++++ b/CMakeLists.txt 2012-06-18 09:33:28.000000000 -0700
+@@ -312,13 +312,10 @@
+ # ---------------------------------------
+
+ add_library(${qhull_STATIC} STATIC ${libqhull_SOURCES})
+-set_target_properties(${qhull_STATIC} PROPERTIES
+- VERSION ${qhull_VERSION})
+
+ add_library(${qhull_STATICP} STATIC ${libqhull_SOURCES})
+ set_target_properties(${qhull_STATICP} PROPERTIES
+- COMPILE_DEFINITIONS "qh_QHpointer"
+- VERSION ${qhull_VERSION})
++ COMPILE_DEFINITIONS "qh_QHpointer")
+
+ if(UNIX)
+ target_link_libraries(${qhull_STATIC} m)
+@@ -331,8 +328,7 @@
+
+ add_library(${qhull_CPP} STATIC ${libqhullcpp_SOURCES})
+ set_target_properties(${qhull_CPP} PROPERTIES
+- COMPILE_DEFINITIONS "qh_QHpointer"
+- VERSION ${qhull_VERSION})
++ COMPILE_DEFINITIONS "qh_QHpointer")
+
+ # ---------------------------------------
+ # Define qhull executables linked to qhullstatic library