2010-11-01 21:27:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-08-28 02:49:05 +00:00
|
|
|
# 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
|
2011-03-10 05:11:03 +00:00
|
|
|
class Minc < Formula
|
2012-02-21 20:08:30 +00:00
|
|
|
homepage 'http://en.wikibooks.org/wiki/MINC'
|
2013-08-28 02:49:05 +00:00
|
|
|
url 'https://github.com/BIC-MNI/minc/archive/minc-2-1-13.tar.gz'
|
|
|
|
version '2.1.13'
|
|
|
|
sha1 '62eeeab62bb5c977e11166d4e43ba384fd029fd1'
|
2012-02-21 20:08:30 +00:00
|
|
|
|
|
|
|
head 'https://github.com/BIC-MNI/minc.git'
|
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-21 20:08:30 +00:00
|
|
|
|
2013-08-28 02:49:05 +00:00
|
|
|
depends_on 'netcdf'
|
|
|
|
depends_on 'hdf5'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
|
|
|
# TODO This is an easy fix, someone send it upstream!
|
2013-08-28 02:49:05 +00:00
|
|
|
build 425
|
2012-03-18 20:33:24 +00:00
|
|
|
cause "Throws 'non-void function 'miget_real_value_hyperslab' should return a value'"
|
|
|
|
end
|
|
|
|
|
2010-11-01 21:27:52 +00:00
|
|
|
def install
|
2012-05-15 22:33:58 +00:00
|
|
|
system "autoreconf", "--force", "--install"
|
2012-10-08 18:26:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2010-11-01 21:27:52 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|