diff options
| author | Seth Hillbrand | 2013-04-10 13:01:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-30 20:49:27 -0700 |
| commit | 6e781cabf51bd15b58f429048cc0880e8ea9fc02 (patch) | |
| tree | 7a0746c65ad61bb64ad62cedbbbb078502231c4f /Library/Formula | |
| parent | 56f5ac02d1c79a256e3da11ff433e012daeae367 (diff) | |
| download | homebrew-6e781cabf51bd15b58f429048cc0880e8ea9fc02.tar.bz2 | |
libgetdata 0.8.3
Closes #19111.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libgetdata.rb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Library/Formula/libgetdata.rb b/Library/Formula/libgetdata.rb new file mode 100644 index 000000000..8a7afdffc --- /dev/null +++ b/Library/Formula/libgetdata.rb @@ -0,0 +1,47 @@ +require 'formula' + +class Libgetdata < Formula + homepage 'http://getdata.sourceforge.net/' + url 'http://sourceforge.net/projects/getdata/files/getdata/0.8.3/getdata-0.8.3.tar.bz2' + sha1 '6db067fd3d1c40cf436cb73c26285c3dfeb902ff' + + option 'lzma', 'Build with LZMA compression support' + option 'zzip', 'Build with zzip compression support' + option 'with-fortran','Build Fortran 77 bindings' + + depends_on 'xz' if build.include? 'lzma' + depends_on 'libzzip' if build.include? 'zzip' + + def install + + ENV.fortran if build.with? 'fortran' + + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + ] + + system "./configure", *args + system "make", "install" + end + + def patches + # Fixes include_dirs array breaking strict. Patch submitted upstream. + DATA + end +end + +__END__ +diff --git a/bindings/perl/Build.PL.in b/bindings/perl/Build.PL.in +index d4e5491..ee20e9c 100644 +--- a/bindings/perl/Build.PL.in ++++ b/bindings/perl/Build.PL.in +@@ -42,7 +42,7 @@ my $build = $class->new( + dist_version_from => "GetData.pm", + extra_compiler_flags => ['@DEFS@', '-I@top_builddir@/src'], + extra_linker_flags => ['-L@top_builddir@/src/.libs/', '-lgetdata'], +- include_dirs => '@top_srcdir@/src', ++ include_dirs => ['@top_srcdir@/src'], + license => 'lgpl', + module_name => "GetData", + pm_files => { 'GetData.pm' => 'lib/GetData.pm' }, |
