text: require 'formula'
  
  class ArpackJulia < Formula
    homepage 'https://github.com/opencollab/arpack-ng'
    url 'https://github.com/opencollab/arpack-ng/archive/3.3.0.tar.gz'
    sha256 'ad59811e7d79d50b8ba19fd908f92a3683d883597b2c7759fdcc38f6311fe5b3'
    revision 4
  
    bottle do
      root_url 'https://juliabottles.s3.amazonaws.com'
      cellar :any
      rebuild 2
      sha256 "176bef36b77bf8cf6a92bc5c20f25982783286e2062fd50b7329e43aaa602cf9" => :el_capitan
      sha256 "535d1aff9d8acb49469bb95de55feb02f68eae3e2f76ee732f5db9f1dba54cc7" => :sierra
    end
  
    keg_only 'Conflicts with arpack in homebrew-science.'
  
    depends_on "gcc"
    depends_on 'staticfloat/julia/openblas-julia'
    depends_on 'autoconf' => :build
    depends_on 'automake' => :build
    depends_on 'libtool' => :build
  
    def install
      system "./bootstrap"
      configure_args = ["--disable-dependency-tracking",
                        "--prefix=#{prefix}",
                        "--enable-shared",
                        "--with-blas=openblas",
                        "--with-lapack=openblas"]
      system "./configure", *configure_args
      system "make install"
    end
  end
  