aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-17 22:44:49 -0500
committerJack Nagel2014-03-17 22:47:06 -0500
commitf667b63f33b4b49007ba5935410c4249f320554b (patch)
tree6bc0272a7d3e59e703e7d7455d699f99ff06da18 /Library
parente5e3166465261d7edae69a287a6e86c925ff07d2 (diff)
downloadhomebrew-f667b63f33b4b49007ba5935410c4249f320554b.tar.bz2
assimp: use patch DSL
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/assimp.rb17
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"