diff options
| author | Jack Nagel | 2014-03-17 22:44:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-17 22:47:06 -0500 |
| commit | f667b63f33b4b49007ba5935410c4249f320554b (patch) | |
| tree | 6bc0272a7d3e59e703e7d7455d699f99ff06da18 /Library/Formula | |
| parent | e5e3166465261d7edae69a287a6e86c925ff07d2 (diff) | |
| download | homebrew-f667b63f33b4b49007ba5935410c4249f320554b.tar.bz2 | |
assimp: use patch DSL
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/assimp.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/assimp.rb b/Library/Formula/assimp.rb index 95cb288f1..9697ce93d 100644 --- a/Library/Formula/assimp.rb +++ b/Library/Formula/assimp.rb @@ -2,22 +2,23 @@ require 'formula' class Assimp < Formula homepage 'http://assimp.sourceforge.net/' - url 'https://downloads.sourceforge.net/project/assimp/assimp-3.0/assimp--3.0.1270-source-only.zip' - sha1 'e80a3a4326b649ed6585c0ce312ed6dd68942834' - head 'https://github.com/assimp/assimp.git' - depends_on 'cmake' => :build - depends_on 'boost' + stable do + url "https://downloads.sourceforge.net/project/assimp/assimp-3.0/assimp--3.0.1270-source-only.zip" + sha1 "e80a3a4326b649ed6585c0ce312ed6dd68942834" - def patches - return if build.head? # makes assimp3 compile with clang # Reported upstream http://sourceforge.net/p/assimp/discussion/817654/thread/381fa18a # and http://sourceforge.net/p/assimp/patches/43/ # Committed in R1339, so when building HEAD no need for this patch - DATA + patch :DATA end + head 'https://github.com/assimp/assimp.git' + + depends_on 'cmake' => :build + depends_on 'boost' + def install system "cmake", ".", *std_cmake_args system "make install" |
