2013-04-10 20:01:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libgetdata < Formula
|
|
|
|
homepage 'http://getdata.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/getdata/getdata/0.8.5/getdata-0.8.5.tar.bz2'
|
2013-09-15 23:13:04 +00:00
|
|
|
sha1 '4f509e10f9eb6e8cfc378efd8b483b2a2508917f'
|
2013-04-10 20:01:34 +00:00
|
|
|
|
2013-05-31 03:53:04 +00:00
|
|
|
option 'with-fortran', 'Build Fortran 77 bindings'
|
2013-05-31 12:44:42 +00:00
|
|
|
option 'with-perl', 'Build Perl binding'
|
2013-05-31 03:53:04 +00:00
|
|
|
option 'lzma', 'Build with LZMA compression support'
|
|
|
|
option 'zzip', 'Build with zzip compression support'
|
2013-04-10 20:01:34 +00:00
|
|
|
|
2013-06-26 02:15:10 +00:00
|
|
|
depends_on :fortran => :optional
|
2013-05-31 03:53:04 +00:00
|
|
|
depends_on 'xz' if build.include? 'lzma'
|
|
|
|
depends_on 'libzzip' if build.include? 'zzip'
|
2013-04-10 20:01:34 +00:00
|
|
|
|
2013-06-24 03:29:13 +00:00
|
|
|
|
2013-04-10 20:01:34 +00:00
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2013-05-31 12:44:42 +00:00
|
|
|
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--disable-perl" if build.without? "perl"
|
2013-05-31 12:44:42 +00:00
|
|
|
|
2013-04-10 20:01:34 +00:00
|
|
|
system "./configure", *args
|
2013-05-31 03:53:04 +00:00
|
|
|
system "make"
|
2013-04-10 20:01:34 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|