forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealpix.rb
31 lines (27 loc) · 932 Bytes
/
healpix.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
require 'formula'
class Healpix < Formula
homepage 'http://healpix.jpl.nasa.gov/'
url 'https://downloads.sourceforge.net/project/healpix/Healpix_3.11/Healpix_3.11_2013Apr24.tar.gz'
sha1 'f7d6a18ca6aad9fe85a66eca36d7a1f0ef783e95'
version '3.11'
depends_on 'cfitsio'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
def install
configure_args = %W[--disable-dependency-tracking --prefix=#{prefix}]
cd "src/C/autotools" do
system "autoreconf", "--install"
system "./configure", *configure_args
system "make", "install"
end
ENV.append_to_cflags "-DENABLE_FITSIO"
cd "src/cxx/autotools" do
system "echo \"AUTOMAKE_OPTIONS = subdir-objects\" >> Makefile.am"
system "autoreconf", "--install"
system "./configure", *configure_args
system "make", "install"
end
end
end