forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalembic.rb
48 lines (39 loc) · 1.28 KB
/
alembic.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Alembic < Formula
desc "Open computer graphics interchange framework"
homepage "http://alembic.io"
url "https://github.com/alembic/alembic/archive/1.7.0.tar.gz"
sha256 "05d7128f55c3f8846f69e346e824112b0dff8200e83758d2e0b70887f030bffa"
revision 1
head "https://github.com/alembic/alembic.git"
bottle do
sha256 "dafcda266affe8aa49cd13670c557281bf993864b080087abfa588022b10206d" => :sierra
sha256 "af7d77546d9e9d71525e835a3d74885e1b2ac5e8badd6882c88dee9249c8bb80" => :el_capitan
sha256 "3d9176b02fc574d206a159999b0e4a65c7e5dc6cf7a47395e3d9e664460af3aa" => :yosemite
end
needs :cxx11
depends_on "cmake" => :build
depends_on "hdf5" => :build
depends_on "ilmbase"
def install
ENV.cxx11
ENV.prepend "LDFLAGS", "-lmpi" if Tab.for_name("hdf5").with? "mpi"
cmake_args = std_cmake_args + %w[
-DUSE_PRMAN=OFF
-DUSE_ARNOLD=OFF
-DUSE_MAYA=OFF
-DUSE_PYALEMBIC=OFF
-DUSE_HDF5=ON
-DUSE_STATIC_HDF5=ON
-DUSE_EXAMPLES=ON
]
system "cmake", ".", *cmake_args
system "make"
# Re-enable for > 1.7.0
# system "make", "test"
system "make", "install"
pkgshare.install "prman/Tests/testdata/cube.abc"
end
test do
assert_match "root", shell_output("#{bin}/abcls #{pkgshare}/cube.abc")
end
end