forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminc.rb
32 lines (26 loc) · 858 Bytes
/
minc.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
require 'formula'
# 2.2.20 does not build on OS X. See:
# https://github.com/BIC-MNI/minc/pull/16
# https://github.com/mxcl/homebrew/issues/22152
class Minc < Formula
homepage 'http://en.wikibooks.org/wiki/MINC'
url 'https://github.com/BIC-MNI/minc/archive/minc-2-1-13.tar.gz'
version '2.1.13'
sha1 '62eeeab62bb5c977e11166d4e43ba384fd029fd1'
head 'https://github.com/BIC-MNI/minc.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
depends_on 'netcdf'
depends_on 'hdf5'
fails_with :clang do
# TODO This is an easy fix, someone send it upstream!
build 425
cause "Throws 'non-void function 'miget_real_value_hyperslab' should return a value'"
end
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end